From 88fb26f65474d6927fcf490585b1ea4baa4199f6 Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Wed, 4 Feb 2015 15:21:35 +1000 Subject: xen: Add patch to fix build failure on x86 * Add a patch which enables -mfpmath=387 which prevents the warning, which is treated as an error Signed-off-by: Nathan Rossi --- ...xen-x86-Fix-up-rules-when-forcing-mno-sse.patch | 28 ++++++++++++++++++++++ recipes-extended/xen/xen_4.5.0.bb | 1 + 2 files changed, 29 insertions(+) create mode 100644 recipes-extended/xen/files/xen-x86-Fix-up-rules-when-forcing-mno-sse.patch diff --git a/recipes-extended/xen/files/xen-x86-Fix-up-rules-when-forcing-mno-sse.patch b/recipes-extended/xen/files/xen-x86-Fix-up-rules-when-forcing-mno-sse.patch new file mode 100644 index 00000000..4c3e297f --- /dev/null +++ b/recipes-extended/xen/files/xen-x86-Fix-up-rules-when-forcing-mno-sse.patch @@ -0,0 +1,28 @@ +From: Nathan Rossi +Subject: [PATCH] xen/x86: Fix up rules when forcing -mno-sse + +* When forcing -mno-sse specify -mfpmath=387 to avoid the fallback + warning + +Signed-off-by: Nathan Rossi +Upstream-Status: Not-Submitted +--- + xen/arch/x86/Rules.mk | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/xen/arch/x86/Rules.mk b/xen/arch/x86/Rules.mk +index 6775cb5..03848f7 100644 +--- a/xen/arch/x86/Rules.mk ++++ b/xen/arch/x86/Rules.mk +@@ -42,7 +42,7 @@ x86 := y + x86_32 := n + x86_64 := y + +-CFLAGS += -mno-red-zone -mno-sse -fpic ++CFLAGS += -mno-red-zone -mno-sse -fpic -mfpmath=387 + CFLAGS += -fno-asynchronous-unwind-tables + # -fvisibility=hidden reduces -fpic cost, if it's available + ifneq ($(call cc-option,$(CC),-fvisibility=hidden,n),n) +-- +2.1.1 + diff --git a/recipes-extended/xen/xen_4.5.0.bb b/recipes-extended/xen/xen_4.5.0.bb index 5f8c087c..cef0665a 100644 --- a/recipes-extended/xen/xen_4.5.0.bb +++ b/recipes-extended/xen/xen_4.5.0.bb @@ -2,6 +2,7 @@ require xen.inc SRC_URI = " \ http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz \ + file://xen-x86-Fix-up-rules-when-forcing-mno-sse.patch \ " SRC_URI[md5sum] = "9bac43d2419d05a647064d9253bb03fa" -- cgit v1.2.3-54-g00ecf