Skip to content

Commit 55a87cd

Browse files
cavokzmasahir0y
authored andcommitted
kbuild: buildtar: add dtbs support
Make 'make tar-pkg' install dtbs. Signed-off-by: Domenico Andreoli <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 685969e commit 55a87cd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scripts/package/buildtar

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@ rm -rf -- "${tmpdir}"
5353
mkdir -p -- "${tmpdir}/boot"
5454
dirs=boot
5555

56+
57+
#
58+
# Try to install dtbs
59+
#
60+
if grep -q '^CONFIG_OF_EARLY_FLATTREE=y' include/config/auto.conf; then
61+
# Only some architectures with OF support have this target
62+
if [ -d "${srctree}/arch/${SRCARCH}/boot/dts" ]; then
63+
$MAKE ARCH="${ARCH}" -f ${srctree}/Makefile INSTALL_DTBS_PATH="${tmpdir}/boot/dtbs/${KERNELRELEASE}" dtbs_install
64+
fi
65+
fi
66+
67+
5668
#
5769
# Try to install modules
5870
#

0 commit comments

Comments
 (0)