]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
deb-pkg: Add device tree blobs to the package
authorArnaud Patard (Rtp) <arnaud.patard@rtp-net.org>
Tue, 3 Feb 2015 12:16:33 +0000 (13:16 +0100)
committerMichal Marek <mmarek@suse.cz>
Wed, 20 May 2015 05:07:54 +0000 (13:07 +0800)
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>
Reviewed-by: Ben Hutchings <ben@decadent.org.uk>
Acked-by: maximilian attems <max@stro.at>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/package/builddeb

index 222770c1b77510d035b05a5afb6af3e6ab8ae303..d30116b57e7e48f5e2cbee9c02033b447816a746 100755 (executable)
@@ -147,6 +147,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"