]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
avr32: Use new-style Makefile for the at32ap platform
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Wed, 30 Apr 2008 14:15:57 +0000 (16:15 +0200)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Tue, 27 May 2008 13:27:30 +0000 (15:27 +0200)
This makes it easier to avoid compiling certain files later.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
cpu/at32ap/Makefile

index f69b1f3854665226d669a8b2a4aabcc98e73c78b..8e384c7e07f2bc99fc3434d476562d94d4063e4c 100644 (file)
@@ -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)