summaryrefslogtreecommitdiffstats
path: root/scripts/package/buildtar
diff options
context:
space:
mode:
authorDomenico Andreoli <domenico.andreoli@linux.com>2020-06-27 14:25:05 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2020-07-07 04:13:11 +0200
commit55a87cd858578a4c3f0ab6e24696df1954e86f2c (patch)
treef1da7ca294ab74176535a16067022cfe85035376 /scripts/package/buildtar
parentkbuild: remove cc-option test of -ffreestanding (diff)
downloadlinux-55a87cd858578a4c3f0ab6e24696df1954e86f2c.tar.xz
linux-55a87cd858578a4c3f0ab6e24696df1954e86f2c.zip
kbuild: buildtar: add dtbs support
Make 'make tar-pkg' install dtbs. Signed-off-by: Domenico Andreoli <domenico.andreoli@linux.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/package/buildtar')
-rwxr-xr-xscripts/package/buildtar12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/package/buildtar b/scripts/package/buildtar
index fb1578e72ab9..936198a90477 100755
--- a/scripts/package/buildtar
+++ b/scripts/package/buildtar
@@ -53,6 +53,18 @@ rm -rf -- "${tmpdir}"
mkdir -p -- "${tmpdir}/boot"
dirs=boot
+
+#
+# Try to install dtbs
+#
+if grep -q '^CONFIG_OF_EARLY_FLATTREE=y' include/config/auto.conf; then
+ # Only some architectures with OF support have this target
+ if [ -d "${srctree}/arch/${SRCARCH}/boot/dts" ]; then
+ $MAKE ARCH="${ARCH}" -f ${srctree}/Makefile INSTALL_DTBS_PATH="${tmpdir}/boot/dtbs/${KERNELRELEASE}" dtbs_install
+ fi
+fi
+
+
#
# Try to install modules
#