]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - lib_ppc/Makefile
Move s3c24x0 header files to asm-arm/arch-s3c24x0/
[karo-tx-uboot.git] / lib_ppc / Makefile
index 3d76b700e2be6769e135c6c01cbeb73bd74fa409..399b41e31e0e30143ebedd10b2bfc08a208a045b 100644 (file)
@@ -38,10 +38,16 @@ COBJS-y     += interrupts.o
 COBJS-y        += kgdb.o
 COBJS-y        += time.o
 
-SRCS   := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
+SRCS   := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
 
 $(LIB):        $(obj).depend $(OBJS)
+       @if ! $(CROSS_COMPILE)readelf -S $(OBJS) | grep -q '\.fixup.*PROGBITS';\
+       then \
+               echo "ERROR: Your compiler doesn't generate .fixup sections!";\
+               echo "       Upgrade to a recent toolchain."; \
+               exit 1; \
+       fi;
        $(AR) $(ARFLAGS) $@ $(OBJS)
 
 #########################################################################