Permalink
Browse files

packaging: sync builddeb changes

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
  • Loading branch information...
RobertCNelson committed Oct 3, 2017
1 parent a7cae69 commit 26026a0c9c264fd0cb6443839a35d5f0cdf343da
Showing with 11 additions and 1 deletion.
  1. +11 −1 scripts/package/builddeb
View
@@ -143,9 +143,18 @@ fi
cp "$($MAKE -s image_name)" "$tmpdir/$installed_image_path"
if grep -q "^CONFIG_OF=y" $KCONFIG_CONFIG ; then
mkdir -p "$tmpdir/boot/dtbs/$version"
# 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
$MAKE KBUILD_SRC= INSTALL_DTBS_PATH="$tmpdir/boot/dtbs/$version" dtbs_install
else
$MAKE KBUILD_SRC= dtbs
find arch/arm/boot/ -iname "*.dtb" -exec cp -v '{}' "$tmpdir/boot/dtbs/$version" \;
fi
#make dtbs_install seems to add an .old directory
if [ -d "$tmpdir/boot/dtbs/$version.old" ] ; then
rm -rf "$tmpdir/boot/dtbs/$version.old"
fi
fi
@@ -304,6 +313,7 @@ else
Package: $packagename
Architecture: any
Depends: initramfs-tools
Description: Linux kernel, version $version
This package contains the Linux kernel, modules and corresponding other
files, version: $version.

0 comments on commit 26026a0

Please sign in to comment.