aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorArnaud Patard (Rtp) <arnaud.patard@rtp-net.org>2015-02-03 07:16:33 -0500
committerMichal Marek <mmarek@suse.cz>2015-05-20 01:07:54 -0400
commitca2a9d2cf6cf3dd852c3926ac7e30ee774da4638 (patch)
treee60a1a162830e1edcef2d8dd20fa7d341759427f /scripts
parent64178cb62c329350fe06622cd215264d849b27b1 (diff)
deb-pkg: Add device tree blobs to the package
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/package/builddeb7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 222770c1b775..d30116b57e7e 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -147,6 +147,13 @@ else
147 cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/$installed_image_path" 147 cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/$installed_image_path"
148fi 148fi
149 149
150if grep -q "^CONFIG_OF=y" $KCONFIG_CONFIG ; then
151 # Only some architectures with OF support have this target
152 if grep -q dtbs_install "${srctree}/arch/$SRCARCH/Makefile"; then
153 $MAKE KBUILD_SRC= INSTALL_DTBS_PATH="$tmpdir/usr/lib/$packagename" dtbs_install
154 fi
155fi
156
150if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then 157if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
151 INSTALL_MOD_PATH="$tmpdir" $MAKE KBUILD_SRC= modules_install 158 INSTALL_MOD_PATH="$tmpdir" $MAKE KBUILD_SRC= modules_install
152 rm -f "$tmpdir/lib/modules/$version/build" 159 rm -f "$tmpdir/lib/modules/$version/build"