Re: [PATCH 2/3] xen: Clear TUNE_CCARGS for Xen build for aarch64 machines

Bertrand Marquis

Hi Kamil,

On 8 Dec 2021, at 10:44, Kamil Dziezyk via <> wrote:

Xen build may fail for arm machines that have enabled extra flags,
that can be enabled only for specific architecture version, e.g. armv8-2a.

Signed-off-by: Kamil Dziezyk <kamil.dziezyk@...>
Reviewed-by: Bertrand Marquis <bertrand.marquis@...>


recipes-extended/xen/ | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/recipes-extended/xen/ b/recipes-extended/xen/
index d3c7a7d..9ac82ef 100644
--- a/recipes-extended/xen/
+++ b/recipes-extended/xen/
@@ -102,6 +102,11 @@ EXTRA_CFLAGS_XEN_CORE="${DEBUG_PREFIX_MAP}"
# EXTRA_CFLAGS_XEN_TOOLS: so clear TUNE_CCARGS on x86 to prevent that.

+# - The Xen build for aarch64 systems with HVM-mode enabled may include
+# architecture specific flags '-march=*' which causes build failure, so clear
+# TUNE_CCARGS on aarch64 to prevent that.
# - Yocto supplies the _FORTIFY_SOURCE flag via CC/CPP/CXX but then passes the
# optimization -O via C*FLAGS which is problematic when the CFLAGS are cleared
# within the build because compilation fails with the compiler stating

Join to automatically receive all group messages.