post/Makefile: Only build FP post tests if enabled via CONFIG_SYS_POST_FPU
authorKumar Gala <galak@kernel.crashing.org>
Thu, 12 Jan 2012 09:30:41 +0000 (09:30 +0000)
committerWolfgang Denk <wd@denx.de>
Fri, 13 Jan 2012 19:42:44 +0000 (20:42 +0100)
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
post/Makefile

index 200e2f1..55b7d21 100644 (file)
@@ -32,7 +32,7 @@ COBJS-$(CONFIG_POST_STD_LIST) += tests.o
 SPLIB-$(CONFIG_HAS_POST) = drivers/libpostdrivers.o
 SPLIB-$(CONFIG_HAS_POST) += $(shell if [ -d lib_$(ARCH) ]; then echo \
                            "lib_$(ARCH)/libpost$(ARCH).o"; fi)
-SPLIB-$(CONFIG_HAS_POST) += $(shell if [ -d lib_$(ARCH)/fpu ]; then echo \
+SPLIB-$(CONFIG_SYS_POST_FPU) += $(shell if [ -d lib_$(ARCH)/fpu ]; then echo \
                            "lib_$(ARCH)/fpu/libpost$(ARCH)fpu.o"; fi)
 SPLIB-$(CONFIG_HAS_POST) += $(shell if [ -d cpu/$(CPU) ]; then echo \
                            "cpu/$(CPU)/libpost$(CPU).o"; fi)