public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/1] avr32/hsdramc: Move conditional compilation to Makefile
@ 2009-06-13 10:30 Jean-Christophe PLAGNIOL-VILLARD
  2009-06-13 13:02 ` Haavard Skinnemoen
  2009-11-22 20:19 ` Wolfgang Denk
  0 siblings, 2 replies; 4+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2009-06-13 10:30 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
---
 cpu/at32ap/Makefile  |    2 +-
 cpu/at32ap/hsdramc.c |    3 ---
 2 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/cpu/at32ap/Makefile b/cpu/at32ap/Makefile
index e08f273..60899c7 100644
--- a/cpu/at32ap/Makefile
+++ b/cpu/at32ap/Makefile
@@ -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
diff --git a/cpu/at32ap/hsdramc.c b/cpu/at32ap/hsdramc.c
index f74121c..b6eae66 100644
--- a/cpu/at32ap/hsdramc.c
+++ b/cpu/at32ap/hsdramc.c
@@ -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 */
-- 
1.6.3.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-26 22:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-13 10:30 [U-Boot] [PATCH 1/1] avr32/hsdramc: Move conditional compilation to Makefile Jean-Christophe PLAGNIOL-VILLARD
2009-06-13 13:02 ` Haavard Skinnemoen
2009-11-22 20:19 ` Wolfgang Denk
2009-11-26 22:24   ` Tom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox