From: Joelle van Dyne <j@getutm.app>
To: qemu-devel@nongnu.org
Cc: Joelle van Dyne <j@getutm.app>
Subject: [PATCH v3 2/7] configure: cross-compiling with empty cross_prefix
Date: Tue, 27 Oct 2020 20:06:56 -0700 [thread overview]
Message-ID: <20201028030701.14086-3-j@getutm.app> (raw)
In-Reply-To: <20201028030701.14086-1-j@getutm.app>
The iOS toolchain does not use the host prefix naming convention. So we need
to enable cross-compile options while allowing the PREFIX to be blank.
Signed-off-by: Joelle van Dyne <j@getutm.app>
---
configure | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 4e68a5fefe..e211d11971 100755
--- a/configure
+++ b/configure
@@ -234,6 +234,7 @@ cpu=""
iasl="iasl"
interp_prefix="/usr/gnemul/qemu-%M"
static="no"
+cross_compile="no"
cross_prefix=""
audio_drv_list=""
block_drv_rw_whitelist=""
@@ -458,6 +459,7 @@ for opt do
optarg=$(expr "x$opt" : 'x[^=]*=\(.*\)')
case "$opt" in
--cross-prefix=*) cross_prefix="$optarg"
+ cross_compile="yes"
;;
--cc=*) CC="$optarg"
;;
@@ -1652,7 +1654,7 @@ $(echo Available targets: $default_target_list | \
--target-list-exclude=LIST exclude a set of targets from the default target-list
Advanced options (experts only):
- --cross-prefix=PREFIX use PREFIX for compile tools [$cross_prefix]
+ --cross-prefix=PREFIX use PREFIX for compile tools, PREFIX can be blank [$cross_prefix]
--cc=CC use C compiler CC [$cc]
--iasl=IASL use ACPI compiler IASL [$iasl]
--host-cc=CC use C compiler CC [$host_cc] for code run at
@@ -6931,7 +6933,7 @@ if has $sdl2_config; then
fi
echo "strip = [$(meson_quote $strip)]" >> $cross
echo "windres = [$(meson_quote $windres)]" >> $cross
-if test -n "$cross_prefix"; then
+if test "$cross_compile" = "yes"; then
cross_arg="--cross-file config-meson.cross"
echo "[host_machine]" >> $cross
if test "$mingw32" = "yes" ; then
--
2.28.0
next prev parent reply other threads:[~2020-10-28 3:12 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-28 3:06 [PATCH v3 0/7] iOS and Apple Silicon host support Joelle van Dyne
2020-10-28 3:06 ` [PATCH v3 1/7] configure: option to disable host block devices Joelle van Dyne
2020-10-28 11:22 ` Stefan Hajnoczi
2020-10-29 0:51 ` Joelle van Dyne
2020-10-28 3:06 ` Joelle van Dyne [this message]
2020-10-28 3:06 ` [PATCH v3 3/7] qemu: add support for iOS host Joelle van Dyne
2020-10-28 11:39 ` Stefan Hajnoczi
2020-10-29 0:55 ` Joelle van Dyne
2020-10-29 7:47 ` Stefan Hajnoczi
2020-10-28 3:06 ` [PATCH v3 4/7] coroutine: add libucontext as external library Joelle van Dyne
2020-10-28 11:47 ` Stefan Hajnoczi
2020-10-29 0:59 ` Joelle van Dyne
2020-10-29 7:08 ` Stefan Hajnoczi
2020-10-28 3:06 ` [PATCH v3 5/7] slirp: update build flags for iOS resolv fix Joelle van Dyne
2020-10-28 11:48 ` Stefan Hajnoczi
2020-10-28 3:07 ` [PATCH v3 6/7] tcg: implement JIT for iOS and Apple Silicon Joelle van Dyne
2020-10-28 11:53 ` Stefan Hajnoczi
2020-10-29 1:04 ` Joelle van Dyne
2020-10-29 8:13 ` Stefan Hajnoczi
2020-10-28 3:07 ` [PATCH v3 7/7] block: check availablity for preadv/pwritev on mac Joelle van Dyne
2020-10-28 11:59 ` Stefan Hajnoczi
2020-10-29 1:07 ` Joelle van Dyne
2020-10-29 7:53 ` Stefan Hajnoczi
2020-10-29 8:33 ` Joelle van Dyne
2020-10-28 12:05 ` [PATCH v3 0/7] iOS and Apple Silicon host support Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201028030701.14086-3-j@getutm.app \
--to=j@getutm.app \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).