Merge pull request #371 from lrusak/dtc

dtc: add package
This commit is contained in:
Christian Hewitt 2016-05-21 06:44:35 +04:00
commit d17429d2ae
2 changed files with 42 additions and 2 deletions

View File

@ -23,7 +23,7 @@ PKG_ARCH="any"
PKG_LICENSE="nonfree"
PKG_SITE="http://www.broadcom.com"
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain"
PKG_DEPENDS_TARGET="toolchain dtc"
PKG_PRIORITY="optional"
PKG_SECTION="graphics"
PKG_SHORTDESC="OpenMAX-bcm2835: OpenGL-ES and OpenMAX driver for BCM2835"
@ -82,8 +82,9 @@ makeinstall_target() {
# some usefull debug tools
mkdir -p $INSTALL/usr/bin
cp -PRv $FLOAT/opt/vc/bin/dtoverlay $INSTALL/usr/bin
ln -s dtoverlay $INSTALL/usr/bin/dtparam
cp -PRv $FLOAT/opt/vc/bin/vcdbg $INSTALL/usr/bin
cp -PRv $FLOAT/opt/vc/lib/libdebug_sym.so $INSTALL/usr/lib
cp -PRv $FLOAT/opt/vc/lib/libdebug_sym.so $INSTALL/usr/lib
cp -PRv $FLOAT/opt/vc/bin/vcgencmd $INSTALL/usr/bin
cp -PRv $FLOAT/opt/vc/bin/tvservice $INSTALL/usr/bin
cp -PRv $FLOAT/opt/vc/bin/edidparser $INSTALL/usr/bin

View File

@ -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 <http://www.gnu.org/licenses/>.
################################################################################
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
}