include: correct re-building conditions around hypercall-defs.h
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).
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))
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")Signed-off-by Jan Beulich <[email protected]>
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
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")Signed-off-by Jan Beulich <[email protected]>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.hDo 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,
Reviewed-by Anthony PERARD <[email protected]>
Thanks.
Jan