From: Anthony PERARD Date: Tue, 7 Sep 2021 07:16:45 +0000 (+0200) Subject: build: use if_changed_rule with %.o:%.c targets X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~42^2~236 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=332c735d24387152e8f578e38066b5d03803c2a2;p=xen.git build: use if_changed_rule with %.o:%.c targets Use $(dot-target) to have the target name prefix with a dot. Now, when the CC command has run, it is recorded in .*.cmd file, then if_changed_rules will compare it on subsequent runs. Signed-off-by: Anthony PERARD Reviewed-by: Jan Beulich --- diff --git a/xen/Rules.mk b/xen/Rules.mk index a715a4525e..11c253026b 100644 --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -192,19 +192,27 @@ FORCE: SRCPATH := $(patsubst $(BASEDIR)/%,%,$(CURDIR)) -%.o: %.c Makefile +quiet_cmd_cc_o_c = CC $@ ifeq ($(CONFIG_ENFORCE_UNIQUE_SYMBOLS),y) - $(CC) $(c_flags) -c $< -o $(@D)/.$(@F).tmp -MQ $@ -ifeq ($(CONFIG_CC_IS_CLANG),y) - $(OBJCOPY) --redefine-sym $<=$(SRCPATH)/$< $(@D)/.$(@F).tmp $@ -else - $(OBJCOPY) --redefine-sym $(