xen: append EXTRA_CFLAGS_XEN_CORE to CFLAGS
PATCH v2 1/1 xen: append EXTRA_CFLAGS_XEN_CORE to CFLAGS
Allow a user to supply extra CFLAGS via the EXTRA_CFLAGS_XEN_CORE environment variable for hypervisor builds. 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]>
---
changes since v1:
- don't depend on XEN_CONFIG_EXPERT
- rename flag to EXTRA_CFLAGS_XEN_CORE
- add info to INSTALL
--
INSTALL | 4 ++++ xen/Rules.mk | 2 ++ 2 files changed, 6 insertions(+)
INSTALL +4 -0
@@ -247,6 +247,10 @@ EXTRA_CFLAGS_XEN_TOOLS= EXTRA_CFLAGS_QEMU_TRADITIONAL= EXTRA_CFLAGS_QEMU_XEN= +Additional CFLAGS may be supplied to the build of the hypervisor by +using this variable. +EXTRA_CFLAGS_XEN_CORE= + This variable can be used to use DIR/include and DIR/lib during build. This is the same as PREPEND_LIB and PREPEND_INCLUDES. APPEND_LIB and APPEND_INCLUDES= will be appended to the CFLAGS/LDFLAGS variable.
xen/Rules.mk +2 -0
@@ -79,6 +79,8 @@ ALL_OBJS := $(ALL_OBJS-y) CFLAGS-y += -MMD -MF $(@D)/.$(@F).d CFLAGS += $(CFLAGS-y) +# allow extra CFLAGS externally via EXTRA_CFLAGS_XEN_CORE +CFLAGS += $(EXTRA_CFLAGS_XEN_CORE) # 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
Quoted 6 lines · Doug Goldstein
Allow a user to supply extra CFLAGS via the
EXTRA_CFLAGS_XEN_COREenvironment variable for hypervisor builds. 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
Quoted 6 lines · Doug Goldstein
Allow a user to supply extra CFLAGS via the
EXTRA_CFLAGS_XEN_COREenvironment variable for hypervisor builds. 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