Merge branch 'master' of git://git.denx.de/u-boot-video
[oweals/u-boot.git] / cpu / at32ap / Makefile
index 8e384c7e07f2bc99fc3434d476562d94d4063e4c..e08f27383da108cd82a3e549bbfcb4e99dba6492 100644 (file)
@@ -29,14 +29,13 @@ LIB := $(obj)lib$(CPU).a
 
 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
+COBJS-$(CONFIG_PORTMUX_PIO) += portmux-pio.o
+COBJS-$(CONFIG_PORTMUX_GPIO) += portmux-gpio.o
 
 SRCS   := $(START-y:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))