[v3] kbuild: buildtar: add dtbs support
diff mbox series

Message ID 20200626212056.GA25753@dumbo
State New
Headers show
Series
  • [v3] kbuild: buildtar: add dtbs support
Related show

Commit Message

Domenico Andreoli June 26, 2020, 9:20 p.m. UTC
From: Domenico Andreoli <domenico.andreoli@linux.com>

Make 'make tar-pkg' install dtbs.

v3:
 - Check CONFIG_OF_EARLY_FLATTREE=y instead of ARCH before installing dtbs

v2:
 - Destination path includes the kernel version, as expected

Cc: Will Deacon <will.deacon@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Domenico Andreoli <domenico.andreoli@linux.com>

---
 scripts/package/buildtar |    7 +++++++
 1 file changed, 7 insertions(+)

Patch
diff mbox series

Index: b/scripts/package/buildtar
===================================================================
--- a/scripts/package/buildtar
+++ b/scripts/package/buildtar
@@ -125,6 +125,13 @@  case "${ARCH}" in
 		;;
 esac
 
+#
+# Install dtbs
+#
+if grep -q '^CONFIG_OF_EARLY_FLATTREE=y' include/config/auto.conf; then
+	$MAKE ARCH="${ARCH}" -f ${srctree}/Makefile INSTALL_DTBS_PATH="${tmpdir}/boot/dtbs/${KERNELRELEASE}" dtbs_install
+fi
+
 if [ "${1}" = dir-pkg ]; then
 	echo "Kernel tree successfully created in $tmpdir"
 	exit 0