[U-Boot] [PATCH 23/25] SPEAr: Use separate config flags for 3xx and 6xx board files

Amit Virdi amit.virdi at st.com
Wed Mar 7 13:04:12 CET 2012


Signed-off-by: Amit Virdi <amit.virdi at st.com>
---
 board/spear/common/Makefile |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/board/spear/common/Makefile b/board/spear/common/Makefile
index 11f81e4..48dcfd3 100644
--- a/board/spear/common/Makefile
+++ b/board/spear/common/Makefile
@@ -29,9 +29,14 @@ endif
 
 LIB	= $(obj)lib$(VENDOR).o
 
-COBJS	:= spr_misc.o
-SOBJS	:= spr_lowlevel_init.o
+COBJS-$(CONFIG_SPEAR3XX) += spr_misc.o
+COBJS-$(CONFIG_SPEAR600) += spr_misc.o
 
+SOBJS-$(CONFIG_SPEAR3XX) += spr_lowlevel_init.o
+SOBJS-$(CONFIG_SPEAR600) += spr_lowlevel_init.o
+
+COBJS	:= $(sort $(COBJS-y))
+SOBJS	:= $(sort $(SOBJS-y))
 SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS	:= $(addprefix $(obj),$(COBJS))
 SOBJS	:= $(addprefix $(obj),$(SOBJS))
-- 
1.7.2.2



More information about the U-Boot mailing list