diff --git a/packages/tools/dtc/package.mk b/packages/tools/dtc/package.mk new file mode 100644 index 0000000000..0d32bac6f4 --- /dev/null +++ b/packages/tools/dtc/package.mk @@ -0,0 +1,39 @@ +################################################################################ +# This file is part of LibreELEC - https://libreelec.tv +# Copyright (C) 2016 Team LibreELEC +# +# LibreELEC is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# LibreELEC is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with LibreELEC. If not, see . +################################################################################ + +PKG_NAME="dtc" +PKG_VERSION="beef80b" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="https://git.kernel.org/cgit/utils/dtc/dtc.git" +PKG_URL="https://git.kernel.org/cgit/utils/dtc/dtc.git/snapshot/$PKG_VERSION.tar.xz" +PKG_SOURCE_DIR="$PKG_VERSION" +PKG_DEPENDS_TARGET="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="tools" +PKG_SHORTDESC="The Device Tree Compiler" +PKG_LONGDESC="The Device Tree Compiler" +PKG_AUTORECONF="no" + +PKG_MAKE_OPTS_TARGET="dtc" + +makeinstall_target() { + mkdir -p $INSTALL/usr/bin + cp -P $ROOT/$PKG_BUILD/dtc $INSTALL/usr/bin +}