From patchwork Sun Nov 8 23:24:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joelle van Dyne X-Patchwork-Id: 1396433 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=getutm.app Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CTr3P1bw2z9sSf for ; Mon, 9 Nov 2020 10:30:57 +1100 (AEDT) Received: from localhost ([::1]:43516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbu99-0004Tw-6L for incoming@patchwork.ozlabs.org; Sun, 08 Nov 2020 18:30:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbu2y-0000lZ-LV for qemu-devel@nongnu.org; Sun, 08 Nov 2020 18:24:32 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:42638) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kbu2x-0000FS-3r for qemu-devel@nongnu.org; Sun, 08 Nov 2020 18:24:32 -0500 Received: by mail-pl1-f194.google.com with SMTP id t22so3679666plr.9 for ; Sun, 08 Nov 2020 15:24:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=clC6oHTfnrMMN3FfznLE0Frgl/AYxxtTAqo83NQAGqs=; b=QVmJP7K1ecniehBySBC0etbRxLlbuC/VAY5Yxy3YPEFWdGVXI59xQGHYYhfSeol3V+ a5aL39FVQPyX6APyRZ9ZPUfroRoo5wF11p0S6fki0bOU99K3whhS4jeZMTDTyzPvwol8 rMkhFl6eTKs1YlMO3ZNDyuI10J3VaQa/CCR4L0H+DuaoPQ3JvrP65bhx9jqt4T6ymm8S FPDtgZRdqw2vsaUkAzH2dyiMiGGIJRExdhPsd3lcRG4esQHPiICnXu9c3QntQF1oFNku c41q5SfexbmZV/S8ySufUWwwSDAPKVqR6Q22ONPxv20Ky8j5+CcouV62caSIT2qZ7DG+ Lcyg== X-Gm-Message-State: AOAM531TK22YO6VRxBGk6/54hnnOFpjxUM7oaNLypJeFy1JIwz9RAu7a QIyYu9RSa0J4KoCLduiQTQeceHMNk60= X-Google-Smtp-Source: ABdhPJyZztW4mdpzqMuNVv+amDuDxQLcIN8oVGd63NFHMHTKQNnU7UxZotkD/lhI42KhB8IlcPie0Q== X-Received: by 2002:a17:902:d698:b029:d6:b974:13c5 with SMTP id v24-20020a170902d698b02900d6b97413c5mr10702095ply.13.1604877869564; Sun, 08 Nov 2020 15:24:29 -0800 (PST) Received: from localhost.localdomain ([73.93.154.215]) by smtp.gmail.com with ESMTPSA id z3sm8275171pgl.73.2020.11.08.15.24.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Nov 2020 15:24:29 -0800 (PST) From: Joelle van Dyne To: qemu-devel@nongnu.org Subject: [PATCH v5 2/7] configure: cross-compiling with empty cross_prefix Date: Sun, 8 Nov 2020 15:24:19 -0800 Message-Id: <20201108232425.1705-3-j@getutm.app> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201108232425.1705-1-j@getutm.app> References: <20201108232425.1705-1-j@getutm.app> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.214.194; envelope-from=osy86github@gmail.com; helo=mail-pl1-f194.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/08 18:24:30 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joelle van Dyne Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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 Reviewed-by: Philippe Mathieu-Daudé --- configure | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 97a879808d..fda7a875f7 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" ;; @@ -1657,7 +1659,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 @@ -6933,7 +6935,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