]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Makefile: Add CONFIG_BUILD_TARGET to automatically build an special image
authorStefan Roese <sr@denx.de>
Wed, 22 Oct 2014 10:13:24 +0000 (12:13 +0200)
committerTom Rini <trini@ti.com>
Thu, 23 Oct 2014 13:59:21 +0000 (09:59 -0400)
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>
Makefile
README

index 25161e63f4d56d222732edb314d6467a4a719810..bd0f45e47c0030e76298355a41594176d3bce7a7 100644 (file)
--- 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)
diff --git a/README b/README
index 6cf096cdf8dae7668481fd91197aa55731567bb7..4dbf2d4050e2df9fa9fe9472fbe6d238cc3b67a0 100644 (file)
--- a/README
+++ b/README
@@ -2722,6 +2722,14 @@ CBFS (Coreboot Filesystem) support
                200 ms.
 
 - Configuration Management:
+               CONFIG_BUILD_TARGET
+
+               Some SoCs need special image types (e.g. U-Boot binary
+               with a special header) as build targets. By defining
+               CONFIG_BUILD_TARGET in the SoC / board header, this
+               special image will be automatically built upon calling
+               make / MAKEALL.
+
                CONFIG_IDENT_STRING
 
                If defined, this string will be added to the U-Boot