[elbe-devel] [PATCH] debianize/kernel: add device-tree support
John Ogness
john.ogness at linutronix.de
Wed Aug 10 15:34:24 CEST 2016
From: Manuel Traut <manut at linutronix.de>
When building the kernel for ARM, also build and install the
related device-trees.
Signed-off-by: Manuel Traut <manut at linutronix.de>
Signed-off-by: John Ogness <john.ogness at linutronix.de>
---
elbepack/makofiles/debianize/kernel/linux-image.install | 1 +
elbepack/makofiles/debianize/kernel/rules.mako | 6 +++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/elbepack/makofiles/debianize/kernel/linux-image.install b/elbepack/makofiles/debianize/kernel/linux-image.install
index cc552f6..daf6f24 100644
--- a/elbepack/makofiles/debianize/kernel/linux-image.install
+++ b/elbepack/makofiles/debianize/kernel/linux-image.install
@@ -1,3 +1,4 @@
./boot/*
./lib/modules/*
./lib/firmware/*
+./usr/lib/*
diff --git a/elbepack/makofiles/debianize/kernel/rules.mako b/elbepack/makofiles/debianize/kernel/rules.mako
index a9db7ad..724cb9c 100755
--- a/elbepack/makofiles/debianize/kernel/rules.mako
+++ b/elbepack/makofiles/debianize/kernel/rules.mako
@@ -4,6 +4,7 @@ MOD_PATH=`pwd`/debian/tmp
FW_PATH=`pwd`/debian/tmp/lib/firmware
HDR_PATH=`pwd`/debian/tmp/usr
KERNEL_PATH=`pwd`/debian/tmp/boot
+DTBS_PATH=`pwd`/debian/tmp/usr/lib/linux-image-${k_version}-${p_name}
MAKE_OPTS= \
ARCH=${k_arch} \
@@ -14,6 +15,7 @@ INSTALL_MOD_PATH=$(MOD_PATH) \
INSTALL_FW_PATH=$(FW_PATH) \
INSTALL_HDR_PATH=$(HDR_PATH) \
INSTALL_PATH=$(KERNEL_PATH) \
+INSTALL_DTBS_PATH=$(DTBS_PATH) \
O=debian/build
#export DH_VERBOSE=1
@@ -30,13 +32,15 @@ override_dh_auto_configure:
override_dh_auto_build:
rm -rf include/config
make -j`nproc` $(MAKE_OPTS) ${imgtype} modules
+ test ${k_arch} = arm && make -j`nproc` $(MAKE_OPTS) dtbs || true
override_dh_auto_install:
- mkdir -p $(MOD_PATH) $(FW_PATH) $(HDR_PATH) $(KERNEL_PATH)
+ mkdir -p $(MOD_PATH) $(FW_PATH) $(HDR_PATH) $(KERNEL_PATH) $(DTBS_PATH)
make $(MAKE_OPTS) install
make $(MAKE_OPTS) INSTALL_MOD_STRIP=1 modules_install
make $(MAKE_OPTS) firmware_install
make $(MAKE_OPTS) headers_install
+ test ${k_arch} = arm && make $(MAKE_OPTS) dtbs_install || true
%%:
dh $@
--
2.8.1
More information about the elbe-devel
mailing list