Linux kbuild/kconfig development
 help / color / mirror / Atom feed
* [PATCH] kbuild: builddeb: Include dtbs in the Debian package built by "make deb-pkg"
@ 2015-06-20 14:48 Karsten Merker
  2015-06-22  6:04 ` Riku Voipio
  0 siblings, 1 reply; 3+ messages in thread
From: Karsten Merker @ 2015-06-20 14:48 UTC (permalink / raw)
  To: Michal Marek; +Cc: linux-kbuild, linux-kernel, Karsten Merker

Native Debian kernel packages include any dtbs that were generated
during the kernel build process in /usr/lib/${packagename}.
Do the same for Debian packages built by scripts/package/builddeb
(executed by the "deb-pkg" target).

Signed-off-by: Karsten Merker <merker@debian.org>
---
 scripts/package/builddeb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 88dbf23..944b560 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -143,6 +143,11 @@ else
 	cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/$installed_image_path"
 fi
 
+# If dtbs have been built for this arch, include them in the package
+if [ -d "arch/$ARCH/boot/dts" ]; then
+  find "arch/$ARCH/boot/dts" -iname '*.dtb' -exec sh -c "mkdir -p '$tmpdir/usr/lib/$packagename'; cp '{}' '$tmpdir/usr/lib/$packagename/'" \;
+fi
+
 if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
 	INSTALL_MOD_PATH="$tmpdir" $MAKE KBUILD_SRC= modules_install
 	rm -f "$tmpdir/lib/modules/$version/build"
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-22 17:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-20 14:48 [PATCH] kbuild: builddeb: Include dtbs in the Debian package built by "make deb-pkg" Karsten Merker
2015-06-22  6:04 ` Riku Voipio
2015-06-22 17:03   ` Karsten Merker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox