Skip to contentSkip to conversation

xen: remove sse tuning flag

PATCH In review Brendan Kerrigan 2 participants 2 messages Nov 5, 2018 – Nov 8, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: remove sse tuning flag

Strip out the sse4.2 tuning flag to prevent sse instructions from being generated in the build, which breaks the hvmloader on some machine types (specifically core-i7 from meta-intel).

---
 recipes-extended/xen/xen.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-extended/xen/xen.inc +1 -0
index 2650413..7eb2ac4 100644
@@ -842,6 +842,7 @@ export LDFLAGS=""
 # conflicts with -mno-sse so instead we strip -mfpmath=sse instead of
 # patching the build to be ok with this
 TUNE_CCARGS := "${@oe.utils.str_filter_out('-mfpmath=sse', '${TUNE_CCARGS}', d)}"
+TUNE_CCARGS := "${@oe.utils.str_filter_out('-msse4.2', '${TUNE_CCARGS}', d)}"
 
 # Supply the full set of compiler flags via the tool variables
 # Yocto supplys _FORTIFY_SOURCE via CC/CPP/CXX but optimization -O via C*FLAGS
Signature · 1 line
2.17.1
#1 lore raw

I don't hear any dissenting opinions on the patch, so it is now merged.

Bruce

Quoted 30 lines · Brendan Kerrigan

Strip out the sse4.2 tuning flag to prevent sse instructions from being generated in the build, which breaks the hvmloader on some machine types (specifically core-i7 from meta-intel).

---
 recipes-extended/xen/xen.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-extended/xen/xen.inc +1 -1
index 2650413..7eb2ac4 100644
@@ -842,6 +842,7 @@ export LDFLAGS=""
 # conflicts with -mno-sse so instead we strip -mfpmath=sse instead of
 # patching the build to be ok with this
 TUNE_CCARGS := "${@oe.utils.str_filter_out('-mfpmath=sse', '${TUNE_CCARGS}', d)}"
+TUNE_CCARGS := "${@oe.utils.str_filter_out('-msse4.2', '${TUNE_CCARGS}', d)}"
 
 # Supply the full set of compiler flags via the tool variables
 # Yocto supplys _FORTIFY_SOURCE via CC/CPP/CXX but optimization -O via C*FLAGS
--

2.17.1

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II