mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
685969e0bd
commit
55a87cd858
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue