summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-05-16 10:47:37 +0200
committerWolfgang Denk <wd@denx.de>2009-06-12 20:47:16 +0200
commit03e069dc0a765d506f78a68319acf33d432e035b (patch)
tree4bb2243e78a1a47cd453ac3c1fffe3332cbf978c /cpu
parenta89c33db96a1e55319a286dd4c3c05ca64ac6bfd (diff)
downloadu-boot-imx-03e069dc0a765d506f78a68319acf33d432e035b.zip
u-boot-imx-03e069dc0a765d506f78a68319acf33d432e035b.tar.gz
u-boot-imx-03e069dc0a765d506f78a68319acf33d432e035b.tar.bz2
mpc512x: change cpu/mpc512x/Makefile to use Kconfig style
Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: John Rigby <jcrigby@gmail.com>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mpc512x/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/cpu/mpc512x/Makefile b/cpu/mpc512x/Makefile
index 297d135..d6bfd59 100644
--- a/cpu/mpc512x/Makefile
+++ b/cpu/mpc512x/Makefile
@@ -1,5 +1,5 @@
#
-# (C) Copyright 2007 DENX Software Engineering
+# (C) Copyright 2007-2009 DENX Software Engineering
#
# See file CREDITS for list of people who contributed to this
# project.
@@ -25,11 +25,10 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(CPU).a
START = start.o
-COBJS = traps.o cpu.o cpu_init.o speed.o interrupts.o serial.o i2c.o iopin.o
-ifdef CONFIG_IIM
-COBJS += iim.o
-endif
+COBJS-y := traps.o cpu.o cpu_init.o speed.o interrupts.o serial.o i2c.o iopin.o
+COBJS-${CONFIG_IIM} += iim.o
+COBJS := $(COBJS-y)
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
START := $(addprefix $(obj),$(START))