aboutsummaryrefslogtreecommitdiff
path: root/board/bf533-stamp
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-10-12 22:09:26 -0400
committerMike Frysinger <vapier@gentoo.org>2009-01-28 13:27:28 -0500
commit1f4a3bb50343719c434d7e2541a2f86480a6d25c (patch)
treef14361fd2a87bfef24854de59c7337cd5aac9030 /board/bf533-stamp
parent1f75d6f0ff005762d3e6ad92ae4ce2ab366b3bb5 (diff)
downloadu-boot-linaro-stable-1f4a3bb50343719c434d7e2541a2f86480a6d25c.tar.gz
Blackfin: convert old boards to use COBJS-y Makefile style
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'board/bf533-stamp')
-rw-r--r--board/bf533-stamp/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/board/bf533-stamp/Makefile b/board/bf533-stamp/Makefile
index 5b5e19997..a03fe89af 100644
--- a/board/bf533-stamp/Makefile
+++ b/board/bf533-stamp/Makefile
@@ -29,12 +29,13 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(BOARD).a
-COBJS-y := $(BOARD).o spi_flash.o
+COBJS-y := $(BOARD).o
+COBJS-$(CONFIG_CMD_EEPROM) += spi_flash.o
COBJS-$(CONFIG_VIDEO) += video.o
-SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
+SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS-y))
-SOBJS := $(addprefix $(obj),$(SOBJS))
+SOBJS := $(addprefix $(obj),$(SOBJS-y))
$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)