]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
prevent compiling crt0.S when it is not actually used
authorLothar Waßmann <LW@KARO-electronics.de>
Fri, 17 May 2013 13:32:11 +0000 (15:32 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 17 May 2013 13:32:11 +0000 (15:32 +0200)
arch/arm/lib/Makefile

index 57111afd90c1427fd8a0b27b137c25857102ef1d..9479d30e4b70075a3815c33e8f52b34f2045e37e 100644 (file)
@@ -36,16 +36,18 @@ GLSOBJS     += _umodsi3.o
 
 GLCOBJS        += div0.o
 
-SOBJS-y += crt0.o
-
 ifndef CONFIG_SPL_BUILD
 COBJS-y        += board.o
 COBJS-y        += bootm.o
 COBJS-$(CONFIG_SYS_L2_PL310) += cache-pl310.o
+SOBJS-y += crt0.o
 SOBJS-$(CONFIG_USE_ARCH_MEMSET) += memset.o
 SOBJS-$(CONFIG_USE_ARCH_MEMCPY) += memcpy.o
 else
 COBJS-$(CONFIG_SPL_FRAMEWORK) += spl.o
+ifndef CONFIG_SPL_NO_CPU_SUPPORT_CODE
+SOBJS-y += crt0.o
+endif
 endif
 
 COBJS-y        += interrupts.o