aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2012-09-25 17:55:43 +0000
committerVishal Bhoj <vishal.bhoj@linaro.org>2012-09-25 17:56:19 +0000
commit89207c3028dcd5b91236e4090d1aa9a4c04a5762 (patch)
treecb8483cc44f05225e5b3811c430ce52270ec23c0
parentb414fd1ce0c17483b3e40b35c9281c8268a6d841 (diff)
downloadvexpress_rtsm-89207c3028dcd5b91236e4090d1aa9a4c04a5762.tar.gz
vexpress_rtsm: Find the right DTB file
The dtb naming keeps changing in the kernel build scripts, to avoid confusion we are finding out the name here. Change-Id: I98da029862c0d421b262e318d355561d9071211f Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rw-r--r--bootwrapper.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/bootwrapper.mk b/bootwrapper.mk
index f24fc6f..9ec1549 100644
--- a/bootwrapper.mk
+++ b/bootwrapper.mk
@@ -1,5 +1,18 @@
# Buildfile to invoke bootwrapper makefile which inturn builds the switcher.
+#
+# DEVICE_TREES contains a list of device-trees to build, each
+# entry in the list is in the form <source-name>:<blob-name>
+#
+DEVICE_TREE_TARGETS :=
+$(foreach _ub,$(DEVICE_TREES), \
+ $(eval _source := $(call word-colon,1,$(_ub))) \
+ $(eval _blob := $(call word-colon,2,$(_ub))) \
+ $(eval _target := $(PRODUCT_OUT)/boot/$(_blob)) \
+ $(eval $(call MAKE_DEVICE_TREE,$(_target),$(_source))) \
+ $(eval DEVICE_TREE_TARGETS += $(_target)) \
+ )
+
ifeq ($(BUILD_FOR_INTEGRATED_SWITCHER),1)
bootwrapper: android_kernel $(INSTALLED_RAMDISK_TARGET)
cat $(PRODUCT_OUT)/obj/kernel/arch/arm/boot/zImage $(DEVICE_TREE_TARGETS) > boot-wrapper/zImage && \