Skip to contentSkip to conversation

stubdom: remove EXTRA_CFLAGS meant for building tools

PATCH In review Juergen Gross 3 participants 3 messages Nov 8, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stubdom: remove EXTRA_CFLAGS meant for building tools

When building stubdoms EXTRA_CFLAGS_XEN_TOOLS and EXTRA_CFLAGS_QEMU_TRADITIONAL should be cleared as they might contain flags not suitable for all stubdom builds (e.g. "-m64" often to be found in $RPM_OPT_FLAGS will break building 32 bit stubdoms).

---
 stubdom/Makefile | 4 ++++
 1 file changed, 4 insertions(+)
stubdom/Makefile +4 -0
index 2921f30..c89e353 100644
@@ -4,6 +4,10 @@ MINI_OS = $(XEN_ROOT)/extras/mini-os
 export XEN_ROOT
 export XEN_OS=MiniOS
 
+# Remove flags which are meant for tools, e.g. "-m64"
+export EXTRA_CFLAGS_XEN_TOOLS=
+export EXTRA_CFLAGS_QEMU_TRADITIONAL=
+
 export stubdom=y
 export debug=y
 # Moved from config/StdGNU.mk
Signature · 7 lines
2.6.6


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Acked-by on v1 1/1
#1 lore raw
Quoted 15 lines · Juergen Gross

When building stubdoms EXTRA_CFLAGS_XEN_TOOLS and EXTRA_CFLAGS_QEMU_TRADITIONAL should be cleared as they might contain flags not suitable for all stubdom builds (e.g. "-m64" often to be found in $RPM_OPT_FLAGS will break building 32 bit stubdoms).

---
 stubdom/Makefile | 4 ++++
 1 file changed, 4 insertions(+)
stubdom/Makefile +0 -0
index 2921f30..c89e353 100644

stubdom/Makefile MINI_OS = $(XEN_ROOT)/extras/mini-os · line 10

Quoted 7 lines
stubdom/Makefile +4 -0
@@ -4,6 +4,10 @@ MINI_OS = $(XEN_ROOT)/extras/mini-os
 export XEN_ROOT
 export XEN_OS=MiniOS
 
+# Remove flags which are meant for tools, e.g. "-m64"
+export EXTRA_CFLAGS_XEN_TOOLS=
+export EXTRA_CFLAGS_QEMU_TRADITIONAL=
+

I can't think of a better way to deal with this. This is in line with how it is done in firmware build, so

Quoted 6 lines
stubdom/Makefile +0 -0
 export stubdom=y
 export debug=y
 # Moved from config/StdGNU.mk
Signature · 1 line
2.6.6

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#2 lore raw
Quoted 27 lines · Wei Liu, on Tue 08 Nov 2016 10:47:18 +0000, wrote:
Quoted 15 lines · Juergen Gross

When building stubdoms EXTRA_CFLAGS_XEN_TOOLS and EXTRA_CFLAGS_QEMU_TRADITIONAL should be cleared as they might contain flags not suitable for all stubdom builds (e.g. "-m64" often to be found in $RPM_OPT_FLAGS will break building 32 bit stubdoms).

---
 stubdom/Makefile | 4 ++++
 1 file changed, 4 insertions(+)
stubdom/Makefile +0 -0
index 2921f30..c89e353 100644

stubdom/Makefile MINI_OS = $(XEN_ROOT)/extras/mini-os · line 10

Quoted 7 lines
stubdom/Makefile +4 -0
@@ -4,6 +4,10 @@ MINI_OS = $(XEN_ROOT)/extras/mini-os
 export XEN_ROOT
 export XEN_OS=MiniOS
 
+# Remove flags which are meant for tools, e.g. "-m64"
+export EXTRA_CFLAGS_XEN_TOOLS=
+export EXTRA_CFLAGS_QEMU_TRADITIONAL=
+

I can't think of a better way to deal with this. This is in line with how it is done in firmware build, so

Quoted 1 line
Quoted 7 lines
Quoted 6 lines
stubdom/Makefile +0 -0
 export stubdom=y
 export debug=y
 # Moved from config/StdGNU.mk
Signature · 1 line
2.6.6
Signature · 11 lines
Samuel
* D a decide de peter un cable dans son rapport de pfp
<c> et il a bien raison ;-)
<c> tu vas dire quoi ?
<D> j'ai mis les paroles de "le coq est mort" en en-tete
 -+- #ens-mim et la peufeupeu -+-

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel