aboutsummaryrefslogtreecommitdiff
path: root/blackfin_config.mk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-06-15 00:25:19 -0400
committerMike Frysinger <vapier@gentoo.org>2009-06-15 13:30:27 -0400
commit3e88337b225bf796f6df21d0a7f591530e9d4ce0 (patch)
tree4f90a896f2c64cc05c3a1bc451a0aee6ebbadd61 /blackfin_config.mk
parentafac8b07172d7e4a65f86ce1ec4c783a6165ba1f (diff)
downloadu-boot-3e88337b225bf796f6df21d0a7f591530e9d4ce0.zip
u-boot-3e88337b225bf796f6df21d0a7f591530e9d4ce0.tar.gz
u-boot-3e88337b225bf796f6df21d0a7f591530e9d4ce0.tar.bz2
Blackfin: move ALL += u-boot.ldr to blackfin_config.mk
The way the ALL variable is used allows for config.mk's to add more targets themselves without having to clutter up the top level Makefile. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'blackfin_config.mk')
-rw-r--r--blackfin_config.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/blackfin_config.mk b/blackfin_config.mk
index 989e976..821f082 100644
--- a/blackfin_config.mk
+++ b/blackfin_config.mk
@@ -36,6 +36,10 @@ ifneq (,$(CONFIG_BFIN_CPU))
PLATFORM_RELFLAGS += -mcpu=$(CONFIG_BFIN_CPU)
endif
+ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_BYPASS)
+ALL += $(obj)u-boot.ldr
+endif
+
SYM_PREFIX = _
LDR_FLAGS-y :=
@@ -43,14 +47,12 @@ LDR_FLAGS-$(CONFIG_BFIN_BOOTROM_USES_EVT1) += -J
LDR_FLAGS += --bmode $(subst BFIN_BOOT_,,$(CONFIG_BFIN_BOOT_MODE))
LDR_FLAGS += --use-vmas
-ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_BYPASS)
LDR_FLAGS += --initcode $(obj)cpu/$(CPU)/initcode.o
ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_UART)
ifneq ($(ENV_IS_EMBEDDED_CUSTOM),ENV_IS_EMBEDDED_CUSTOM)
LDR_FLAGS += --punchit $$(($(CONFIG_ENV_OFFSET))):$$(($(CONFIG_ENV_SIZE))):$(obj)env-ldr.o
endif
endif
-endif
ifneq (,$(findstring s,$(MAKEFLAGS)))
LDR_FLAGS += --quiet
endif