summaryrefslogtreecommitdiff
path: root/cpu/mpc83xx/Makefile
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2008-03-24 17:40:27 +0300
committerKim Phillips <kim.phillips@freescale.com>2008-03-25 19:16:44 -0500
commita796cdf9c377cb4e5d61d1079a296608f8fbd903 (patch)
treeae441e8d22b6d3d6f2b99c1e18add7b65d1cab3a /cpu/mpc83xx/Makefile
parent46a3aeea73c13ab04ebf7a8739afb87ac5da94a3 (diff)
83xx: split COBJS onto separate lines
..plus get rid of some #ifdefs in the .c files. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Diffstat (limited to 'cpu/mpc83xx/Makefile')
-rw-r--r--cpu/mpc83xx/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/cpu/mpc83xx/Makefile b/cpu/mpc83xx/Makefile
index 94a3cb8334..7ad7e3e65f 100644
--- a/cpu/mpc83xx/Makefile
+++ b/cpu/mpc83xx/Makefile
@@ -28,9 +28,19 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(CPU).a
START = start.o
-COBJS = traps.o cpu.o cpu_init.o speed.o interrupts.o \
- spd_sdram.o ecc.o qe_io.o pci.o fdt.o
+COBJS-y += traps.o
+COBJS-y += cpu.o
+COBJS-y += cpu_init.o
+COBJS-y += speed.o
+COBJS-y += interrupts.o
+COBJS-y += spd_sdram.o
+COBJS-y += ecc.o
+COBJS-$(CONFIG_QE) += qe_io.o
+COBJS-$(CONFIG_83XX_GENERIC_PCI) += pci.o
+COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
+
+COBJS := $(COBJS-y)
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
START := $(addprefix $(obj),$(START))