Skip to content
Snippets Groups Projects
Commit b2b8a696 authored by Stefan Roese's avatar Stefan Roese Committed by Tom Rini
Browse files

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: default avatarStefan Roese <sr@denx.de>
Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
parent 4acd2d24
No related branches found
No related tags found
No related merge requests found
...@@ -758,6 +758,11 @@ endif ...@@ -758,6 +758,11 @@ endif
endif 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) LDFLAGS_u-boot += $(LDFLAGS_FINAL)
ifneq ($(CONFIG_SYS_TEXT_BASE),) ifneq ($(CONFIG_SYS_TEXT_BASE),)
LDFLAGS_u-boot += -Ttext $(CONFIG_SYS_TEXT_BASE) LDFLAGS_u-boot += -Ttext $(CONFIG_SYS_TEXT_BASE)
......
...@@ -2722,6 +2722,14 @@ CBFS (Coreboot Filesystem) support ...@@ -2722,6 +2722,14 @@ CBFS (Coreboot Filesystem) support
200 ms. 200 ms.
- Configuration Management: - 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 CONFIG_IDENT_STRING
If defined, this string will be added to the U-Boot If defined, this string will be added to the U-Boot
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment