mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-11 13:46:17 +09:00
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>
This commit is contained in:
parent
7b7808ae6d
commit
48ef572955
|
@ -27,15 +27,17 @@ include $(TOPDIR)/config.mk
|
||||||
|
|
||||||
LIB = $(obj)lib$(SOC).a
|
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
|
SOBJS = reset.o
|
||||||
|
|
||||||
ifndef CONFIG_SKIP_LOWLEVEL_INIT
|
ifndef CONFIG_SKIP_LOWLEVEL_INIT
|
||||||
SOBJS += lowlevel_init.o
|
SOBJS += lowlevel_init.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
|
||||||
OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
|
OBJS := $(addprefix $(obj),$(COBJS-y) $(SOBJS))
|
||||||
START := $(addprefix $(obj),$(START))
|
START := $(addprefix $(obj),$(START))
|
||||||
|
|
||||||
all: $(obj).depend $(LIB)
|
all: $(obj).depend $(LIB)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user