summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2014-10-22 12:13:24 +0200
committerTom Rini <trini@ti.com>2014-10-23 09:59:21 -0400
commitb2b8a6967a0579fd5cace0280d9cf0b54d3bbf1f (patch)
tree35d91a82aa03244b4a5dcb1f9f7b076196e8033c /Makefile
parent4acd2d24b6518894161ed3feb29be185190af5f1 (diff)
downloadu-boot-b2b8a6967a0579fd5cace0280d9cf0b54d3bbf1f.tar.gz
Makefile: Add CONFIG_BUILD_TARGET to automatically build an special image
Add target to build it automatically upon "make" / MAKEALL. This can/should be set by board / cpu specific headers if a special U-Boot image is required for this SoC / board. E.g. used by Marvell Armada XP to automatically build the u-boot.kwb target. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 25161e63f4..bd0f45e47c 100644
--- a/Makefile
+++ b/Makefile
@@ -758,6 +758,11 @@ endif
endif
endif
+# Add optional build target if defined in board/cpu/soc headers
+ifneq ($(CONFIG_BUILD_TARGET),)
+ALL-y += $(CONFIG_BUILD_TARGET:"%"=%)
+endif
+
LDFLAGS_u-boot += $(LDFLAGS_FINAL)
ifneq ($(CONFIG_SYS_TEXT_BASE),)
LDFLAGS_u-boot += -Ttext $(CONFIG_SYS_TEXT_BASE)