From nobody Tue Feb 10 06:43:52 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1654108640; cv=none; d=zohomail.com; s=zohoarc; b=dp5/0LhXCfRl1VkmzMXwmJJM1ayCyrXQtLCWZ6qqJXjAtN2Ukz2YgLT0r5En6cd+v2lJEGg8vrwuNX+7O2bCUnoDwFpv8dW14Ao5ZFpeivwaop8YvX/eiT2BC3JWLj4jp6RTmUUIvqu7xND3Ojbqn6qBMZ6cFeX+yIpIMj4VRwY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1654108640; h=Content-Type:Content-Transfer-Encoding:Cc: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=SggIrXO00sxHMAsPIste7YnBa0r2qAGuzdNu5DhkgtY=; b=BzTWh5BrLXpTPyD+i0KWfIfAySPw5xsyrA6DOnkSo7z92AiLnotjkx5qIT4zfT1M4E+dR/70PVsHeVROSnsnc3H5rQ0YornKkOJNzCoVxEukVMsovqhpqD2IxALZsdi0y1GrdkDtoVKYJCKiQkoRLQAfUIe5+9/LukWRlGkeXls= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 165410864047562.997368595286275; Wed, 1 Jun 2022 11:37:20 -0700 (PDT) Received: from localhost ([::1]:48086 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nwTDb-0002dq-Dq for importer@patchew.org; Wed, 01 Jun 2022 14:37:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwSrH-0002Gv-W7 for qemu-devel@nongnu.org; Wed, 01 Jun 2022 14:14:16 -0400 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]:38414) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nwSrG-0006b4-8T for qemu-devel@nongnu.org; Wed, 01 Jun 2022 14:14:15 -0400 Received: by mail-ed1-x52e.google.com with SMTP id c2so3292477edf.5 for ; Wed, 01 Jun 2022 11:14:13 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id y3-20020a170906524300b006fee16142b9sm954987ejm.110.2022.06.01.11.13.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 11:14:03 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id AA88B1FFCD; Wed, 1 Jun 2022 19:05:39 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SggIrXO00sxHMAsPIste7YnBa0r2qAGuzdNu5DhkgtY=; b=pF7paceUQAvC16W+HqVltakNJbc7grhwTFF3+MLs/KBoauD0ttEGJ1/qbKSOwF22wE kGlAxu870u6OYLlSRmgbo9uDcHZA20j9RB3iExH7/KvdPG6zk0sD/7xsNopIExAXJBnm nqPks8yZvitp7vWs4pT7u3FM/MHPh9JcUb+nIxWe6SfD1OYe+avrBNh38V/ksOx6aMNC FWHIlQBncTiWTjaS+RrdfMfK6Ht/iI70jbYecX0qNRcnBbibBTt8PwpQAq23gN1Zhv1c ZpitU6PRkZP3KoPhM3I22WJiVRV+qA+2rbwIYG3Si1YVWlRQ+FnJoPpwGhOcGdKHkcNf cBSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SggIrXO00sxHMAsPIste7YnBa0r2qAGuzdNu5DhkgtY=; b=leYT7BTmU37nUZzEFL9Pomah9MpXrwVRDwxSjOwWFnoYUiCaJPET62qJ8ZV9uVKbJm xLslviMVyjNcdTifxNvsse9gHpoeIBlfKy/Msl51Bil7uwY0RHfezmyZrUzQ0TbSXm3B QwXWJGFO4ImcWym1e7bLKPEx8J5dTmnOOhR0j9WYxaoGfQlqn7kVNPqKvbUtLYFWxgCp NZZR26p+n4EyehKl31TnnvDLjFmXUtxbMuCvGUQ34/Y3p6jUsxvJQSSfA56tN6NvEd/l 3+lKkKOpdsF+/N7809bVkgXBtMpK6QJsS2Wk627igBOEOs6HAPjp5T9dFhYBa2FBtdym P48g== X-Gm-Message-State: AOAM53309BMKEgY55Spvh3Y5P4N1I1icrlh3PAh1Jkm917KLYBSvVDpb J7DBiIUINx/SIQYd1RQ44Z+E9A== X-Google-Smtp-Source: ABdhPJy+dlvZeTUhWIn3a/Emra4D5qgPOShGAehSYPJGTfwG4JKF9v0q2nx0EeTTBcP2Rx8IQhORzQ== X-Received: by 2002:a05:6402:524a:b0:42d:fb80:f734 with SMTP id t10-20020a056402524a00b0042dfb80f734mr1072128edd.153.1654107252959; Wed, 01 Jun 2022 11:14:12 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org, richard.henderson@linaro.org Cc: qemu-devel@nongnu.org, Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PULL 22/33] configure: include more binutils in tests/tcg makefile Date: Wed, 1 Jun 2022 19:05:26 +0100 Message-Id: <20220601180537.2329566-23-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220601180537.2329566-1-alex.bennee@linaro.org> References: <20220601180537.2329566-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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; Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x52e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 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: pass (identity @linaro.org) X-ZM-MESSAGEID: 1654108642621100001 From: Paolo Bonzini Firmware builds require paths to all the binutils; it is not enough to use only cc, or even as/ld as in the case of tests/tcg/tricore. Adjust the cross-compiler configurator to detect also ar, nm, objcopy, ranlib and strip. Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini Message-Id: <20220517092616.1272238-12-pbonzini@redhat.com> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20220527153603.887929-23-alex.bennee@linaro.org> diff --git a/configure b/configure index f55ae82a5d..ced8283b98 100755 --- a/configure +++ b/configure @@ -1880,11 +1880,21 @@ probe_target_compiler() { container_image=3D container_hosts=3D container_cross_cc=3D + container_cross_ar=3D container_cross_as=3D container_cross_ld=3D + container_cross_nm=3D + container_cross_objcopy=3D + container_cross_ranlib=3D + container_cross_strip=3D target_cc=3D + target_ar=3D target_as=3D target_ld=3D + target_nm=3D + target_objcopy=3D + target_ranlib=3D + target_strip=3D =20 case $1 in aarch64) container_hosts=3D"x86_64 aarch64" ;; @@ -2023,8 +2033,13 @@ probe_target_compiler() { ;; esac : ${container_cross_cc:=3D${container_cross_prefix}gcc} + : ${container_cross_ar:=3D${container_cross_prefix}ar} : ${container_cross_as:=3D${container_cross_prefix}as} : ${container_cross_ld:=3D${container_cross_prefix}ld} + : ${container_cross_nm:=3D${container_cross_prefix}nm} + : ${container_cross_objcopy:=3D${container_cross_prefix}objcopy} + : ${container_cross_ranlib:=3D${container_cross_prefix}ranlib} + : ${container_cross_strip:=3D${container_cross_prefix}strip} done =20 eval "target_cflags=3D\${cross_cc_cflags_$1}" @@ -2035,12 +2050,26 @@ probe_target_compiler() { else compute_target_variable $1 target_cc gcc fi + target_ccas=3D$target_cc + compute_target_variable $1 target_ar ar compute_target_variable $1 target_as as compute_target_variable $1 target_ld ld + compute_target_variable $1 target_nm nm + compute_target_variable $1 target_objcopy objcopy + compute_target_variable $1 target_ranlib ranlib + compute_target_variable $1 target_strip strip if test "$1" =3D $cpu; then : ${target_cc:=3D$cc} + : ${target_ccas:=3D$ccas} : ${target_as:=3D$as} : ${target_ld:=3D$ld} + : ${target_ar:=3D$ar} + : ${target_as:=3D$as} + : ${target_ld:=3D$ld} + : ${target_nm:=3D$nm} + : ${target_objcopy:=3D$objcopy} + : ${target_ranlib:=3D$ranlib} + : ${target_strip:=3D$strip} fi if test -n "$target_cc"; then case $1 in @@ -2056,6 +2085,10 @@ probe_target_compiler() { write_target_makefile() { if test -n "$target_cc"; then echo "CC=3D$target_cc" + echo "CCAS=3D$target_ccas" + fi + if test -n "$target_ar"; then + echo "AR=3D$target_ar" fi if test -n "$target_as"; then echo "AS=3D$target_as" @@ -2063,14 +2096,32 @@ write_target_makefile() { if test -n "$target_ld"; then echo "LD=3D$target_ld" fi + if test -n "$target_nm"; then + echo "NM=3D$target_nm" + fi + if test -n "$target_objcopy"; then + echo "OBJCOPY=3D$target_objcopy" + fi + if test -n "$target_ranlib"; then + echo "RANLIB=3D$target_ranlib" + fi + if test -n "$target_strip"; then + echo "STRIP=3D$target_strip" + fi } =20 write_container_target_makefile() { if test -n "$container_cross_cc"; then echo "CC=3D\$(DOCKER_SCRIPT) cc --cc $container_cross_cc -i qemu/$cont= ainer_image -s $source_path --" + echo "CCAS=3D\$(DOCKER_SCRIPT) cc --cc $container_cross_cc -i qemu/$co= ntainer_image -s $source_path --" fi + echo "AR=3D\$(DOCKER_SCRIPT) cc --cc $container_cross_ar -i qemu/$contai= ner_image -s $source_path --" echo "AS=3D\$(DOCKER_SCRIPT) cc --cc $container_cross_as -i qemu/$contai= ner_image -s $source_path --" echo "LD=3D\$(DOCKER_SCRIPT) cc --cc $container_cross_ld -i qemu/$contai= ner_image -s $source_path --" + echo "NM=3D\$(DOCKER_SCRIPT) cc --cc $container_cross_nm -i qemu/$contai= ner_image -s $source_path --" + echo "OBJCOPY=3D\$(DOCKER_SCRIPT) cc --cc $container_cross_objcopy -i qe= mu/$container_image -s $source_path --" + echo "RANLIB=3D\$(DOCKER_SCRIPT) cc --cc $container_cross_ranlib -i qemu= /$container_image -s $source_path --" + echo "STRIP=3D\$(DOCKER_SCRIPT) cc --cc $container_cross_strip -i qemu/$= container_image -s $source_path --" } =20 =20 --=20 2.30.2