* [U-Boot] [patch u-boot git 2/5] davinci: cpu-specific build uses conditional make syntax
@ 2009-04-18 21:04 David Brownell
0 siblings, 0 replies; only message in thread
From: David Brownell @ 2009-04-18 21:04 UTC (permalink / raw)
To: u-boot
From: David Brownell <dbrownell@users.sourceforge.net>
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>
---
cpu/arm926ejs/davinci/Makefile | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
--- 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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-18 21:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-18 21:04 [U-Boot] [patch u-boot git 2/5] davinci: cpu-specific build uses conditional make syntax David Brownell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox