summaryrefslogtreecommitdiff
path: root/cpu/arm926ejs/davinci/Makefile
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-05-15 23:44:08 +0200
committerWolfgang Denk <wd@denx.de>2009-06-12 20:39:47 +0200
commit48ef5729555f41f51618b6a3016ac5c53c7c75dc (patch)
tree3d02f4cf15092351c1ef37e18f7a35af939de7ac /cpu/arm926ejs/davinci/Makefile
parent7b7808ae6dace59287f565e9323cda7b098a5612 (diff)
downloadu-boot-imx-48ef5729555f41f51618b6a3016ac5c53c7c75dc.zip
u-boot-imx-48ef5729555f41f51618b6a3016ac5c53c7c75dc.tar.gz
u-boot-imx-48ef5729555f41f51618b6a3016ac5c53c7c75dc.tar.bz2
davinci: cpu-specific build uses conditional make syntax
Update cpu/arm926ejs/davinci/Makefile to use COBJ-y type syntax. Add the first conditional: for EMAC driver support. Not all chips have an EMAC; and boards might not use it, anyway. This doesn't touch PHY configuration; that should eventually become conditional too. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'cpu/arm926ejs/davinci/Makefile')
-rw-r--r--cpu/arm926ejs/davinci/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/cpu/arm926ejs/davinci/Makefile b/cpu/arm926ejs/davinci/Makefile
index 83708d8..e09874b 100644
--- a/cpu/arm926ejs/davinci/Makefile
+++ b/cpu/arm926ejs/davinci/Makefile
@@ -27,15 +27,17 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(SOC).a
-COBJS = timer.o ether.o lxt972.o dp83848.o psc.o
+COBJS-y += timer.o psc.o
+COBJS-$(CONFIG_DRIVER_TI_EMAC) += ether.o lxt972.o dp83848.o
+
SOBJS = reset.o
ifndef CONFIG_SKIP_LOWLEVEL_INIT
SOBJS += lowlevel_init.o
endif
-SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
+SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS-y) $(SOBJS))
START := $(addprefix $(obj),$(START))
all: $(obj).depend $(LIB)