]> git.sur5r.net Git - u-boot/commitdiff
Blackfin: bf537-stamp: move CONFIG_POST handling to COBJS-$(...)
authorMike Frysinger <vapier@gentoo.org>
Sun, 22 Feb 2009 21:23:41 +0000 (16:23 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 23 Mar 2009 19:14:52 +0000 (15:14 -0400)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
board/bf537-stamp/Makefile
board/bf537-stamp/post-memory.c

index cb38b96a3b3e05c328949c36eb393b07d55baced..199093b8242b6142bfe28a2abf906cbc9e102b53 100644 (file)
@@ -29,9 +29,10 @@ include $(TOPDIR)/config.mk
 
 LIB    = $(obj)lib$(BOARD).a
 
-COBJS-y        := $(BOARD).o post-memory.o cmd_bf537led.o
+COBJS-y        := $(BOARD).o cmd_bf537led.o
 COBJS-$(CONFIG_CMD_EEPROM) += spi_flash.o
 COBJS-$(CONFIG_CMD_NAND)   += nand.o
+COBJS-$(CONFIG_POST)       += post-memory.o
 
 SRCS   := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS-y))
index 9626f4cd7af0bda5832a83159e0de5c4ea52cb75..4daea627ef56ea4c8462c1071f3cc5e3658f6041 100644 (file)
@@ -1,8 +1,6 @@
 #include <common.h>
 #include <asm/io.h>
 
-#ifdef CONFIG_POST
-
 #include <post.h>
 #include <watchdog.h>
 
@@ -318,4 +316,3 @@ int post_init_sdram(int sclk)
 }
 
 #endif                         /* CONFIG_POST & CONFIG_SYS_POST_MEMORY */
-#endif                         /* CONFIG_POST */