xen: append EXTRA_CFLAGS to CFLAGS for expert builds
PATCH 1/1 xen: append EXTRA_CFLAGS to CFLAGS for expert builds
Allow a user to supply extra CFLAGS via the EXTRA_CFLAGS environment variable. This is not a configuration that is supported but is only aimed to help support testing and troubleshooting when you need to make changes.
---
CC: Andrew Cooper <[email protected]>
CC: George Dunlap <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Wei Liu <[email protected]>
CC: Roger Pau Monné <[email protected]>
--- xen/Rules.mk | 2 ++ 1 file changed, 2 insertions(+)
xen/Rules.mk +2 -0
@@ -75,6 +75,8 @@ ALL_OBJS := $(ALL_OBJS-y) CFLAGS-y += -MMD -MF $(@D)/.$(@F).d CFLAGS += $(CFLAGS-y) +# allow extra CFLAGS externally via EXTRA_CFLAGS +CFLAGS += $(EXTRA_CFLAGS) # Most CFLAGS are safe for assembly files: # -std=gnu{89,99} gets confused by #-prefixed end-of-line comments
Signature · 7 lines
2.13.6 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Doug Goldstein writes ("[PATCH] xen: append EXTRA_CFLAGS to CFLAGS for expert builds"):
Quoted 4 lines
Allow a user to supply extra CFLAGS via the
EXTRA_CFLAGSenvironment variable. This is not a configuration that is supported but is only aimed to help support testing and troubleshooting when you need to make changes.
Something like this is IMO essential. I don't care what the variable is called.
Ian.
(not a hypervisor maintainer)
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 6 lines · Doug Goldstein
Allow a user to supply extra CFLAGS via the
EXTRA_CFLAGSenvironment variable. This is not a configuration that is supported but is only aimed to help support testing and troubleshooting when you need to make changes.Signed-off-by Doug Goldstein <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
xen/Rules.mk ALL_OBJS := $(ALL_OBJS-y) · line 79
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 18.01.18 at 18:04, <[email protected]> wrote:
xen/Rules.mk +2
-0@@ -75,6 +75,8 @@ ALL_OBJS := $(ALL_OBJS-y) CFLAGS-y += -MMD -MF $(@D)/.$(@F).d CFLAGS += $(CFLAGS-y) +# allow extra CFLAGS externally via EXTRA_CFLAGS +CFLAGS += $(EXTRA_CFLAGS)
This is too unspecific a name for my taste: Upstream qemu has uses of such a symbol too, for example (I didn't go check whether those uses would collide with yours).
You will also want to document this in ./INSTALL, I think. Along with what's already there, how about naming the new one EXTRA_CFLAGS_XEN or EXTRA_CFLAGS_XEN_CORE? Considering
the separate shim build, we may then also want EXTRA_CFLAGS_XEN_SHIM.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel