diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2008-03-31 21:20:49 +0200 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2008-04-01 01:46:12 +0200 |
commit | 1762f13b4aab88b685b1722f17dada247945624b (patch) | |
tree | a10c4edd50cfc538c65ca3f4ee0d93f3cbc772c5 /cpu/arm926ejs/at91sam9/Makefile | |
parent | 761712188b353494defb2b644491ff73d0daaa6f (diff) | |
download | u-boot-imx-1762f13b4aab88b685b1722f17dada247945624b.zip u-boot-imx-1762f13b4aab88b685b1722f17dada247945624b.tar.gz u-boot-imx-1762f13b4aab88b685b1722f17dada247945624b.tar.bz2 |
AT91SAM9: Move CONFIG_HAS_DATAFLASH to Makefile
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'cpu/arm926ejs/at91sam9/Makefile')
-rw-r--r-- | cpu/arm926ejs/at91sam9/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cpu/arm926ejs/at91sam9/Makefile b/cpu/arm926ejs/at91sam9/Makefile index bf15e1e..203abc2 100644 --- a/cpu/arm926ejs/at91sam9/Makefile +++ b/cpu/arm926ejs/at91sam9/Makefile @@ -25,11 +25,14 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(SOC).a -COBJS = ether.o timer.o spi.o usb.o +COBJS-y += ether.o +COBJS-y += timer.o +COBJS-$(CONFIG_HAS_DATAFLASH) +=spi.o +COBJS-y += usb.o SOBJS = lowlevel_init.o -SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) -OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) +SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) +OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y)) all: $(obj).depend $(LIB) |