diff mbox

[U-Boot] bfin: make the CPU macro of LDR target more genenric

Message ID 1407840594-23033-1-git-send-email-sonic.adi@gmail.com
State Accepted
Delegated to: Sonic Zhang
Headers show

Commit Message

Sonic Zhang Aug. 12, 2014, 10:49 a.m. UTC
From: Sonic Zhang <sonic.zhang@analog.com>

Remove BFIN from the CPU macro in Makefile.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
---

 Makefile                           | 2 +-
 arch/blackfin/include/asm/config.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/Makefile b/Makefile
index 666d291..2da17de 100644
--- a/Makefile
+++ b/Makefile
@@ -822,7 +822,7 @@  u-boot.bin: u-boot FORCE
 
 u-boot.ldr:	u-boot
 		$(CREATE_LDR_ENV)
-		$(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS)
+		$(LDR) -T $(CONFIG_CPU) -c $@ $< $(LDR_FLAGS)
 		$(BOARD_SIZE_CHECK)
 
 OBJCOPYFLAGS_u-boot.ldr.hex := -I binary -O ihex
diff --git a/arch/blackfin/include/asm/config.h b/arch/blackfin/include/asm/config.h
index 836658a..73cbfa2 100644
--- a/arch/blackfin/include/asm/config.h
+++ b/arch/blackfin/include/asm/config.h
@@ -178,4 +178,6 @@ 
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_ARCH_MISC_INIT
 
+#define CONFIG_CPU CONFIG_BFIN_CPU
+
 #endif