From nobody Tue Nov 18 15:28:28 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.218.50 as permitted sender) client-ip=209.85.218.50; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-ej1-f50.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.218.50 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1611589044; cv=none; d=zohomail.com; s=zohoarc; b=GBGnZqkxm/Vn21HWYO/WLDSxiPqjBLrMvXYhCQQl6dpbUj7xvuP2rm96dvGfDk6uvsDUWTKVeIfIAawQblO9wINtk2+n2rYzO2PQYZQTQYGzRxXTBVpREoAqlP6jkUlyhu/wK7KwIzJOn+/Gzi0MLmTpRHO7/+QI7yJjYB1d3IM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611589044; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Sender:Subject:To; bh=tiWIFkE+/8HOYUlXMc+0S/RPGHnvCqTpi4m7t97iBog=; b=fgBnxz7hhi3Sky7qtes5DfJWd/81tDvfsZ6xcXVLdkBQRd6TpFtL6mw2MIRS4eHaROC+VULmrcQ8rDjlYvx3jWpmfyTWIc2b9vQrWmlUJr0rytaIHm5pSXGPSY/mla08k6wOHjkVvJ4+LDSrpRe41WkAtP0sOLkLKfQoezIo16s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.218.50 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) by mx.zohomail.com with SMTPS id 1611589044024402.6591167762165; Mon, 25 Jan 2021 07:37:24 -0800 (PST) Received: by mail-ej1-f50.google.com with SMTP id 6so18679034ejz.5 for ; Mon, 25 Jan 2021 07:37:23 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (13.red-83-57-169.dynamicip.rima-tde.net. [83.57.169.13]) by smtp.gmail.com with ESMTPSA id z2sm8586863ejd.44.2021.01.25.07.37.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jan 2021 07:37:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tiWIFkE+/8HOYUlXMc+0S/RPGHnvCqTpi4m7t97iBog=; b=JD+Zn3xt3Act63rK7soE04EHETpDt529Kw5PD+72DNDTBRavnFC0PtT6uuMkIdK8u4 /TlBsoiiyBDoQgY7++d4OCHCHUHj6RInI87KgXF1n9S/JwH/yW0GBTlpUWTJ7uh99+6x JtKZe77xIlQqW7mk9ZB5iWi2IwFvJsTEEj6LqwFJsIiRiOJmuKN4Rs6GfQ+O+utMft7u 2zHvZ/z8JA/azx1xkFuBhZ8ylSYphjcJ9fm3UdhN5BwjK1B2bdu7V3q5BAhjpbWuTK+W Ik46VQcB1SbG5hQUVpDweWY9cHa1cb+5EowTLpF4I5pcjXxClS7ZHUaSiwI6dJ62EQRs UWjA== 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:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=tiWIFkE+/8HOYUlXMc+0S/RPGHnvCqTpi4m7t97iBog=; b=Gzc/GmjkgJQpTg4JJgLdaHeVYYRD2ZYxBvtee3Zw690gedhJSHJLGulviHLckfXZOG w/X4Bt+ymakkRgJyi27l8gxsQYQmlFcZiSqLG6lwzKJ6KsA90PRKLfHtejjZaQSH5dky 3jUwG/m5NePWAM9ZeKAannFI8mecYTMdIQqz4PcXLi/wLLw/roTYhlW8mj6l4tBszBcs v3Lj2mB11gOZl1SFFgOnTdtHVqPL4hrs9MWSEtJJRmkJliBhnzNOwqGSV2OH8KTM6f/l iskBsiv3LhyDfKKCM9oasUF3ueqxXnk5oH8yM/0UsWPY3XciZlOsx1zaqQ+MemsUzIzo MRXw== X-Gm-Message-State: AOAM533cOPj08r46MPsGMwbM6qFTJ1dtIIxwh7BN3LKygI2j4EfcQYW0 7Vo62ASp6MSIsviOMunbti4= X-Google-Smtp-Source: ABdhPJxQtmQ01eJDWUlgv+8EtbgjgCRqIIOIk1Vl76z0yIaTHahRn8oVmovWnvMMgDgaiP169a5sSg== X-Received: by 2002:a17:906:e106:: with SMTP id gj6mr695625ejb.337.1611589042316; Mon, 25 Jan 2021 07:37:22 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Laurent Vivier , Christian Borntraeger , Thomas Huth , qemu-s390x@nongnu.org, Cornelia Huck , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2] configure: Only build s390-ccw BIOS when system emulation is built Date: Mon, 25 Jan 2021 16:37:19 +0100 Message-Id: <20210125153719.2863349-1-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) It is pointless to build the s390-ccw BIOS when only user-mode emulation is built. Only build it when s390 system mode emulation is selected. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- v2: Restrict to s390x-softmmu (thuth) We could move the whole block into the case(), but 1/ it doesn't look nice 2/ it doesn't match the rest of this file code style Supersedes: <20210124161740.2502786-1-f4bug@amsat.org> --- configure | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure b/configure index dcc5ea7d630..997fb0761a5 100755 --- a/configure +++ b/configure @@ -461,6 +461,7 @@ skip_meson=3Dno gettext=3D"auto" fuse=3D"auto" fuse_lseek=3D"auto" +s390_ccw_bios=3D"no" =20 malloc_trim=3D"auto" =20 @@ -5373,7 +5374,11 @@ if { test "$cpu" =3D "i386" || test "$cpu" =3D "x86_= 64"; } && \ fi =20 # Only build s390-ccw bios if we're on s390x and the compiler has -march= =3Dz900 -if test "$cpu" =3D "s390x" ; then +case $target_list in + *"s390x-softmmu"*) s390_ccw_bios=3Dyes + ;; +esac +if test "$s390_ccw_bios" =3D yes; then write_c_skeleton if compile_prog "-march=3Dz900" ""; then roms=3D"$roms s390-ccw" --=20 2.26.2