summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-04-08 00:20:52 +0200
committerWolfgang Denk <wd@denx.de>2008-04-08 00:20:52 +0200
commitaeff6d503b6006573d5c6b04fc658a64bebee5fa (patch)
treea8f27e3fede8e8dc1d78b5f8628ac9294829051b /cpu
parenta1b215e2a2a013327693f2fb990957b746f26cf5 (diff)
parentc2a545ce33b26d80337f80b533828839249fb1c9 (diff)
downloadu-boot-imx-aeff6d503b6006573d5c6b04fc658a64bebee5fa.zip
u-boot-imx-aeff6d503b6006573d5c6b04fc658a64bebee5fa.tar.gz
u-boot-imx-aeff6d503b6006573d5c6b04fc658a64bebee5fa.tar.bz2
Merge branch 'master' of git://www.denx.de/git/u-boot-fdt
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mpc8xx/Makefile33
1 files changed, 23 insertions, 10 deletions
diff --git a/cpu/mpc8xx/Makefile b/cpu/mpc8xx/Makefile
index dbdc2e0..5f70459 100644
--- a/cpu/mpc8xx/Makefile
+++ b/cpu/mpc8xx/Makefile
@@ -27,16 +27,29 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(CPU).a
-START = start.o kgdb.o
-COBJS = bedbug_860.o commproc.o cpu.o cpu_init.o \
- fec.o fdt.o i2c.o interrupts.o lcd.o scc.o \
- serial.o speed.o spi.o \
- traps.o upatch.o video.o
-SOBJS = plprcr_write.o
-
-SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
-START := $(addprefix $(obj),$(START))
+START-y += start.o
+START-y += kgdb.o
+COBJS-y += bedbug_860.o
+COBJS-y += commproc.o
+COBJS-y += cpu.o
+COBJS-y += cpu_init.o
+COBJS-y += fec.o
+COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
+COBJS-y += i2c.o
+COBJS-y += interrupts.o
+COBJS-y += lcd.o
+COBJS-y += scc.o
+COBJS-y += serial.o
+COBJS-y += speed.o
+COBJS-y += spi.o
+COBJS-y += traps.o
+COBJS-y += upatch.o
+COBJS-y += video.o
+SOBJS-y += plprcr_write.o
+
+SRCS := $(START-y:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
+OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
+START := $(addprefix $(obj),$(START-y))
all: $(obj).depend $(START) $(LIB)