]> git.sur5r.net Git - u-boot/commitdiff
avr32/hsdramc: Move conditional compilation to Makefile
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj at>
Sat, 6 Jun 2009 10:30:58 +0000 (10:30 +0000)
committerTom Rix <Tom.Rix@windriver.com>
Fri, 27 Nov 2009 22:26:17 +0000 (16:26 -0600)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj <at> jcrosoft.com>
Cc: Haavard Skinnemoen <haavard.skinnemoen <at> atmel.com>
cpu/at32ap/Makefile
cpu/at32ap/hsdramc.c

index e08f27383da108cd82a3e549bbfcb4e99dba6492..60899c79ea0b59c24fb3315412362a939afbb219 100644 (file)
@@ -30,7 +30,7 @@ LIB   := $(obj)lib$(CPU).a
 START-y                        += start.o
 
 COBJS-y                        += cpu.o
-COBJS-y                        += hsdramc.o
+COBJS-$(CONFIG_SYS_HSDRAMC) += hsdramc.o
 COBJS-y                        += exception.o
 COBJS-y                        += cache.o
 COBJS-y                        += interrupts.o
index f74121cd46239aa3d9335a481b72a1e0b72254cd..b6eae667c242ab0b22fe8cdcd54d7a01a9cdda61 100644 (file)
@@ -21,7 +21,6 @@
  */
 #include <common.h>
 
-#ifdef CONFIG_SYS_HSDRAMC
 #include <asm/io.h>
 #include <asm/sdram.h>
 
@@ -116,5 +115,3 @@ unsigned long sdram_init(void *sdram_base, const struct sdram_config *config)
 
        return sdram_size;
 }
-
-#endif /* CONFIG_SYS_HSDRAMC */