From nobody Mon Feb 9 20:35:25 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1576155305; cv=none; d=zohomail.com; s=zohoarc; b=VnJq9D3QfDHHYxnLvrs1bJGNS2zxKjktaVaJhSZUtHz2clC4/Ob0Olw4xe0ph4Uu9VX7CWK3BRuQrAyxYQTbjPMAkH6cVfKgmb/wnOmzo5uHVCAU32RMs+VsuFwS52ABDZ41Se3FdAnFyTrp3LGxhsOlUEdIN2OX8hB0KGTRqEA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576155305; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=PH7UeOYv3AaEAyoiruUKVOCR4GfXDd27Kf2Yko972zU=; b=jvnq20r3A04DzQmV9Y/7fWQ4ei1+eJoyn56oSNDoRVz39YpNBT+mTpRjnqEucZR58i9cr8Sq15/+lJFAMsyy7YoolC2irshfeNZrp+P1C4L6a38a2HRBA2Q/ZSjdTd17LOn+175hW3VqtRRq8yaNCNHHuTHSPFdQk5+yvRHNRsI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576155305064658.9190997491436; Thu, 12 Dec 2019 04:55:05 -0800 (PST) Received: from localhost ([::1]:58866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifNzj-0004hq-O2 for importer@patchew.org; Thu, 12 Dec 2019 07:55:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55896) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifNxp-0002ed-SB for qemu-devel@nongnu.org; Thu, 12 Dec 2019 07:53:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifNxo-0005gA-QV for qemu-devel@nongnu.org; Thu, 12 Dec 2019 07:53:05 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:37683) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ifNxo-0005dv-K2 for qemu-devel@nongnu.org; Thu, 12 Dec 2019 07:53:04 -0500 Received: by mail-wr1-x431.google.com with SMTP id w15so2623900wru.4 for ; Thu, 12 Dec 2019 04:53:04 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id n189sm5193825wme.33.2019.12.12.04.53.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Dec 2019 04:53:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PH7UeOYv3AaEAyoiruUKVOCR4GfXDd27Kf2Yko972zU=; b=KkMIC2afPP7er6EMMZVmh7Mm86Qtdyw8GEd/41txIwD7nn9x/dB1QUeGqWGbHp+MLN s7gp7Jatu7QKuQNt2ZffEYzL7F/Wr8Pi71AtVx7T+juYAhsADEvF3V5npmyglKEc4Xuh cL9XSclfrpql+S9GJhjKFLcagHReZlMa8A9E7YPtM630FBkSeiZ6R4RXcK/+XdL9pCVy yqzq0ketLYYWjaEu00Hd0X5FSeklMjUcMFsDvNiJZBdUuQlKAW4EOXnGGx4Ivm47GC3o +yqmBudMf8uf65XUjUcxShzHM5qzlpCPir0KefHrVtabxTrLevk6G3SG/Xl3igHD1qR2 GxzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=PH7UeOYv3AaEAyoiruUKVOCR4GfXDd27Kf2Yko972zU=; b=TpAV7HRQOeotKG7dFf9NyCt+yssM+pvJDRgGQPNCj80/msiqFpSis0/xGSju8Oc/X4 LmYehGgT97SxGSqtXZbmHaOrdj7trTfpPtBan+jbONSvg1/QboHY5PsyYUT8IbbVg0QO Y1ip2kHjhBcRMR9dkkjTthJg+10MYhNyBoWfNVdRF1o7gxiyVSCxK646gbvw+pzovNVf wxa5D1dWn8jrAQymH9brPOMf7umzBPadmC/YMcG55czY+PSrBIqr8Rj/S9nBZnPBA/xR U3afetDonVinOJtR27qqCQR4oj1OBYtwkPnzwjidf1s02Q60xnfO9nTciQOYPwg/wbKk JW2w== X-Gm-Message-State: APjAAAXd6fyEB4OLXKTjylpWzJqbCyFtfh+fE0854oL6R79rVLTZfOBK aXH5NBEqVPlb3+hK/Ng7nG7yAqps X-Google-Smtp-Source: APXvYqzQu8+Il+Ac4szdLi8B0eAEAuG3hk8OVneswrjBIe5KT8NhmTsfpdJJRvVrAvC7t/ZYfqVdiA== X-Received: by 2002:adf:e591:: with SMTP id l17mr5699975wrm.139.1576155183211; Thu, 12 Dec 2019 04:53:03 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 005/132] configure: generate Meson cross file Date: Thu, 12 Dec 2019 13:50:49 +0100 Message-Id: <1576155176-2464-6-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1576155176-2464-1-git-send-email-pbonzini@redhat.com> References: <1576155176-2464-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::431 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Marc-Andr=C3=A9 Lureau Signed-off-by: Marc-Andr=C3=A9 Lureau Signed-off-by: Paolo Bonzini --- configure | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/configure b/configure index 3e3eb3d..2f3e231 100755 --- a/configure +++ b/configure @@ -7852,6 +7852,46 @@ echo "# Automatically generated by configure - do no= t modify" > "$iotests_common echo >> "$iotests_common_env" echo "export PYTHON=3D'$python'" >> "$iotests_common_env" =20 +cross=3D"config-meson.cross" +cross_arg=3D + +if test -n "$cross_prefix"; then + echo "# Automatically generated by configure - do not modify" > $cross + echo "[binaries]" >> $cross + echo "c =3D '$cc'" >> $cross + echo "cpp =3D '$cxx'" >> $cross + echo "ar =3D '$ar'" >> $cross + echo "nm =3D '$nm'" >> $cross + echo "pkgconfig =3D '$pkg_config_exe'" >> $cross + echo "ranlib =3D '$ranlib'" >> $cross + echo "strip =3D '$strip'" >> $cross + echo "windres =3D '$windres'" >> $cross + + echo "[properties]" >> $cross + echo "root =3D '$prefix'" >> $cross + + echo "[host_machine]" >> $cross +if test "$mingw32" =3D "yes" ; then + echo "system =3D 'windows'" >> $cross +fi +case "$ARCH" in + i386|x86_64) + echo "cpu_family =3D 'x86'" >> $cross + ;; + *) + echo "cpu_family =3D '$ARCH'" >> $cross + ;; +esac + echo "cpu =3D '$cpu'" >> $cross +if test "$bigendian" =3D "yes" ; then + echo "endian =3D 'big'" >> $cross +else + echo "endian =3D 'little'" >> $cross +fi + + cross_arg=3D"--cross-file=3D$cross" +fi + rm -rf meson-private meson-info meson-logs NINJA=3D$PWD/ninjatool $python $meson setup \ --prefix "$prefix" \ @@ -7865,6 +7905,7 @@ NINJA=3D$PWD/ninjatool $python $meson setup \ --localstatedir "$local_statedir" \ $(test "$strip_opt" =3D yes && echo --strip) \ --buildtype $(if test "$debug" =3D yes; then echo debug; else echo debugo= ptimized; fi) \ + $cross_arg \ "$PWD" "$source_path" =20 if test "$?" -ne 0 ; then --=20 1.8.3.1