]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - Makefile
Makefile: Add CONFIG_BUILD_TARGET to automatically build an special image
[karo-tx-uboot.git] / Makefile
index 4d54bd285cef54779fcb0bb96a08f651d6d0cdaa..bd0f45e47c0030e76298355a41594176d3bce7a7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -652,7 +652,7 @@ ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610))
 libs-y += arch/$(ARCH)/imx-common/
 endif
 
-ifneq (,$(filter $(SOC), kirkwood))
+ifneq (,$(filter $(SOC), armada-xp kirkwood))
 libs-y += arch/$(ARCH)/mvebu-common/
 endif
 
@@ -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)