[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v3 09/32] build-sys: add i686 cpu target
From: |
marcandre . lureau |
Subject: |
[RFC v3 09/32] build-sys: add i686 cpu target |
Date: |
Tue, 7 Sep 2021 16:19:20 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Rust does not have i386 targets, so distinguish when target cpu is i686.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
configure | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/configure b/configure
index 8adf2127c3..48ff2837d9 100755
--- a/configure
+++ b/configure
@@ -617,6 +617,8 @@ esac
if test ! -z "$cpu" ; then
# command line argument
:
+elif check_define __i686__ ; then
+ cpu="i686"
elif check_define __i386__ ; then
cpu="i386"
elif check_define __x86_64__ ; then
@@ -672,9 +674,12 @@ case "$cpu" in
ppc64le)
ARCH="ppc64"
;;
- i386|i486|i586|i686|i86pc|BePC)
+ i386|i486|i586|i86pc|BePC)
cpu="i386"
;;
+ i686)
+ ARCH="i386"
+ ;;
x86_64|amd64)
cpu="x86_64"
;;
@@ -1673,7 +1678,7 @@ case "$cpu" in
CPU_CFLAGS="-m64"
QEMU_LDFLAGS="-m64 $QEMU_LDFLAGS"
;;
- i386)
+ i386|i686)
CPU_CFLAGS="-m32"
QEMU_LDFLAGS="-m32 $QEMU_LDFLAGS"
;;
@@ -4396,7 +4401,7 @@ QEMU_GA_MSI_MINGW_DLL_PATH="$($pkg_config
--variable=prefix glib-2.0)/bin"
# Mac OS X ships with a broken assembler
roms=
-if { test "$cpu" = "i386" || test "$cpu" = "x86_64"; } && \
+if { test "$cpu" = "i386" || test "$cpu" = "i686" || test "$cpu" = "x86_64"; }
&& \
test "$targetos" != "Darwin" && test "$targetos" != "SunOS" && \
test "$targetos" != "Haiku" && test "$softmmu" = yes ; then
# Different host OS linkers have different ideas about the name of the ELF
@@ -4962,7 +4967,7 @@ fi
if test "$linux" = "yes" ; then
mkdir -p linux-headers
case "$cpu" in
- i386|x86_64|x32)
+ i386|i686|x86_64|x32)
linux_arch=x86
;;
ppc|ppc64|ppc64le)
--
2.33.0.113.g6c40894d24
- Re: [RFC v3 03/32] scripts/qapi: teach c_param_type() to return const argument type, (continued)
- [RFC v3 04/32] glib-compat: add G_SIZEOF_MEMBER, marcandre . lureau, 2021/09/07
- [RFC v3 05/32] scripts/qapi: add QAPISchemaVisitor.visit_module_end, marcandre . lureau, 2021/09/07
- [RFC v3 06/32] scripts/qapi: add a CABI module, marcandre . lureau, 2021/09/07
- [RFC v3 07/32] scripts/qapi: generate CABI dump for C types, marcandre . lureau, 2021/09/07
- [RFC v3 08/32] tests: build qapi-cabi (C ABI dump), marcandre . lureau, 2021/09/07
- [RFC v3 09/32] build-sys: add i686 cpu target,
marcandre . lureau <=
- [RFC v3 10/32] build-sys: add --with-rust{-target} & basic build infrastructure, marcandre . lureau, 2021/09/07
- [RFC v3 11/32] build-sys: add a cargo-wrapper script, marcandre . lureau, 2021/09/07
- [RFC v3 12/32] rust: provide a common crate for QEMU, marcandre . lureau, 2021/09/07