summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2008-04-30 16:15:57 +0200
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2008-05-27 15:27:30 +0200
commit4f5972c3b2454c22957f2842cfe64ec8118e015b (patch)
treec45341d36fb4bdef65985e9be28e316a77e31dad /cpu
parenta9b2bb78a1bd8ebdb633509bdd1c8134d527b213 (diff)
downloadu-boot-imx-4f5972c3b2454c22957f2842cfe64ec8118e015b.zip
u-boot-imx-4f5972c3b2454c22957f2842cfe64ec8118e015b.tar.gz
u-boot-imx-4f5972c3b2454c22957f2842cfe64ec8118e015b.tar.bz2
avr32: Use new-style Makefile for the at32ap platform
This makes it easier to avoid compiling certain files later. Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/at32ap/Makefile21
1 files changed, 14 insertions, 7 deletions
diff --git a/cpu/at32ap/Makefile b/cpu/at32ap/Makefile
index f69b1f3..8e384c7 100644
--- a/cpu/at32ap/Makefile
+++ b/cpu/at32ap/Makefile
@@ -27,13 +27,20 @@ include $(TOPDIR)/config.mk
LIB := $(obj)lib$(CPU).a
-START := start.o
-SOBJS := entry.o
-COBJS := cpu.o hsdramc.o exception.o cache.o
-COBJS += interrupts.o pio.o atmel_mci.o
-SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
-START := $(addprefix $(obj),$(START))
+START-y += start.o
+
+SOBJS-y += entry.o
+COBJS-y += cpu.o
+COBJS-y += hsdramc.o
+COBJS-y += exception.o
+COBJS-y += cache.o
+COBJS-y += interrupts.o
+COBJS-y += pio.o
+COBJS-y += atmel_mci.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)