sbc8548: use I/O accessors
[oweals/u-boot.git] / lib_arm / Makefile
index 241782c177a3164bbef5d44a49cfef19976530de..02933485cd16600f4f9dbae073a85184a40a7d8d 100644 (file)
@@ -29,6 +29,7 @@ LIBGCC        = $(obj)libgcc.a
 GLSOBJS        += _ashldi3.o
 GLSOBJS        += _ashrdi3.o
 GLSOBJS        += _divsi3.o
+GLSOBJS        += _lshrdi3.o
 GLSOBJS        += _modsi3.o
 GLSOBJS        += _udivsi3.o
 GLSOBJS        += _umodsi3.o
@@ -50,12 +51,21 @@ OBJS        := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
 LGOBJS := $(addprefix $(obj),$(GLSOBJS)) \
           $(addprefix $(obj),$(GLCOBJS))
 
+# Always build libarm.a
+TARGETS        := $(LIB)
+
+# Build private libgcc only when asked for
 ifdef USE_PRIVATE_LIBGCC
-all:   $(LIB) $(LIBGCC)
-else
-all:   $(LIB)
+TARGETS        += $(LIBGCC)
+endif
+
+# For EABI conformant tool chains, provide eabi_compat()
+ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS)))
+TARGETS        += $(obj)eabi_compat.o
 endif
 
+all:   $(TARGETS)
+
 $(LIB):        $(obj).depend $(OBJS)
        $(AR) $(ARFLAGS) $@ $(OBJS)