mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
dtc: update to 1.4.5 and install libfdt for host
This commit is contained in:
parent
c35d631f23
commit
261583f6c2
@ -17,27 +17,37 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
PKG_NAME="dtc"
|
PKG_NAME="dtc"
|
||||||
PKG_VERSION="1.4.4"
|
PKG_VERSION="1.4.5"
|
||||||
PKG_SHA256="2d1226634d71655466ebbd090d2873068c4918fbd5c433b91ead8ad08b9a5843"
|
PKG_SHA256="cfb9394690ebec1e4f942ee0c3b863b660eb0c4ef85bab19429f30c3469a3415"
|
||||||
PKG_ARCH="any"
|
PKG_ARCH="any"
|
||||||
PKG_LICENSE="GPL"
|
PKG_LICENSE="GPL"
|
||||||
PKG_SITE="https://git.kernel.org/pub/scm/utils/dtc/dtc.git/"
|
PKG_SITE="https://git.kernel.org/pub/scm/utils/dtc/dtc.git/"
|
||||||
PKG_URL="https://git.kernel.org/pub/scm/utils/dtc/dtc.git/snapshot/$PKG_VERSION.tar.gz"
|
PKG_URL="https://git.kernel.org/pub/scm/utils/dtc/dtc.git/snapshot/$PKG_VERSION.tar.gz"
|
||||||
PKG_SOURCE_DIR="$PKG_VERSION"
|
PKG_SOURCE_DIR="$PKG_VERSION"
|
||||||
|
PKG_DEPENDS_HOST="Python2:host swig:host"
|
||||||
PKG_DEPENDS_TARGET="toolchain"
|
PKG_DEPENDS_TARGET="toolchain"
|
||||||
PKG_SECTION="tools"
|
PKG_SECTION="tools"
|
||||||
PKG_SHORTDESC="The Device Tree Compiler"
|
PKG_SHORTDESC="The Device Tree Compiler"
|
||||||
PKG_LONGDESC="The Device Tree Compiler"
|
PKG_LONGDESC="The Device Tree Compiler"
|
||||||
PKG_AUTORECONF="no"
|
PKG_AUTORECONF="no"
|
||||||
|
|
||||||
PKG_MAKE_OPTS_TARGET="dtc"
|
PKG_MAKE_OPTS_HOST="dtc libfdt"
|
||||||
|
PKG_MAKE_OPTS_TARGET="dtc libfdt"
|
||||||
|
|
||||||
|
makeinstall_host() {
|
||||||
|
mkdir -p $TOOLCHAIN/bin
|
||||||
|
cp -P $PKG_BUILD/dtc $TOOLCHAIN/bin
|
||||||
|
cp -P $PKG_BUILD/libfdt/libfdt.so $TOOLCHAIN/lib
|
||||||
|
}
|
||||||
|
|
||||||
|
post_makeinstall_host() {
|
||||||
|
python ./pylibfdt/setup.py build_ext --inplace
|
||||||
|
python ./pylibfdt/setup.py install --prefix=$TOOLCHAIN
|
||||||
|
|
||||||
|
touch $TOOLCHAIN/lib/$PKG_PYTHON_VERSION/site-packages/pylibfdt/__init__.py
|
||||||
|
}
|
||||||
|
|
||||||
makeinstall_target() {
|
makeinstall_target() {
|
||||||
mkdir -p $INSTALL/usr/bin
|
mkdir -p $INSTALL/usr/bin
|
||||||
cp -P $PKG_BUILD/dtc $INSTALL/usr/bin
|
cp -P $PKG_BUILD/dtc $INSTALL/usr/bin
|
||||||
}
|
}
|
||||||
|
|
||||||
makeinstall_host() {
|
|
||||||
mkdir -p $TOOLCHAIN/bin
|
|
||||||
cp -P $PKG_BUILD/dtc $TOOLCHAIN/bin
|
|
||||||
}
|
|
||||||
|
@ -0,0 +1,12 @@
|
|||||||
|
diff -Naur a/Makefile b/Makefile
|
||||||
|
--- a/Makefile 2017-03-09 16:17:23.000000000 -0800
|
||||||
|
+++ b/Makefile 2017-05-31 16:04:29.052439734 -0700
|
||||||
|
@@ -134,7 +134,7 @@
|
||||||
|
LIBFDT_objdir = libfdt
|
||||||
|
LIBFDT_srcdir = libfdt
|
||||||
|
LIBFDT_archive = $(LIBFDT_objdir)/libfdt.a
|
||||||
|
-LIBFDT_lib = $(LIBFDT_objdir)/libfdt-$(DTC_VERSION).$(SHAREDLIB_EXT)
|
||||||
|
+LIBFDT_lib = $(LIBFDT_objdir)/libfdt.$(SHAREDLIB_EXT)
|
||||||
|
LIBFDT_include = $(addprefix $(LIBFDT_srcdir)/,$(LIBFDT_INCLUDES))
|
||||||
|
LIBFDT_version = $(addprefix $(LIBFDT_srcdir)/,$(LIBFDT_VERSION))
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user