summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAlex Ray <aray@google.com>2014-03-17 13:44:01 -0700
committerRohit Vaswani <rvaswani@codeaurora.org>2016-03-01 12:22:15 -0800
commit63129044602c3a74ba0aa9c19c8be47ef067a25a (patch)
tree4c704afb97c48e4bca6dd34dd58530a7760f75c3 /arch
parentf443059ffdb736f10d093c4b7da2bfa71a3de5ff (diff)
ARM64: add option to build Image.gz/dtb combo
Allows a defconfig to set a list of dtbs to concatenate with an Image.gz to create a Image.gz-dtb. Change-Id: I0dc3935e57f01b517aa64eda0c27b0101e9ea3b2 Signed-off-by: Alex Ray <aray@google.com> (cherry picked from commit 082d89f7f2ae529e2d7b50f6259e4430472cf4ed)
Diffstat (limited to 'arch')
-rw-r--r--arch/arm64/boot/dts/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/Makefile b/arch/arm64/boot/dts/Makefile
index 062edb210993..083c1a809d60 100644
--- a/arch/arm64/boot/dts/Makefile
+++ b/arch/arm64/boot/dts/Makefile
@@ -18,6 +18,18 @@ subdir-y := $(dts-dirs)
dtstree := $(srctree)/$(src)
+targets += dtbs
+
+DTB_NAMES := $(subst $\",,$(CONFIG_BUILD_ARM64_APPENDED_DTB_IMAGE_NAMES))
+ifneq ($(DTB_NAMES),)
+DTB_LIST := $(addsuffix .dtb,$(DTB_NAMES))
+else
+DTB_LIST := $(dtb-y)
+endif
+targets += $(DTB_LIST)
+
+dtbs: $(addprefix $(obj)/, $(DTB_LIST))
+
dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(foreach d,$(dts-dirs), $(wildcard $(dtstree)/$(d)/*.dts)))
always := $(dtb-y)