]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - post/rules.mk
post/i2c: Rename I2C_ADDR_LIST to CONFIG_SYS_POST_I2C_ADDRS
[karo-tx-uboot.git] / post / rules.mk
index a2f33ad6ae3593f107acef0f94985a0f7969c87b..1efc9c7d97d76f8639a4af8c621786c0c4322e36 100644 (file)
@@ -23,7 +23,9 @@
 
 include $(TOPDIR)/config.mk
 
-SRCS   := $(AOBJS:.o=.S) $(COBJS:.o=.c)
+COBJS  := $(COBJS-y)
+AOBJS  := $(AOBJS-y)
+SRCS   := $(AOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(AOBJS) $(COBJS))
 LIB    := $(obj)$(LIB)
 
@@ -32,7 +34,7 @@ CPPFLAGS += -I$(TOPDIR)
 all:   $(LIB)
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) crv $@ $(OBJS)
+       $(AR) $(ARFLAGS) $@ $(OBJS)
 
 #########################################################################