X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=post%2Frules.mk;h=17f8ef76234369f0d7e148bffecf432df09cd3ba;hb=9a4d50e34dde4d03f9c7c595f548d8c214d98eb7;hp=a2f33ad6ae3593f107acef0f94985a0f7969c87b;hpb=afa98843e4665add11b69496341053b268156e3a;p=u-boot diff --git a/post/rules.mk b/post/rules.mk index a2f33ad6ae..17f8ef7623 100644 --- a/post/rules.mk +++ b/post/rules.mk @@ -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) + $(call cmd_link_o_target, $(OBJS)) #########################################################################