diff options
author | Domenico Andreoli <domenico.andreoli@linux.com> | 2020-06-27 14:25:05 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-07-07 11:13:11 +0900 |
commit | 55a87cd858578a4c3f0ab6e24696df1954e86f2c (patch) | |
tree | f1da7ca294ab74176535a16067022cfe85035376 /scripts/package/buildtar | |
parent | 685969e0bd732ff92e6626acc0c05f7204aa7ea6 (diff) | |
download | lwn-55a87cd858578a4c3f0ab6e24696df1954e86f2c.tar.gz lwn-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-x | scripts/package/buildtar | 12 |
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 # |