From: Wolfgang Denk Date: Sat, 16 May 2009 10:47:37 +0200 Subject: [U-Boot] [PATCH v2 01/10] mpc512x: change cpu/mpc512x/Makefile to use Kconfig style In-Reply-To: <1241898668-11903-1-git-send-email-wd@denx.de> References: <1241898668-11903-1-git-send-email-wd@denx.de> Message-ID: <1242463666-28583-2-git-send-email-wd@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: Wolfgang Denk Cc: John Rigby --- cpu/mpc512x/Makefile | 9 ++++----- 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)) -- 1.6.0.6