X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=post%2Frules.mk;h=17f8ef76234369f0d7e148bffecf432df09cd3ba;hb=47b8e527448c94d09fc8dbdb6601ea7a605ff955;hp=e2c73c6004a879823b93b1d68e8091dc6f9bf4a3;hpb=83dc830b1693252d996bda920cd5f3161d7c64a9;p=karo-tx-uboot.git diff --git a/post/rules.mk b/post/rules.mk index e2c73c6004..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) $(ARFLAGS) $@ $(OBJS) + $(call cmd_link_o_target, $(OBJS)) #########################################################################