Skip to content

Commit

Permalink
kbuild: buildtar: add dtbs support
Browse files Browse the repository at this point in the history
Make 'make tar-pkg' install dtbs.

Signed-off-by: Domenico Andreoli <domenico.andreoli@linux.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
  • Loading branch information
Domenico Andreoli authored and Masahiro Yamada committed Jul 7, 2020
1 parent 685969e commit 55a87cd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/package/buildtar
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit 55a87cd

Please sign in to comment.