Skip to contentSkip to conversation

include: correct re-building conditions around hypercall-defs.h

PATCH In review Jan Beulich 2 participants 3 messages Jul 25, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 include: correct re-building conditions around hypercall-defs.h

For a .cmd file to be picked up, the respective target needs to be listed in $(targets). This wasn't the case for hypercall-defs.i, leading to permanent re-building even on an entirely unchanged tree (because of the command apparently having changed).

Fixes eca1f00d0227 ("xen: generate hypercall interface related code")
xen/include/Makefile +1 -1
@@ -114,7 +114,7 @@ all: $(obj)/xen/hypercall-defs.h
 $(obj)/xen/hypercall-defs.h: $(obj)/hypercall-defs.i $(srctree)/scripts/gen_hypercall.awk FORCE
 	$(call if_changed,genhyp)
 
-targets += xen/hypercall-defs.h
+targets += hypercall-defs.i xen/hypercall-defs.h
 
 ifeq ($(XEN_TARGET_ARCH),$(XEN_COMPILE_ARCH))
 
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Jan Beulich

For a .cmd file to be picked up, the respective target needs to be listed in $(targets). This wasn't the case for hypercall-defs.i, leading to permanent re-building even on an entirely unchanged tree (because of the command apparently having changed).

Fixes eca1f00d0227 ("xen: generate hypercall interface related code")

xen/include/Makefile all: $(obj)/xen/hypercall-defs.h · line 117

Quoted 5 lines
xen/include/Makefile +1 -1
@@ -114,7 +114,7 @@ all: $(obj)/xen/hypercall-defs.h
 $(obj)/xen/hypercall-defs.h: $(obj)/hypercall-defs.i $(srctree)/scripts/gen_hypercall.awk FORCE
 	$(call if_changed,genhyp)
 
-targets += xen/hypercall-defs.h
+targets += hypercall-defs.i xen/hypercall-defs.h

Do you want to remove "hypercall-defs.i" from $(clean-files) at the same time?

In any case,

Thanks,

Signature · 1 line
Anthony PERARD
#2 lore raw
Quoted 15 lines · Anthony PERARD
Quoted 14 lines · Jan Beulich

For a .cmd file to be picked up, the respective target needs to be listed in $(targets). This wasn't the case for hypercall-defs.i, leading to permanent re-building even on an entirely unchanged tree (because of the command apparently having changed).

Fixes eca1f00d0227 ("xen: generate hypercall interface related code")
xen/include/Makefile +0 -0
@@ -114,7 +114,7 @@ all: $(obj)/xen/hypercall-defs.h
 $(obj)/xen/hypercall-defs.h: $(obj)/hypercall-defs.i $(srctree)/scripts/gen_hypercall.awk FORCE
 	$(call if_changed,genhyp)
 
Quoted 5 lines

xen/include/Makefile all: $(obj)/xen/hypercall-defs.h · line 117

Quoted 2 lines
xen/include/Makefile +1 -1
-targets += xen/hypercall-defs.h
+targets += hypercall-defs.i xen/hypercall-defs.h

Do you want to remove "hypercall-defs.i" from $(clean-files) at the same time?

Oh, right - I certainly should.

Quoted 2 lines

In any case,

Thanks.

Jan