]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Blackfin: only build post code when CONFIG_POST
authorMike Frysinger <vapier@gentoo.org>
Sat, 18 Oct 2008 09:33:51 +0000 (05:33 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 2 Feb 2009 17:24:30 +0000 (12:24 -0500)
Save some time by using CONFIG_POST in the Makefile rather than C files.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
lib_blackfin/Makefile
lib_blackfin/post.c
lib_blackfin/tests.c

index fee0fdaca3601c6c1bd3cc4de5be94cc0f8b46ad..93f7d4f102cf7ddb5bac66543f33858958d0b719 100644 (file)
@@ -40,9 +40,8 @@ COBJS-y       += board.o
 COBJS-y        += boot.o
 COBJS-y        += cache.o
 COBJS-y        += muldi3.o
-COBJS-y        += post.o
+COBJS-$(CONFIG_POST) += post.o tests.o
 COBJS-y        += string.o
-COBJS-y        += tests.o
 
 SRCS   := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
index 4ab9e8bf034efa40a3539ace5531fa2516886e5d..35ccd3cd74303552359fe861cfdf26cb82aa4249 100644 (file)
@@ -30,8 +30,6 @@
 #include <logbuff.h>
 #endif
 
-#ifdef CONFIG_POST
-
 DECLARE_GLOBAL_DATA_PTR;
 
 #define POST_MAX_NUMBER                32
@@ -421,5 +419,3 @@ unsigned long post_time_ms(unsigned long base)
 {
        return (unsigned long)get_ticks() / (get_tbclk() / CONFIG_SYS_HZ) - base;
 }
-
-#endif                         /* CONFIG_POST */
index c2319ecb7b88e64b70928051cc4df0836596ce1d..bf7fba00c1188882edaee768b394ae2a6eb973e8 100644 (file)
@@ -27,7 +27,6 @@
 
 #include <common.h>
 #include <config.h>
-#ifdef CONFIG_POST
 
 #include <post.h>
 #define CONFIG_SYS_POST_FLASH  0x00004000
@@ -249,5 +248,3 @@ struct post_test post_list[] = {
 };
 
 unsigned int post_list_size = sizeof(post_list) / sizeof(struct post_test);
-
-#endif                         /* CONFIG_POST */