All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 1/1] deb-pkg: Add device tree blobs to the package
@ 2013-11-07 15:17 Arnaud Patard
  2013-11-08 14:36 ` Ben Hutchings
  0 siblings, 1 reply; 3+ messages in thread
From: Arnaud Patard @ 2013-11-07 15:17 UTC (permalink / raw)
  To: linux-kbuild
  Cc: maximilian attems, Ben Hutchings, Michal Marek, Arnaud Patard

When building a package with make deb-pkg (say, for arm), the dtb files are
not added to the package. Given that things are still evolving on arm, it
make sense to have them along with the kernel and modules.

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
---

Index: linux-next/scripts/package/builddeb
===================================================================
--- linux-next.orig/scripts/package/builddeb	2013-11-06 12:51:49.548299578 +0100
+++ linux-next/scripts/package/builddeb	2013-11-06 12:52:24.152298055 +0100
@@ -140,6 +140,10 @@ if [ -e $KBUILD_IMAGE ]; then
 else
 	cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/$installed_image_path"
 fi
+if grep -q "^CONFIG_OF=y" .config ; then
+	mkdir -p "$tmpdir/usr/lib/$packagename"
+	find arch/$ARCH -name *.dtb -exec cp {} "$tmpdir/usr/lib/$packagename" \;
+fi
 
 if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
 	INSTALL_MOD_PATH="$tmpdir" $MAKE KBUILD_SRC= modules_install



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

end of thread, other threads:[~2013-11-12 12:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-07 15:17 [patch 1/1] deb-pkg: Add device tree blobs to the package Arnaud Patard
2013-11-08 14:36 ` Ben Hutchings
2013-11-12 12:52   ` Michal Marek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.