[U-Boot] [RFC PATCH 5/7] armv7: adapt Makefile for spl building

Aneesh V aneesh at ti.com
Wed Jun 29 15:09:25 CEST 2011


Signed-off-by: Aneesh V <aneesh at ti.com>
---
 arch/arm/cpu/armv7/Makefile |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/arch/arm/cpu/armv7/Makefile b/arch/arm/cpu/armv7/Makefile
index 8c0e915..549ade6 100644
--- a/arch/arm/cpu/armv7/Makefile
+++ b/arch/arm/cpu/armv7/Makefile
@@ -26,11 +26,12 @@ include $(TOPDIR)/config.mk
 LIB	= $(obj)lib$(CPU).o
 
 START	:= start.o
-COBJS	:= cpu.o
-COBJS  += syslib.o
+COBJS-y	:=
+COBJS-$(CONFIG_NORMAL_UBOOT)	+= cpu.o
+COBJS-$(CONFIG_UBOOT_SPL_BUILD)	+= syslib.o
 
-SRCS	:= $(START:.o=.S) $(COBJS:.o=.c)
-OBJS	:= $(addprefix $(obj),$(COBJS))
+SRCS	:= $(START:.o=.S) $(COBJS-y:.o=.c)
+OBJS	:= $(addprefix $(obj),$(COBJS-y))
 START	:= $(addprefix $(obj),$(START))
 
 all:	$(obj).depend $(START) $(LIB)
-- 
1.7.0.4



More information about the U-Boot mailing list