public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHv4 1/1] deb-pkg: Add device tree blobs to the package
@ 2015-02-03 12:16 Arnaud Patard
  2015-02-04 18:06 ` Ben Hutchings
  2015-04-22 15:55 ` maximilian attems
  0 siblings, 2 replies; 4+ messages in thread
From: Arnaud Patard @ 2015-02-03 12:16 UTC (permalink / raw)
  To: linux-kbuild; +Cc: maximilian attems, Ben Hutchings, Michal Marek

[-- Attachment #1: builddeb-install-dtbs-if-needed.patch --]
[-- Type: text/plain, Size: 1232 bytes --]

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.

v4: Use $KCONFIG_CONFIG
v3: handle with OF but without dtbs_install.
    Use $MAKE ... as done everywhere else in the script
v2: make use of dtbs_install

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

Index: linux-next/scripts/package/builddeb
===================================================================
--- linux-next.orig/scripts/package/builddeb	2015-01-14 13:04:45.845922441 +0100
+++ linux-next/scripts/package/builddeb	2015-01-28 09:25:15.298796403 +0100
@@ -143,6 +143,13 @@ else
 	cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/$installed_image_path"
 fi
 
+if grep -q "^CONFIG_OF=y" $KCONFIG_CONFIG ; then
+	# Only some architectures with OF support have this target
+	if grep -q dtbs_install "${srctree}/arch/$SRCARCH/Makefile"; then
+		$MAKE KBUILD_SRC= INSTALL_DTBS_PATH="$tmpdir/usr/lib/$packagename" dtbs_install
+	fi
+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"



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

end of thread, other threads:[~2015-05-20  5:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-03 12:16 [PATCHv4 1/1] deb-pkg: Add device tree blobs to the package Arnaud Patard
2015-02-04 18:06 ` Ben Hutchings
2015-04-22 15:55 ` maximilian attems
2015-05-20  5:10   ` Michal Marek

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