From nobody Wed Nov 27 17:51:56 2024 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1697437982; cv=none; d=zohomail.com; s=zohoarc; b=fwnQ68qAfrbnAciap8bv3y0FroV7CG90MAZ0Sffon/rIb9Hh/FiSvLRhgXss079OMIxo7CoDf9HDF4q6pmfeGWnc2Fb8fXoMsZHQVfiv/aZNLUxpL2AXbKxaLsqkKABAXWCJ4RR4+Yvghbbq0ocyTQElHVRiYIcPOlMP6TOREp0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697437982; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=P/65hish4h+ImSzGo/R7iAwPvFu/GpagzDRiJtmjaPI=; b=lPjw7wX6gfs4SmgLaa446KLSsEbr8wV3d/+gyyIUK4d+u2ZqqJcGsNZ4/KuGanljjF8Y+PtXesiPJRGr2qQFor9nm4NPP/pMzH5ZeQtWlqkZ65M2zKtOfCiVCoA8HF0p2BAgQNbul9ORyxAy22AGk7KkiXjEo1RU+Jc0iLfFkAI= 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 169743798224260.12956400938356; Sun, 15 Oct 2023 23:33:02 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsH8h-0003tL-La; Mon, 16 Oct 2023 02:31:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8f-0003sQ-P4 for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:41 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8e-0005RV-3R for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:41 -0400 Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-404-YOCIWuZXOy-nsB_XhhaPlw-1; Mon, 16 Oct 2023 02:31:33 -0400 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-9a681c3470fso298169566b.1 for ; Sun, 15 Oct 2023 23:31:32 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id 17-20020a170906029100b009786c8249d6sm3431135ejf.175.2023.10.15.23.31.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 23:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697437899; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P/65hish4h+ImSzGo/R7iAwPvFu/GpagzDRiJtmjaPI=; b=NSvzrMVTfpCwggmGAazLbufQ0Z6Zn6FCCCKTBMXQXTe9YnltxUocJOyll/f9RLbnS5KaLv ZnezmSVB/1jQQ4CqJOu+cvvUnMGyatsbrrfEJZPC2uBrqjua3RXZBQxheVdh53eqqFHjT2 FOrY2XGMZ75EVolDyqXMh5HHl+blGKw= X-MC-Unique: YOCIWuZXOy-nsB_XhhaPlw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697437891; x=1698042691; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P/65hish4h+ImSzGo/R7iAwPvFu/GpagzDRiJtmjaPI=; b=QF+/smCSzSDFZzNJIbyl+IEbisXo+9UEXvt59v57VCOEGGr96krhXZ59QXcVezj3Dt 6gnyrm7P3EvuebjigWblMvyq0ZYc15QXps9/Yh8Mnci+GiOS4SepTLLsVNqXTLbHFVX2 MhfyQaz0yu0BroRb6XNLBGLWdhDjpf+cKjdrn1TXuHjym6jsAdp8XKTK3fnipzQ4t5tv WwYuxLedsZ6kkFDQDRSdzxeRkycDPf7PlfJE04eSNnw0SYqQHTUa9deWIk8k4MkHMDfT xWUMcxyvDxzSpjmyWvmENLQH3jpf/iXW/tRFk0HnZCCX5+YJFfn6+OjPIRu2Gt/aKSle 24vQ== X-Gm-Message-State: AOJu0YxW3R7ZRvTxqbBYkZQz436cUvapjv7J3MO1h7dFGrLBwJ8i1vAz dLrChMv8tfjP/f4OwdkCDUUrqozyqYsyd3nNt5Jcg2slVbjuLeGfP0nnmQ9OItfN2v76lNClmcw iJ7dsOfMhNzXCWSIwOxn4v893DpvfBxjCiqq2U98Qj4Yq+qQ3hq7ZxO/cxXkWPZpM2ovZo/bCwV 8= X-Received: by 2002:a17:906:57:b0:9bd:931e:30d8 with SMTP id 23-20020a170906005700b009bd931e30d8mr8273166ejg.14.1697437891412; Sun, 15 Oct 2023 23:31:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHUCXVSxXg/jSqUvg0c5Xh4HJm1WJvB7Ax6+AdUCSo1qFiTc6i0bkVxntRNaWv8wraDkFckDg== X-Received: by 2002:a17:906:57:b0:9bd:931e:30d8 with SMTP id 23-20020a170906005700b009bd931e30d8mr8273151ejg.14.1697437890942; Sun, 15 Oct 2023 23:31:30 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 01/17] meson: do not build shaders by default Date: Mon, 16 Oct 2023 08:31:11 +0200 Message-ID: <20231016063127.161204-2-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231016063127.161204-1-pbonzini@redhat.com> References: <20231016063127.161204-1-pbonzini@redhat.com> MIME-Version: 1.0 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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697437983037100001 Content-Type: text/plain; charset="utf-8" They are not needed when building user-mode emulators. Signed-off-by: Paolo Bonzini Reviewed-by: Emmanouil Pitsidianakis --- ui/shader/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/shader/meson.build b/ui/shader/meson.build index 592bf596b9a..3137e65578e 100644 --- a/ui/shader/meson.build +++ b/ui/shader/meson.build @@ -10,5 +10,6 @@ foreach e : shaders output: output, capture: true, input: files('@0@.@1@'.format(e[0], e[1])), + build_by_default: false, command: [shaderinclude, '@INPUT0@']) endforeach --=20 2.41.0 From nobody Wed Nov 27 17:51:56 2024 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1697437969; cv=none; d=zohomail.com; s=zohoarc; b=Y19DwcIF26nsTITyYq/MPZ4DEQSgpBPU2gfWvtktJ9k+RPznnsHjkMJt6E3VRQLpDcmSwfTQlj/x+UV6a+LinqA1/Kw82xnT8YGMPS5xWi2GgQn37l+cXfjGcfBzCnPa0o4WmpNrmJaurYiNRlOisVSd5krR4WaLGjFhUlLwrPw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697437969; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=25xnsEqSHxpQ4CTPcOTT4GIh5JKkdRZwjXwxTddW8Dk=; b=id6suo4GXCrCNt7Mz+isSQfm11qsYMpaPyj0+lHm87eYo+V/uSz5oqE8fBsqSE4DD0K4jsC/sSEULCd+uyfWATZWVHOoQu/+KQZMoVy0bM9GO8lrENpSN4/uBvKODyrn5mBuu5iZwqEqTWXTQEcY74PIqDq6VvZjcBj5vszih60= 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 1697437969302504.7012931100751; Sun, 15 Oct 2023 23:32:49 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsH8f-0003sD-0q; Mon, 16 Oct 2023 02:31:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8d-0003s2-EH for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:39 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8b-0005RE-SU for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:39 -0400 Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-444-FuTLjjV5OMOmRAj85SzfAQ-1; Mon, 16 Oct 2023 02:31:34 -0400 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-9adc78b386cso10614566b.0 for ; Sun, 15 Oct 2023 23:31:34 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id v2-20020a17090651c200b0099cb0a7098dsm3478724ejk.19.2023.10.15.23.31.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 23:31:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697437896; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=25xnsEqSHxpQ4CTPcOTT4GIh5JKkdRZwjXwxTddW8Dk=; b=hwXFR3gbGkyp62tqNWI0sa4oziCiaW1PUifLwhjKKl3zXIeBBxlIK43lJfnkjAKZ9K8lYg z2qoY+wTRDGwOBloXWn2jDqnWAoPUPFDLhSnEsQwr69qeIBCNd52MB+DQLtQFAQsuGoxzy t8cuPlERXmJtkJMZCA5RUnz1FHKkXdk= X-MC-Unique: FuTLjjV5OMOmRAj85SzfAQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697437893; x=1698042693; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=25xnsEqSHxpQ4CTPcOTT4GIh5JKkdRZwjXwxTddW8Dk=; b=TuTxPDS2PBNLo66xb3etHTGwZdYpmAmtSqWwv9e46FwZIquQoRADAtKpRuRW8LfL2E F/Z272reh8zyJeVk0tx4aSZX7SYc5i1SDNL8ApAj0H+MiYWv8AsLzD4i3jugbiTCFzq2 yt66w1yLDL8Dhu/hJGt3rw/JJMrbzIx+IYDfG5GMxLK97HQceZDs33mqLMbMes4XGL/0 M30Norivm7aDzho6h1jWktbX/tVrevFznBEFIiskDB6t7QSPdS5gDHr2V3yGUvEN8wWM bjMicCpvyQrF2wG56wwHFa2or2xGQJAYxYsDBhn2jUWCX3JgxaC0sg9DHUca0uWzZBL1 9RGg== X-Gm-Message-State: AOJu0YyojZglTn1HaVpw3Fn9ZnbzMqQa0zEtjt83BYhBcLDKL2Bj2KPL l/g+deJh46xV8fdzmqpjvYAOvz/c0Szj7UDtcUPXqtDydPsAQj/yGtYu+RNPXr0ph5H9hhjleqv 38L2pCQJDuBpfJnKdb5TE+249Ic9FJXVfinZPx9gm68dZ4Mr0rWRJRCRx1Do2aHuh66rALDRSo8 8= X-Received: by 2002:a17:907:1c25:b0:9bf:b022:dc7 with SMTP id nc37-20020a1709071c2500b009bfb0220dc7mr3454970ejc.48.1697437893202; Sun, 15 Oct 2023 23:31:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH8tKni1vr2zCfqttKutAzJ1AP4uu50K61MdWYWMHWAwqXGmfUwW49yml/h+9/Qh+zJLvgW5w== X-Received: by 2002:a17:907:1c25:b0:9bf:b022:dc7 with SMTP id nc37-20020a1709071c2500b009bfb0220dc7mr3454942ejc.48.1697437892608; Sun, 15 Oct 2023 23:31:32 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 02/17] meson: do not use set10 Date: Mon, 16 Oct 2023 08:31:12 +0200 Message-ID: <20231016063127.161204-3-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231016063127.161204-1-pbonzini@redhat.com> References: <20231016063127.161204-1-pbonzini@redhat.com> MIME-Version: 1.0 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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697437971007100001 Content-Type: text/plain; charset="utf-8" Make all items of config-host.h consistent. To keep the --disable-coroutin= e-pool code visible to the compiler, mutuate the IS_ENABLED() macro from Linux. Signed-off-by: Paolo Bonzini Reviewed-by: Richard Henderson --- include/qemu/compiler.h | 15 +++++++++++++++ meson.build | 2 +- tests/unit/test-coroutine.c | 2 +- util/qemu-coroutine.c | 4 ++-- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h index 1109482a000..c797f0d4572 100644 --- a/include/qemu/compiler.h +++ b/include/qemu/compiler.h @@ -212,4 +212,19 @@ # define QEMU_USED #endif =20 +/* + * Ugly CPP trick that is like "defined FOO", but also works in C + * code. Useful to replace #ifdef with "if" statements; assumes + * the symbol was defined with Meson's "config.set()", so it is empty + * if defined. + */ +#define IS_ENABLED(x) IS_EMPTY(x) + +#define IS_EMPTY_JUNK_ junk, +#define IS_EMPTY(value) IS_EMPTY_(IS_EMPTY_JUNK_##value) + +/* Expands to either SECOND_ARG(junk, 1, 0) or SECOND_ARG(IS_EMPTY_JUNK_CO= NFIG_FOO 1, 0) */ +#define SECOND_ARG(first, second, ...) second +#define IS_EMPTY_(junk_maybecomma) SECOND_ARG(junk_maybecomma 1, 0) + #endif /* COMPILER_H */ diff --git a/meson.build b/meson.build index bd65a111aa8..010d2c649c2 100644 --- a/meson.build +++ b/meson.build @@ -2194,7 +2194,7 @@ if get_option('debug_stack_usage') and have_coroutine= _pool message('Disabling coroutine pool to measure stack usage') have_coroutine_pool =3D false endif -config_host_data.set10('CONFIG_COROUTINE_POOL', have_coroutine_pool) +config_host_data.set('CONFIG_COROUTINE_POOL', have_coroutine_pool) config_host_data.set('CONFIG_DEBUG_GRAPH_LOCK', get_option('debug_graph_lo= ck')) config_host_data.set('CONFIG_DEBUG_MUTEX', get_option('debug_mutex')) config_host_data.set('CONFIG_DEBUG_STACK_USAGE', get_option('debug_stack_u= sage')) diff --git a/tests/unit/test-coroutine.c b/tests/unit/test-coroutine.c index b0d21d673a0..a2563647e74 100644 --- a/tests/unit/test-coroutine.c +++ b/tests/unit/test-coroutine.c @@ -645,7 +645,7 @@ int main(int argc, char **argv) * with a sentinel value. If there is no freelist this would legitima= tely * crash, so skip it. */ - if (CONFIG_COROUTINE_POOL) { + if (IS_ENABLED(CONFIG_COROUTINE_POOL)) { g_test_add_func("/basic/no-dangling-access", test_no_dangling_acce= ss); } =20 diff --git a/util/qemu-coroutine.c b/util/qemu-coroutine.c index 17a88f65053..5fd2dbaf8bb 100644 --- a/util/qemu-coroutine.c +++ b/util/qemu-coroutine.c @@ -57,7 +57,7 @@ Coroutine *qemu_coroutine_create(CoroutineEntry *entry, v= oid *opaque) { Coroutine *co =3D NULL; =20 - if (CONFIG_COROUTINE_POOL) { + if (IS_ENABLED(CONFIG_COROUTINE_POOL)) { CoroutineQSList *alloc_pool =3D get_ptr_alloc_pool(); =20 co =3D QSLIST_FIRST(alloc_pool); @@ -99,7 +99,7 @@ static void coroutine_delete(Coroutine *co) { co->caller =3D NULL; =20 - if (CONFIG_COROUTINE_POOL) { + if (IS_ENABLED(CONFIG_COROUTINE_POOL)) { if (release_pool_size < qatomic_read(&pool_max_size) * 2) { QSLIST_INSERT_HEAD_ATOMIC(&release_pool, co, pool_next); qatomic_inc(&release_pool_size); --=20 2.41.0 From nobody Wed Nov 27 17:51:56 2024 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1697438029; cv=none; d=zohomail.com; s=zohoarc; b=FXacg7iOKrPQOagMzfenp4yA36rB0RDGm78ASyrsiONoCbQ1b9JeL7xcrUQUngJuDeDxll8c2oQN4QA2Bxr1LqNQGEj8nVppghKoXPVBKEWYIwsM6wQhM9IV0PhSHUR6yE5FcJSPivXOSSa+L2gJ5yTonhWQ1Y7z2tMjzAdtSi0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697438029; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Eu916VXR4bjLP9kWhBXksgOVS+7PTywOtWPRUF1/pAo=; b=DUMyndMmESl3plFy0P5EjOqnOy6mjdgGGdOajjdGX7V3YrhB9+s75xs7qqdNrnbYbQL5NjljZrEi6FvaIRzm59un4yejUUvxUhu76lOgJwVNq8JGeUfc+G+O3i6CMOvxUpdiR5S/c7XTRyXxtdmvFWtNc50YVhZkqefG8YeSSns= 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 1697438029211989.6369787364708; Sun, 15 Oct 2023 23:33:49 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsH8g-0003sx-Iu; Mon, 16 Oct 2023 02:31:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8e-0003sC-VV for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:40 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8c-0005RJ-PN for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:40 -0400 Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-290-6HZ-o9kDM7KmlQ0xLkfx0g-1; Mon, 16 Oct 2023 02:31:36 -0400 Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-53e3bfec5bdso2002538a12.0 for ; Sun, 15 Oct 2023 23:31:36 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id g22-20020a50d0d6000000b0053e3d8f1d9fsm4507989edf.67.2023.10.15.23.31.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 23:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697437898; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Eu916VXR4bjLP9kWhBXksgOVS+7PTywOtWPRUF1/pAo=; b=eS/Xp/FYnXwERMQPUMwZ2Etlmv0FRtn7RVC/Vv2jLI/9Cx+20bCjndtPiryGJyiIQdowyz 7UX0c5hzHwoUMTjO+GBqvVPgHDa/aPtmVGMa8LrAYg/z7qQ6fyLqfLCbCQ7m+iVh7xj5SK 0UFgHHIujq/YfjS5pRHUfOyB8G5HGco= X-MC-Unique: 6HZ-o9kDM7KmlQ0xLkfx0g-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697437895; x=1698042695; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Eu916VXR4bjLP9kWhBXksgOVS+7PTywOtWPRUF1/pAo=; b=O05CFfQ1fYSuHlCMIOzvLXk7E4JNIwjHdSw74jTfkC+X2fOVe5K8JAuAJwk8XA686A eWcA1hOnT0iP+bZMXx5jGh3kfa91Lpwx3QeNjWZrAKIha7z4FN/g0639utC3OgZ7hJAF sca3AbeYVSM+KkWI8kchU0bkkP/7sW4ctErDhSfClEp1vAiadta5O5xMVkZqHzTOK5ck bUMkA/TCzdapLLGJlZ04G+UHZkeGWh3wehNNpkX8Z6bGrxnNVShDEYpYOFzy4Qn1N3Qp HD7WD6guXd2eWM1t0Dc6Ko2HkQt74eyEJUqgchyfx0DQji8nmuV+z9LWdRa7p/TzCN+Y Ic6w== X-Gm-Message-State: AOJu0YxVrL7Og0Li6Jy+zMQ1jq+zcCXz9rGA4gpLjW/4Fdwt6v/fK2Lf n8MxVuTxuYia7ltQYewwAqhru8VktixFdMMBcBLulhiXxhFo4SRIdEJgYcJVveF8S3yGjfT+zV7 2ghPFHLaEhNlg98TBnJ+3fTSN5oTpBXihC9FJKECXbrvM2HcV0qeuI+/PbFqyseRGY+llcSlBA4 U= X-Received: by 2002:a05:6402:4405:b0:53e:5dad:dce7 with SMTP id y5-20020a056402440500b0053e5daddce7mr7207981eda.29.1697437895187; Sun, 15 Oct 2023 23:31:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE3Eczpa7yE0kVG/pozhF/qWJQK4FETyHhXhnnjN4QYpps10gcvzjOqk6k9AO4P5MYaLcpjzA== X-Received: by 2002:a05:6402:4405:b0:53e:5dad:dce7 with SMTP id y5-20020a056402440500b0053e5daddce7mr7207942eda.29.1697437894693; Sun, 15 Oct 2023 23:31:34 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: Michael Tokarev Subject: [PATCH 03/17] meson, cutils: allow non-relocatable installs Date: Mon, 16 Oct 2023 08:31:13 +0200 Message-ID: <20231016063127.161204-4-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231016063127.161204-1-pbonzini@redhat.com> References: <20231016063127.161204-1-pbonzini@redhat.com> MIME-Version: 1.0 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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697438031325100007 Content-Type: text/plain; charset="utf-8" Suggested-by: Michael Tokarev Signed-off-by: Paolo Bonzini Reviewed-by: Emmanouil Pitsidianakis --- meson.build | 21 +++++++++++++++++++++ meson_options.txt | 2 ++ scripts/meson-buildoptions.sh | 3 +++ util/cutils.c | 11 ++++++++--- 4 files changed, 34 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 010d2c649c2..251838f2609 100644 --- a/meson.build +++ b/meson.build @@ -2111,6 +2111,7 @@ config_host_data.set('CONFIG_OPENGL', opengl.found()) config_host_data.set('CONFIG_PLUGIN', get_option('plugins')) config_host_data.set('CONFIG_RBD', rbd.found()) config_host_data.set('CONFIG_RDMA', rdma.found()) +config_host_data.set('CONFIG_RELOCATABLE', get_option('relocatable')) config_host_data.set('CONFIG_SAFESTACK', get_option('safe_stack')) config_host_data.set('CONFIG_SDL', sdl.found()) config_host_data.set('CONFIG_SDL_IMAGE', sdl_image.found()) @@ -4054,6 +4055,7 @@ if 'simple' in get_option('trace_backends') endif summary_info +=3D {'D-Bus display': dbus_display} summary_info +=3D {'QOM debugging': get_option('qom_cast_debug')} +summary_info +=3D {'Relocatable install': get_option('relocatable')} summary_info +=3D {'vhost-kernel support': have_vhost_kernel} summary_info +=3D {'vhost-net support': have_vhost_net} summary_info +=3D {'vhost-user support': have_vhost_user} @@ -4356,3 +4358,22 @@ if host_arch =3D=3D 'unknown' or not supported_oses.= contains(targetos) message('If you want to help supporting QEMU on this platform, please') message('contact the developers at qemu-devel@nongnu.org.') endif + +actually_reloc =3D get_option('relocatable') +# check if get_relocated_path() is actually able to relocate paths +if get_option('relocatable') and \ + not (get_option('prefix') / get_option('bindir')).startswith(get_option(= 'prefix') / '') + message() + warning('bindir not included within prefix, the installation will not be= relocatable.') + message() + message('Use --disable-relocatable to remove this warning.') + actually_reloc =3D false +endif +if not actually_reloc and (targetos =3D=3D 'windows' or get_option('reloca= table')) + if targetos =3D=3D 'windows' + message() + warning('Windows installs should usually be relocatable.') + endif + message() + message('QEMU will have to be installed under ' + get_option('prefix') += '.') +endif diff --git a/meson_options.txt b/meson_options.txt index 6a17b909680..e237b268469 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -101,6 +101,8 @@ option('cfi_debug', type: 'boolean', value: false, description: 'Verbose errors in case of CFI violation') option('multiprocess', type: 'feature', value: 'auto', description: 'Out of process device emulation support') +option('relocatable', type : 'boolean', value : 'true', + description: 'toggle relocatable install') option('vfio_user_server', type: 'feature', value: 'disabled', description: 'vfio-user server support') option('dbus_display', type: 'feature', value: 'auto', diff --git a/scripts/meson-buildoptions.sh b/scripts/meson-buildoptions.sh index 2a74b0275b3..d4b89e6b443 100644 --- a/scripts/meson-buildoptions.sh +++ b/scripts/meson-buildoptions.sh @@ -17,6 +17,7 @@ meson_options_help() { printf "%s\n" ' code for the Hexagon frontend' printf "%s\n" ' --disable-install-blobs install provided firmware blob= s' printf "%s\n" ' --disable-qom-cast-debug cast debugging support' + printf "%s\n" ' --disable-relocatable toggle relocatable install' printf "%s\n" ' --docdir=3DVALUE Base directory for documenta= tion installation' printf "%s\n" ' (can be empty) [share/doc]' printf "%s\n" ' --enable-block-drv-whitelist-in-tools' @@ -421,6 +422,8 @@ _meson_option_parse() { --disable-rbd) printf "%s" -Drbd=3Ddisabled ;; --enable-rdma) printf "%s" -Drdma=3Denabled ;; --disable-rdma) printf "%s" -Drdma=3Ddisabled ;; + --enable-relocatable) printf "%s" -Drelocatable=3Dtrue ;; + --disable-relocatable) printf "%s" -Drelocatable=3Dfalse ;; --enable-replication) printf "%s" -Dreplication=3Denabled ;; --disable-replication) printf "%s" -Dreplication=3Ddisabled ;; --enable-rng-none) printf "%s" -Drng_none=3Dtrue ;; diff --git a/util/cutils.c b/util/cutils.c index c99d26c5e2d..64f817b477b 100644 --- a/util/cutils.c +++ b/util/cutils.c @@ -1178,9 +1178,11 @@ char *get_relocated_path(const char *dir) #else g_string_append(result, dir); #endif - } else if (!starts_with_prefix(dir) || !starts_with_prefix(bindir)) { - g_string_assign(result, dir); - } else { + goto out; + } + + if (IS_ENABLED(CONFIG_RELOCATABLE) && + starts_with_prefix(dir) && starts_with_prefix(bindir)) { g_string_assign(result, exec_dir); =20 /* Advance over common components. */ @@ -1203,7 +1205,10 @@ char *get_relocated_path(const char *dir) assert(G_IS_DIR_SEPARATOR(dir[-1])); g_string_append(result, dir - 1); } + goto out; } =20 + g_string_assign(result, dir); +out: return g_string_free(result, false); } --=20 2.41.0 From nobody Wed Nov 27 17:51:56 2024 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1697438055; cv=none; d=zohomail.com; s=zohoarc; b=LZ/iI8dWPCvdeK6YJ1qo4QIgd+WPWlUQDsuvHBL0noVwOcZYt21kUVCbQoCWkBMRhJhwClIqp+0aXI+VXJMcSTfLEaMOs/1p84CKvidO2ji0IKyub5rbKT7l6dURKd+xLacpRqWVTMTBpL0+/CPPbPuILwAbq3UVeXzCIZ9FpDs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697438055; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=YfoJIpN+uZGYPzQNSBF+48daw1pWErF1si+YxUUxbaQ=; b=PpnJX2tjAU7X0PjehCvGrXNiPkQ4igmVVZcj7PN4/5mj7hyqScF8wsjxMOkEjysdE4DC5ysM6UwQE8RwEGur0l6zWu9aVO8anZlTFAkQyh2d3bHC9WOkVGhB0yRbXjEJq3J12eEyo2l4UCIrlS04Y33GZFEG+8gqppRZuqTUyhU= 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 1697438055657660.9830471717487; Sun, 15 Oct 2023 23:34:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsH8m-0003u5-Qg; Mon, 16 Oct 2023 02:31:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8l-0003tv-Uw for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:48 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8k-0005S4-JB for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:47 -0400 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-352-o3YxCkVJPF25-6zrOj6ggg-1; Mon, 16 Oct 2023 02:31:39 -0400 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-9c4485166beso31514966b.3 for ; Sun, 15 Oct 2023 23:31:38 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id qw8-20020a170906fca800b0099bd7b26639sm3392978ejb.6.2023.10.15.23.31.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 23:31:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697437906; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YfoJIpN+uZGYPzQNSBF+48daw1pWErF1si+YxUUxbaQ=; b=ao1bUhAdHnxQRQ6CuH36i/fZUsDg9m67lUbtyFyRxRU6/7ugKHv8Gw8E1eAMIPZFuZwwRn 4FSZEAXpyCQTzP4/BkWMcEWjV2atFpcOUMPU1oMev5/4GvLoezaKZlhDNAvUpMCSCXjkQ6 BxaoWtwDPsoZNkbJkjBi4Am6w13TcLU= X-MC-Unique: o3YxCkVJPF25-6zrOj6ggg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697437897; x=1698042697; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YfoJIpN+uZGYPzQNSBF+48daw1pWErF1si+YxUUxbaQ=; b=CH+YYOp3VLcbjpd5QW4I1XY0pdlwpf21iurT+IWEpwpSs9I3MA7TT1eVO2iKRZ9kTq BCShNPW001wMeDYrO5RYgvSWzFvWteh56Y1H1ilqcYEnFkP8AWCTHSxm1MEoASvVKKcE WjggU0n13jbYUKfHFIf5gYLXBpBQhy0vk/MpOxSpNlmGBQYXVHMnnji1ybmI79VsPRRO czglpR6aakBRY6PKHcZ/hu8Zqy+7KdZc460LHGSnwx25UidzBKdbLismfAr770V6na74 HOAVeFxL3PAVFaDSX5HN7KrwDLuQDYOVFMnocIXb2zIDwpg49wwBQDPY1t5EIIl+JvB4 ktPA== X-Gm-Message-State: AOJu0Yzi6J55WrTzQqbAisCCOBzOncfA7jX2OfLNntERRgFGVQq/RgmJ EFenTStFwNOsZEYJfLeU8GxMbZVAlStIWZiaQwGjuLG2R7nOWtN81Fu6N1eIflZ2/1PZenxU26/ qNpwLVGVS90Tt1In1oSA0Eh8tNBbF15l9h6lnE9XLh8OKBg4dk6Vbqrk+wpbJh7Lkvj62DYmoPQ U= X-Received: by 2002:a17:906:7697:b0:9b2:b119:4918 with SMTP id o23-20020a170906769700b009b2b1194918mr30487811ejm.13.1697437897494; Sun, 15 Oct 2023 23:31:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFkWoMpS8vcC0SKsglKhuUpCPG+umoSznPCESBkpPHxXEa9Up5Qxuwad6KxILnf+WyMG9muEg== X-Received: by 2002:a17:906:7697:b0:9b2:b119:4918 with SMTP id o23-20020a170906769700b009b2b1194918mr30487803ejm.13.1697437897179; Sun, 15 Oct 2023 23:31:37 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 04/17] configure: clean up handling of CFI option Date: Mon, 16 Oct 2023 08:31:14 +0200 Message-ID: <20231016063127.161204-5-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231016063127.161204-1-pbonzini@redhat.com> References: <20231016063127.161204-1-pbonzini@redhat.com> MIME-Version: 1.0 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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697438057438100005 Content-Type: text/plain; charset="utf-8" Avoid that --enable-cfi --disable-cfi leaves b_lto set to true. Signed-off-by: Paolo Bonzini Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- configure | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/configure b/configure index bce8c57596f..3da46ed202d 100755 --- a/configure +++ b/configure @@ -766,11 +766,9 @@ for opt do ;; --disable-werror) werror=3D"no" ;; - --enable-cfi) - cfi=3D"true"; - meson_option_add -Db_lto=3Dtrue + --enable-cfi) cfi=3Dtrue ;; - --disable-cfi) cfi=3D"false" + --disable-cfi) cfi=3Dfalse ;; --disable-download) download=3D"disabled"; git_submodules_action=3Dvalid= ate; ;; @@ -1845,6 +1843,7 @@ if test "$skip_meson" =3D no; then =20 # QEMU options test "$cfi" !=3D false && meson_option_add "-Dcfi=3D$cfi" + test "$cfi" !=3D false && meson_option_add "-Db_lto=3D$cfi" test "$docs" !=3D auto && meson_option_add "-Ddocs=3D$docs" test -n "${LIB_FUZZING_ENGINE+xxx}" && meson_option_add "-Dfuzzing_engin= e=3D$LIB_FUZZING_ENGINE" test "$plugins" =3D yes && meson_option_add "-Dplugins=3Dtrue" --=20 2.41.0 From nobody Wed Nov 27 17:51:56 2024 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1697437929; cv=none; d=zohomail.com; s=zohoarc; b=OWGFRgP+wVjR9TPJ8uX/OaF9zpnSXZlhrUnjONqJbMW0GWG1X72GX2Bf0c5ZvbPqd0Bc7BCSmGjE02DCjLzDzty9mZb2C3IN9mjRTaMRtWxA7wgBajC/uUcfEEFZojfhHcfbt3z4Fpw0MEs4A6lr54c9vQOwURizePjY1/rDYKA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697437929; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=gMEGfJX5yEubPkar1DYtNMZdMeXfWKJZ/edTNcXbgHQ=; b=lzdv9cAjQj4vLTAlqyJ1mBXCHG9J5+oWit+Zy7m4M0tWCCOOATM8lWlTnagkm0aIIrq7ok6Y/eBwcA+ki4wHrTB7Sf4qzp8bLtuoNcVowX/DvFBI8P22eWUiXJINrTOJWeaOuqpGU3gBKjQHTUMDbgepfO4DPh0PEZKRbUNjwvk= 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 1697437929148943.2504669772104; Sun, 15 Oct 2023 23:32:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsH8k-0003tV-8L; Mon, 16 Oct 2023 02:31:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8j-0003tN-2D for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:45 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8h-0005Rs-FR for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:44 -0400 Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-271-YJRvgtlBNEyg9fQPQouNXA-1; Mon, 16 Oct 2023 02:31:40 -0400 Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-53e02a0ebfdso2966021a12.3 for ; Sun, 15 Oct 2023 23:31:40 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id v3-20020a056402174300b0053e3839fc79sm4477594edx.96.2023.10.15.23.31.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 23:31:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697437902; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gMEGfJX5yEubPkar1DYtNMZdMeXfWKJZ/edTNcXbgHQ=; b=K/y5YsqfrgQ5UIbHMJckb9piu8+WKJ5E+tzVLj06jzkB8oz1zs+vKOxSRjOZVSrI1r5uYv x5XvwI9l/C1UHgWGsW+8sx+S3WigFTJVVG9p6i+1jJOrh637KcoUOO1uPs0gMqmDjDij2R xkLoX3twyPMW2wNQC7JlBrj9ffNNTu4= X-MC-Unique: YJRvgtlBNEyg9fQPQouNXA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697437899; x=1698042699; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gMEGfJX5yEubPkar1DYtNMZdMeXfWKJZ/edTNcXbgHQ=; b=homjZ/OaPV940kf/jn8tH9N3nNPjys1zPkWQR3PbsE+gpei9dYzsgWOTEp0Vg+1JiE dwIXLRjJntMbhQ+uTplWSOU+VRuKerWgHckxLwzk2gfNaHF4nyCHLQtozaxDei7m7zlE /q7yXL1u855EY7MPTfJGoSwQw7Qz854NhY51EvHihijw3gE7g+YijSkrAiu87e1Xii8u 8vt55q8mLv3fOuAXffCHJQbMIx6jktzUoaeJNzqaJPlUiQjwLZxtFnBzt5NTfQNXVCQV p3pZOO+ZzojTrFTLM+kOC/gZD8KCP8+SgSN2MOCafiZHmoKTdCMhHt8kxTDP/1+ExFge gW8g== X-Gm-Message-State: AOJu0YwLVwFmDEsXYPc08eA4dF/7UUR7QzPmGC8EEi/nagqedU7Xb1x3 3/tjJQq1xnzL+wPMf/zJXEiaOImELk5jHoi/QgSEgWXI6aPrPi0PYUf3C8AfA5vHC2Gh8pQKASx ajS+XJz+TANar1fUFwDkhVCqESh7xluP7ZCI8ovaaSH2jPMDS7knCkHiCztZ4FzGu/db9QkQL8W o= X-Received: by 2002:a05:6402:550b:b0:53d:b59c:8f91 with SMTP id fi11-20020a056402550b00b0053db59c8f91mr12132728edb.27.1697437899084; Sun, 15 Oct 2023 23:31:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEjjjuOkB3ug5kw3HUyPRAchelMxPFvzGmR8xsSK6TgF/z8lEkwIngwyik6AZADHOgC39ZtMw== X-Received: by 2002:a05:6402:550b:b0:53d:b59c:8f91 with SMTP id fi11-20020a056402550b00b0053db59c8f91mr12132721edb.27.1697437898832; Sun, 15 Oct 2023 23:31:38 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 05/17] hw/xen: cleanup sourcesets Date: Mon, 16 Oct 2023 08:31:15 +0200 Message-ID: <20231016063127.161204-6-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231016063127.161204-1-pbonzini@redhat.com> References: <20231016063127.161204-1-pbonzini@redhat.com> MIME-Version: 1.0 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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697437930867100001 Content-Type: text/plain; charset="utf-8" xen_ss is added unconditionally to arm_ss and i386_ss (the only targets that can have CONFIG_XEN enabled) and its contents are gated by CONFIG_XEN; xen_specific_ss has no condition for its constituent files but is gated on CONFIG_XEN when its added to specific_ss. So xen_ss is a duplicate of xen_specific_ss, though defined in a different way. Merge the two by eliminating xen_ss. Signed-off-by: Paolo Bonzini --- hw/arm/meson.build | 1 - hw/i386/meson.build | 1 - hw/xen/meson.build | 11 ++++------- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/hw/arm/meson.build b/hw/arm/meson.build index 11eb9112f88..a6feaf1af95 100644 --- a/hw/arm/meson.build +++ b/hw/arm/meson.build @@ -64,7 +64,6 @@ arm_ss.add(when: 'CONFIG_ARM_SMMUV3', if_true: files('smm= uv3.c')) arm_ss.add(when: 'CONFIG_FSL_IMX6UL', if_true: files('fsl-imx6ul.c', 'mcim= x6ul-evk.c')) arm_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('nrf51_soc.c')) arm_ss.add(when: 'CONFIG_XEN', if_true: files('xen_arm.c')) -arm_ss.add_all(xen_ss) =20 system_ss.add(when: 'CONFIG_ARM_SMMUV3', if_true: files('smmu-common.c')) system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4_boards.c')) diff --git a/hw/i386/meson.build b/hw/i386/meson.build index ff879069c98..369c6bf823b 100644 --- a/hw/i386/meson.build +++ b/hw/i386/meson.build @@ -32,6 +32,5 @@ subdir('kvm') subdir('xen') =20 i386_ss.add_all(xenpv_ss) -i386_ss.add_all(xen_ss) =20 hw_arch +=3D {'i386': i386_ss} diff --git a/hw/xen/meson.build b/hw/xen/meson.build index 277f9f292b4..d887fa9ba43 100644 --- a/hw/xen/meson.build +++ b/hw/xen/meson.build @@ -12,6 +12,10 @@ system_ss.add(when: ['CONFIG_XEN', xen], if_true: files( )) =20 xen_specific_ss =3D ss.source_set() +xen_specific_ss.add(files( + 'xen-mapcache.c', + 'xen-hvm-common.c', +)) if have_xen_pci_passthrough xen_specific_ss.add(files( 'xen-host-pci-device.c', @@ -26,10 +30,3 @@ else endif =20 specific_ss.add_all(when: ['CONFIG_XEN', xen], if_true: xen_specific_ss) - -xen_ss =3D ss.source_set() - -xen_ss.add(when: 'CONFIG_XEN', if_true: files( - 'xen-mapcache.c', - 'xen-hvm-common.c', -)) --=20 2.41.0 From nobody Wed Nov 27 17:51:56 2024 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1697438034; cv=none; d=zohomail.com; s=zohoarc; b=JxrFQdmAiZf2zZRCCUOLjss19L6fzoO8XbjgQYAgBwcViwQUVnv4kZTtacUuQ1oOO8cj66p/vfGOzqMAdVQQr+9HZptw4049Yj09yyvmp7B2m8tNJkixjFmSs6Tjdi3zW1Efc6h5HIhIKGeLpz6Rzz3Ra3YCrmHSia/Of7VTmjg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697438034; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=9QQ5Jv++5JWrJcQC65uokcTL2BMQ3kZau3NHc7ktyfI=; b=KaXwiOpwo4lIXDvldAvPLCn2OMGJKLnTTFSoP0TThGoP4XKlz/A2WQYDkpsxO5xc+3NrwsK5sCHTR6DU6HgaXwUfFtGpQpxmycJVeF518Bmv8pqWnyrFoVVrpYzI0eSyk1scbq+dg+HHgVOcg33yO6Er0Z2AY52C7n2l/+Xp3Kc= 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 1697438034824637.4322191838156; Sun, 15 Oct 2023 23:33:54 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsH8z-00040l-8j; Mon, 16 Oct 2023 02:32:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8w-0003zJ-1Q for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:58 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8t-0005T1-GG for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:57 -0400 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-127-VC_bdEVqOkae6hQAGioAEw-1; Mon, 16 Oct 2023 02:31:42 -0400 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-993eeb3a950so260252066b.2 for ; Sun, 15 Oct 2023 23:31:42 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id f11-20020a170906738b00b00992e94bcfabsm3376851ejl.167.2023.10.15.23.31.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 23:31:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697437914; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9QQ5Jv++5JWrJcQC65uokcTL2BMQ3kZau3NHc7ktyfI=; b=JdjL0SJTO/e5Lm7K3l5+2VF8pdj++lojTl4jrSGT4vH9pQF+YvTfcWqsoEPGgCvg4YfpdI AigZAw7DlIqVAZ4+ZrmoNgK8A8q94DTtUojVK/gXwVXSO9LK3TrGq7mSprKbHmpMt1hNht gcnIGSX5Q2uH/wxUy9+lrRwcdvcqwjw= X-MC-Unique: VC_bdEVqOkae6hQAGioAEw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697437900; x=1698042700; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9QQ5Jv++5JWrJcQC65uokcTL2BMQ3kZau3NHc7ktyfI=; b=BEraUrID7MKHSoHJjnQmiD2z4nVe9/2MopFRvOMnzguRTDiiHe8YWGA04qG/MecbaG 1GPC0hezsFmy0Ar0kMLEmEYNkOS/WgliKq3rCV/o5DBXe4Ly7mpvuOIt2lE64CACb9ws yoDze+tz8xQ+WjETYe3Kcuhq6HmSRc0xIAZhul8+FVT8ULL4ZDjGLn6BLqUycHYlfcD0 1Az9z8cOW0eh60HbI7ACFXVv7kq3bFp805ytaJ0Q+O79dqDs8+j16hJRFEVgBSYBrpP2 pJGY8UQljS/JhRP4dEgGGQUFvzWYZrJczTtASQNR0Dk1yh4NBF9z/3ZTojGsAe33xewg Uomw== X-Gm-Message-State: AOJu0Yz0JyeYve8P4tvzDu3VjhPIAgMkyhWCM4Ug6Mv0PbmAKoXGO/aN rIDFqPu7MeA8yHKS7HDm9ND0NKcbzma4i3mk/KUZsCVL0sDxVaiFMYo20nS+mljSzHXjLVIibf2 qfLOe66lINaynfK/gX4ZtZaTBvEuorwkx/6ywXh14YZkZWsub/3bWl45SecCu1mCN2/fIwyKNsq c= X-Received: by 2002:a17:906:cc0d:b0:9a2:86b:bb18 with SMTP id ml13-20020a170906cc0d00b009a2086bbb18mr27954287ejb.26.1697437900774; Sun, 15 Oct 2023 23:31:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEJZkDpMl2j4MMjNlYIGSeWRfUJyCUnuvgxQTwyd4LwUU2QsZIfAfvt1NEF41QG0ayrpMN7Og== X-Received: by 2002:a17:906:cc0d:b0:9a2:86b:bb18 with SMTP id ml13-20020a170906cc0d00b009a2086bbb18mr27954282ejb.26.1697437900463; Sun, 15 Oct 2023 23:31:40 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 06/17] hw/remote: move stub vfu_object_set_bus_irq out of stubs/ Date: Mon, 16 Oct 2023 08:31:16 +0200 Message-ID: <20231016063127.161204-7-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231016063127.161204-1-pbonzini@redhat.com> References: <20231016063127.161204-1-pbonzini@redhat.com> MIME-Version: 1.0 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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697438035431100013 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- hw/remote/meson.build | 4 +++- stubs/vfio-user-obj.c =3D> hw/remote/vfio-user-obj-stub.c | 0 stubs/meson.build | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) rename stubs/vfio-user-obj.c =3D> hw/remote/vfio-user-obj-stub.c (100%) diff --git a/hw/remote/meson.build b/hw/remote/meson.build index a1e8708c732..a3aa29aaf17 100644 --- a/hw/remote/meson.build +++ b/hw/remote/meson.build @@ -7,9 +7,11 @@ remote_ss.add(when: 'CONFIG_MULTIPROCESS', if_true: files(= 'remote-obj.c')) remote_ss.add(when: 'CONFIG_MULTIPROCESS', if_true: files('proxy.c')) remote_ss.add(when: 'CONFIG_MULTIPROCESS', if_true: files('iohub.c')) remote_ss.add(when: 'CONFIG_MULTIPROCESS', if_true: files('iommu.c')) -remote_ss.add(when: 'CONFIG_VFIO_USER_SERVER', if_true: files('vfio-user-o= bj.c')) =20 remote_ss.add(when: 'CONFIG_VFIO_USER_SERVER', if_true: libvfio_user_dep) +remote_ss.add(when: 'CONFIG_VFIO_USER_SERVER', if_true: files('vfio-user-o= bj.c'), + if_false: files('vfio-user-obj-stub.c')) +remote_ss.add(when: 'CONFIG_ALL', if_true: files('vfio-user-obj-stub.c')) =20 specific_ss.add(when: 'CONFIG_MULTIPROCESS', if_true: files('memory.c')) specific_ss.add(when: 'CONFIG_MULTIPROCESS', if_true: files('proxy-memory-= listener.c')) diff --git a/stubs/vfio-user-obj.c b/hw/remote/vfio-user-obj-stub.c similarity index 100% rename from stubs/vfio-user-obj.c rename to hw/remote/vfio-user-obj-stub.c diff --git a/stubs/meson.build b/stubs/meson.build index ef6e39a64d8..025e7d2851f 100644 --- a/stubs/meson.build +++ b/stubs/meson.build @@ -65,4 +65,3 @@ else stub_ss.add(files('qdev.c')) endif stub_ss.add(files('semihost-all.c')) -stub_ss.add(when: 'CONFIG_VFIO_USER_SERVER', if_false: files('vfio-user-ob= j.c')) --=20 2.41.0 From nobody Wed Nov 27 17:51:56 2024 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1697438078; cv=none; d=zohomail.com; s=zohoarc; b=I1C/6Gql1pBOthZW/0Szd+YOkicC244vUkyBaJZQLUDdCw2AhThOVwiKb4YKCuW+nTnFZrsP6Eg+ySv7qoaR/Bv0g5kbBOSzR4QZo6KEDrRenRGC57enmSaPJV7nrTLowOYUzeBX5/OWoXF2G4cRgEq3bHSOK4NPhxjTMI847bI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697438078; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=UWFwfKWsP26Bal1UGvJOrMRc81Ismgv98NyAMzklpAA=; b=kUnTKZ0ppH+HTR9KHvTkii3yNS2nsu7SHhsPEJ4SZJ4dyZmKGf2mkz0NvZy6NSJ/ZWed+LShXgTe6T4k+onJI9QJtozImdzB1/nWBZQJaSsVuIExB4DpuV+v9tgWCVOp3YRqQTO5r48EN4YIpt8Mo25HO5Z8iNn2mS+hRT+gYU0= 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 1697438077944115.66841960048635; Sun, 15 Oct 2023 23:34:37 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsH8s-0003y9-Mb; Mon, 16 Oct 2023 02:31:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8r-0003wf-DM for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:53 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8p-0005Sb-V7 for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:53 -0400 Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-423-pj5aymv8MjabHIdWMdSYqA-1; Mon, 16 Oct 2023 02:31:44 -0400 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-9ae0bf9c0b4so308478266b.0 for ; Sun, 15 Oct 2023 23:31:43 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id r15-20020a17090638cf00b00997cce73cc7sm3398153ejd.29.2023.10.15.23.31.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 23:31:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697437911; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UWFwfKWsP26Bal1UGvJOrMRc81Ismgv98NyAMzklpAA=; b=Fp41g1HnLVFsG68QwrSoKw8kiMpka7Ohd0TljUd06FxJcpTO1JBXaUQlOcQX9t6ub8zr1p c3zJIpK8iEHmp1BhA5UKfSF4uTjpSVJZrAJJVu4vljqnX2uSl9VoCQREYmcJcyvMKEd3ko jAr1CST3GDsYqBlF8K1+M6fhM2m0Z9U= X-MC-Unique: pj5aymv8MjabHIdWMdSYqA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697437902; x=1698042702; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UWFwfKWsP26Bal1UGvJOrMRc81Ismgv98NyAMzklpAA=; b=G3AS6eZJHC2aro3B+ECKvGTo/+NtJWt5Cxn/hDBa9Cw47HBEwuMOPu1nfT8q0TCoiH x9QiXyAFvnpcjrphrHPwr5/HD3t8gMmIHcdjKRyRnVykOlWMIsfo+oq+zhxL31qNuAK/ qGA8m2oaMsJhRJc/xxioxJCsvDC8He5flaqx62ZOfZQkLY/DkQIwPL51VrLT/kzoukNK xuu2KAP4ps6Jw1OnD8UFGPyxw8mZdaZn9WPvARoA94ushbgZcRqou6rU5WX7LkPbI+dB 98FA3a25oxdoVQclzq5pAwIJuRwBxbUE5HNc/oILX+xcA0s5WHbiynPN6pED7SL39LeC nNkQ== X-Gm-Message-State: AOJu0Yw0M1xmVJBp4sOo3gTvxh89leZodcMoPrk6OHR9GQF6oohEOR8n ORS8NT83MXAoNWIEfiI1G4/ClYpM6Q5xyBqABeNoYLK8vdEvByR6a/ZYzp28PlvJclK8qH5ISJ6 K2VmaJKEpdQX38SGJzy9cf0PHV+8zfxUkWvAHixTmRnDvgijOG9Zm2KA4227zCjzHmzF0zCVB9i U= X-Received: by 2002:a17:907:ea1:b0:9be:ef46:6b9d with SMTP id ho33-20020a1709070ea100b009beef466b9dmr5256525ejc.29.1697437902617; Sun, 15 Oct 2023 23:31:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFaIESZJFotBx06sVT+rwuyDzGjszwQKsje+roRzrw0N3haxPz+2QLQwADSw3XCPMoT4KK4ag== X-Received: by 2002:a17:907:ea1:b0:9be:ef46:6b9d with SMTP id ho33-20020a1709070ea100b009beef466b9dmr5256509ejc.29.1697437902177; Sun, 15 Oct 2023 23:31:42 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 07/17] tests/tcg/arm: move non-SVE tests out of conditional Date: Mon, 16 Oct 2023 08:31:17 +0200 Message-ID: <20231016063127.161204-8-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231016063127.161204-1-pbonzini@redhat.com> References: <20231016063127.161204-1-pbonzini@redhat.com> MIME-Version: 1.0 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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697438079549100003 Content-Type: text/plain; charset="utf-8" test-aes, sha1-vector and sha512-vector need not be conditional on $(CROSS_CC_HAS_SVE), reorganize the "if"s to move them outside. Signed-off-by: Paolo Bonzini --- tests/tcg/aarch64/Makefile.target | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/tcg/aarch64/Makefile.target b/tests/tcg/aarch64/Makefile= .target index 2efacf9a5a3..d01b8ff47c8 100644 --- a/tests/tcg/aarch64/Makefile.target +++ b/tests/tcg/aarch64/Makefile.target @@ -73,11 +73,6 @@ endif # System Registers Tests AARCH64_TESTS +=3D sysregs =20 -ifneq ($(CROSS_CC_HAS_SVE),) -# SVE ioctl test -AARCH64_TESTS +=3D sve-ioctls -sve-ioctls: CFLAGS+=3D-march=3Darmv8.1-a+sve - AARCH64_TESTS +=3D test-aes test-aes: CFLAGS +=3D -O -march=3Darmv8-a+aes test-aes: test-aes-main.c.inc @@ -100,12 +95,15 @@ sha512-vector: sha512.c TESTS +=3D sha512-vector =20 ifneq ($(CROSS_CC_HAS_SVE),) +# SVE ioctl test +AARCH64_TESTS +=3D sve-ioctls +sve-ioctls: CFLAGS+=3D-march=3Darmv8.1-a+sve + sha512-sve: CFLAGS=3D-O3 -march=3Darmv8.1-a+sve sha512-sve: sha512.c $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) =20 TESTS +=3D sha512-sve -endif =20 ifeq ($(HOST_GDB_SUPPORTS_ARCH),y) GDB_SCRIPT=3D$(SRC_PATH)/tests/guest-debug/run-test.py --=20 2.41.0 From nobody Wed Nov 27 17:51:56 2024 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1697437929; cv=none; d=zohomail.com; s=zohoarc; b=fpaWdMvO4PpHYEyC+nEIeBLNM09T/sK8svFtafAKdJ5WI0io1R8WHbXXkXS5kUUqsiF1n7sOqjtqyBJAOI3P9tG4TwRX2e41NcUVC65Vo6QviJq/w2TQzRS1IbRc786X1qVhMrlZ7/cEfVt3PI9Wq1miLd841jL66iieUKtImUs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697437929; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=UrHZ5GRzW8lQtPg843T6Htzc+QHUFHYsEY4Zs9sIB4w=; b=EBR8ogHHd858Tpbmx3z773nz8vv1d4i2ZgUzWq25kqmYJqVmuBqq3hdZ8HjOrVJReUFxvrExst7WonWPULaKbZSAxRKb9ngHkNHnAiCEZzAdXE2W3jfjVmjgjTqplq07djXA5IY8qxZNv7x+bSvScAQxHje+d5nnOYV3meZVCuI= 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 1697437929893303.9316118112946; Sun, 15 Oct 2023 23:32:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsH8r-0003wy-Jv; Mon, 16 Oct 2023 02:31:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8q-0003uM-4j for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:52 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8o-0005SM-4O for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:51 -0400 Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-212-jQtmKb20MdKSxSQaMjqRaQ-1; Mon, 16 Oct 2023 02:31:47 -0400 Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2c5073588cbso22571191fa.3 for ; Sun, 15 Oct 2023 23:31:47 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id y25-20020a1709063a9900b009ae3e6c342asm3382543ejd.111.2023.10.15.23.31.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 23:31:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697437909; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UrHZ5GRzW8lQtPg843T6Htzc+QHUFHYsEY4Zs9sIB4w=; b=Ck+Mxs58cn2UMG2dgnbXuDAaMxRx4XWlIExnOeK/sV3xUKZMI1c1Rn32G+6JJM8CcHS9bT AHMv7+25XbncVjC1D37Fu+mjAezLI+XZNqULva0Y4iiZ1BKwF+S6WoErAbVhxI67IPHGp8 TgD+zRmTfyAkN/2ydxIyWHhN7XVwmsY= X-MC-Unique: jQtmKb20MdKSxSQaMjqRaQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697437905; x=1698042705; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UrHZ5GRzW8lQtPg843T6Htzc+QHUFHYsEY4Zs9sIB4w=; b=h2keN6BfUQjgzhe61WxMu/seU2yd4WTNabUplWOVFv983SCXZDQ1b8yUx4JvQutaPK q3oUyRew8ans4le0dOKyQYRvfuICwB8+X1oB9RWtKR4h1tnZxtH/T33rvrB33RdC+5Hq TvQ/7ZHa2UTct3s3YLFEZ1ON5sfE2Cc53JIKpsdSSPI/Cv585zECX9lJtVE+Nbye80kD BoYMI8dWX8AEr2jmRO97n8zrhjnqUlqfw1630YhHBGG8RODpNEgyO5lEYaOY8UNPcNAg UX7WEazS0y7j5Sd8a1cjPRQGDxDWPWpZuwyRBTJEYYeIfHDKLVqtqV+k+o0rsCf7cdGx vBgw== X-Gm-Message-State: AOJu0Yx9CCd0CANOtMXiIEMwqcOqqWH01mrlxFSDXYMYMCd2tdnjqXZ6 kQPCbRA7Aohz0KrtGOl3Qrff20Vf96ZciRjyV21M724Kwb4nJgsvEhcdR0mt740SrkQ52Ht5AWu +hueqb+a41817nuhPcoKJJvVdX5F3BeXvrENTAMSac5+PHWH1Y2kq2x5xmnsCfrod8dmJTnAKsY c= X-Received: by 2002:a2e:b2d4:0:b0:2c5:19ea:b6ac with SMTP id 20-20020a2eb2d4000000b002c519eab6acmr2842191ljz.21.1697437905318; Sun, 15 Oct 2023 23:31:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGz6vF9qFSFNLaIHkjitheYt2SfBmp/5316YZYRGkto31nAklo/j1xnUSkl9UAt70cbvhQO1g== X-Received: by 2002:a2e:b2d4:0:b0:2c5:19ea:b6ac with SMTP id 20-20020a2eb2d4000000b002c519eab6acmr2842170ljz.21.1697437904773; Sun, 15 Oct 2023 23:31:44 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 08/17] configure, tests/tcg: simplify GDB conditionals Date: Mon, 16 Oct 2023 08:31:18 +0200 Message-ID: <20231016063127.161204-9-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231016063127.161204-1-pbonzini@redhat.com> References: <20231016063127.161204-1-pbonzini@redhat.com> MIME-Version: 1.0 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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697437930906100002 Content-Type: text/plain; charset="utf-8" Unify HAVE_GDB_BIN (currently in config-host.mak) and HOST_GDB_SUPPORTS_ARCH into a single GDB variable in config-target.mak. Signed-off-by: Paolo Bonzini Reviewed-by: Emmanouil Pitsidianakis --- configure | 30 +++++++++---------- meson.build | 4 +-- tests/tcg/aarch64/Makefile.target | 6 ++-- tests/tcg/multiarch/Makefile.target | 18 ++++------- .../multiarch/system/Makefile.softmmu-target | 15 ++++------ tests/tcg/s390x/Makefile.target | 6 ++-- 6 files changed, 33 insertions(+), 46 deletions(-) diff --git a/configure b/configure index 3da46ed202d..732220fdd45 100755 --- a/configure +++ b/configure @@ -1136,6 +1136,18 @@ if test "$tcg" =3D "auto"; then fi fi =20 +######################################### +# gdb test + +if test -n "$gdb_bin"; then + gdb_version=3D$($gdb_bin --version | head -n 1) + if version_ge ${gdb_version##* } 9.1; then + gdb_arches=3D$($python "$source_path/scripts/probe-gdb-support.py"= $gdb_bin) + else + gdb_bin=3D"" + fi +fi + ########################################## # big/little endian test cat > $TMPC << EOF @@ -1656,17 +1668,7 @@ fi =20 echo "SRC_PATH=3D$source_path" >> $config_host_mak echo "TARGET_DIRS=3D$target_list" >> $config_host_mak - -if test -n "$gdb_bin"; then - gdb_version=3D$($gdb_bin --version | head -n 1) - if version_ge ${gdb_version##* } 9.1; then - echo "HAVE_GDB_BIN=3D$gdb_bin" >> $config_host_mak - gdb_arches=3D$($python "$source_path/scripts/probe-gdb-support.py"= $gdb_bin) - else - gdb_bin=3D"" - fi -fi - +echo "GDB=3D$gdb_bin" >> $config_host_mak if test "$container" !=3D no; then echo "RUNC=3D$runc" >> $config_host_mak fi @@ -1711,10 +1713,6 @@ mkdir -p tests/tcg echo "# Automatically generated by configure - do not modify" > $config_ho= st_mak echo "SRC_PATH=3D$source_path" >> $config_host_mak =20 -# versioned checked in the main config_host.mak above -if test -n "$gdb_bin"; then - echo "HAVE_GDB_BIN=3D$gdb_bin" >> $config_host_mak -fi if test "$plugins" =3D "yes" ; then echo "CONFIG_PLUGIN=3Dy" >> $config_host_mak fi @@ -1751,7 +1749,7 @@ for target in $target_list; do =20 # will GDB work with these binaries? if test "${gdb_arches#*$arch}" !=3D "$gdb_arches"; then - echo "HOST_GDB_SUPPORTS_ARCH=3Dy" >> "$config_target_mak" + echo "GDB=3D$gdb_bin" >> $config_target_mak fi =20 echo "run-tcg-tests-$target: $qemu\$(EXESUF)" >> Makefile.prereqs diff --git a/meson.build b/meson.build index 251838f2609..87bb4e9243a 100644 --- a/meson.build +++ b/meson.build @@ -4021,8 +4021,8 @@ summary(summary_info, bool_yn: true, section: 'Direct= ories') summary_info =3D {} summary_info +=3D {'python': '@0@ (version: @1@)'.format(python= .full_path(), python.language_version())} summary_info +=3D {'sphinx-build': sphinx_build} -if config_host.has_key('HAVE_GDB_BIN') - summary_info +=3D {'gdb': config_host['HAVE_GDB_BIN']} +if config_host.has_key('GDB') + summary_info +=3D {'gdb': config_host['GDB']} endif summary_info +=3D {'iasl': iasl} summary_info +=3D {'genisoimage': config_host['GENISOIMAGE']} diff --git a/tests/tcg/aarch64/Makefile.target b/tests/tcg/aarch64/Makefile= .target index d01b8ff47c8..62b38c792fb 100644 --- a/tests/tcg/aarch64/Makefile.target +++ b/tests/tcg/aarch64/Makefile.target @@ -105,19 +105,19 @@ sha512-sve: sha512.c =20 TESTS +=3D sha512-sve =20 -ifeq ($(HOST_GDB_SUPPORTS_ARCH),y) +ifneq ($(GDB),) GDB_SCRIPT=3D$(SRC_PATH)/tests/guest-debug/run-test.py =20 run-gdbstub-sysregs: sysregs $(call run-test, $@, $(GDB_SCRIPT) \ - --gdb $(HAVE_GDB_BIN) \ + --gdb $(GDB) \ --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ --bin $< --test $(AARCH64_SRC)/gdbstub/test-sve.py, \ basic gdbstub SVE support) =20 run-gdbstub-sve-ioctls: sve-ioctls $(call run-test, $@, $(GDB_SCRIPT) \ - --gdb $(HAVE_GDB_BIN) \ + --gdb $(GDB) \ --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ --bin $< --test $(AARCH64_SRC)/gdbstub/test-sve-ioctl.py, \ basic gdbstub SVE ZLEN support) diff --git a/tests/tcg/multiarch/Makefile.target b/tests/tcg/multiarch/Make= file.target index 43bddeaf212..f3bfaf1a228 100644 --- a/tests/tcg/multiarch/Makefile.target +++ b/tests/tcg/multiarch/Makefile.target @@ -63,45 +63,39 @@ run-test-mmap: test-mmap run-test-mmap-%: test-mmap $(call run-test, test-mmap-$*, $(QEMU) -p $* $<, $< ($* byte pages)) =20 -ifneq ($(HAVE_GDB_BIN),) -ifeq ($(HOST_GDB_SUPPORTS_ARCH),y) +ifneq ($(GDB),) GDB_SCRIPT=3D$(SRC_PATH)/tests/guest-debug/run-test.py =20 run-gdbstub-sha1: sha1 $(call run-test, $@, $(GDB_SCRIPT) \ - --gdb $(HAVE_GDB_BIN) \ + --gdb $(GDB) \ --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ --bin $< --test $(MULTIARCH_SRC)/gdbstub/sha1.py, \ basic gdbstub support) =20 run-gdbstub-qxfer-auxv-read: sha1 $(call run-test, $@, $(GDB_SCRIPT) \ - --gdb $(HAVE_GDB_BIN) \ + --gdb $(GDB) \ --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ --bin $< --test $(MULTIARCH_SRC)/gdbstub/test-qxfer-auxv-read.py, \ basic gdbstub qXfer:auxv:read support) =20 run-gdbstub-proc-mappings: sha1 $(call run-test, $@, $(GDB_SCRIPT) \ - --gdb $(HAVE_GDB_BIN) \ + --gdb $(GDB) \ --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ --bin $< --test $(MULTIARCH_SRC)/gdbstub/test-proc-mappings.py, \ proc mappings support) =20 run-gdbstub-thread-breakpoint: testthread $(call run-test, $@, $(GDB_SCRIPT) \ - --gdb $(HAVE_GDB_BIN) \ + --gdb $(GDB) \ --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ --bin $< --test $(MULTIARCH_SRC)/gdbstub/test-thread-breakpoint.py, \ hitting a breakpoint on non-main thread) - else run-gdbstub-%: - $(call skip-test, "gdbstub test $*", "no guest arch support") -endif -else -run-gdbstub-%: - $(call skip-test, "gdbstub test $*", "need working gdb") + $(call skip-test, "gdbstub test $*", "need working gdb with $(patsubst -%= ,,$(TARGET_NAME)) support") endif EXTRA_RUNS +=3D run-gdbstub-sha1 run-gdbstub-qxfer-auxv-read \ run-gdbstub-proc-mappings run-gdbstub-thread-breakpoint diff --git a/tests/tcg/multiarch/system/Makefile.softmmu-target b/tests/tcg= /multiarch/system/Makefile.softmmu-target index 90810a32b2f..dee4f58dea1 100644 --- a/tests/tcg/multiarch/system/Makefile.softmmu-target +++ b/tests/tcg/multiarch/system/Makefile.softmmu-target @@ -14,13 +14,12 @@ VPATH+=3D$(MULTIARCH_SYSTEM_SRC) MULTIARCH_TEST_SRCS=3D$(wildcard $(MULTIARCH_SYSTEM_SRC)/*.c) MULTIARCH_TESTS =3D $(patsubst $(MULTIARCH_SYSTEM_SRC)/%.c, %, $(MULTIARCH= _TEST_SRCS)) =20 -ifneq ($(HAVE_GDB_BIN),) -ifeq ($(HOST_GDB_SUPPORTS_ARCH),y) +ifneq ($(GDB),) GDB_SCRIPT=3D$(SRC_PATH)/tests/guest-debug/run-test.py =20 run-gdbstub-memory: memory $(call run-test, $@, $(GDB_SCRIPT) \ - --gdb $(HAVE_GDB_BIN) \ + --gdb $(GDB) \ --qemu $(QEMU) \ --output $<.gdb.out \ --qargs \ @@ -29,7 +28,7 @@ run-gdbstub-memory: memory softmmu gdbstub support) run-gdbstub-interrupt: interrupt $(call run-test, $@, $(GDB_SCRIPT) \ - --gdb $(HAVE_GDB_BIN) \ + --gdb $(GDB) \ --qemu $(QEMU) \ --output $<.gdb.out \ --qargs \ @@ -38,7 +37,7 @@ run-gdbstub-interrupt: interrupt softmmu gdbstub support) run-gdbstub-untimely-packet: hello $(call run-test, $@, $(GDB_SCRIPT) \ - --gdb $(HAVE_GDB_BIN) \ + --gdb $(GDB) \ --gdb-args "-ex 'set debug remote 1'" \ --output untimely-packet.gdb.out \ --stderr untimely-packet.gdb.err \ @@ -51,11 +50,7 @@ run-gdbstub-untimely-packet: hello "GREP", file untimely-packet.gdb.err) else run-gdbstub-%: - $(call skip-test, "gdbstub test $*", "no guest arch support") -endif -else -run-gdbstub-%: - $(call skip-test, "gdbstub test $*", "need working gdb") + $(call skip-test, "gdbstub test $*", "need working gdb with $(patsubst -%= ,,$(TARGET_NAME)) support") endif =20 MULTIARCH_RUNS +=3D run-gdbstub-memory run-gdbstub-interrupt run-gdbstub-u= ntimely-packet diff --git a/tests/tcg/s390x/Makefile.target b/tests/tcg/s390x/Makefile.tar= get index c650aefe5c1..826f0a18e43 100644 --- a/tests/tcg/s390x/Makefile.target +++ b/tests/tcg/s390x/Makefile.target @@ -81,12 +81,12 @@ $(Z15_TESTS): CFLAGS+=3D-march=3Dz15 -O2 TESTS+=3D$(Z15_TESTS) endif =20 -ifeq ($(HOST_GDB_SUPPORTS_ARCH),y) +ifneq ($(GDB),) GDB_SCRIPT=3D$(SRC_PATH)/tests/guest-debug/run-test.py =20 run-gdbstub-signals-s390x: signals-s390x $(call run-test, $@, $(GDB_SCRIPT) \ - --gdb $(HAVE_GDB_BIN) \ + --gdb $(GDB) \ --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ --bin $< --test $(S390X_SRC)/gdbstub/test-signals-s390x.py, \ mixing signals and debugging) @@ -95,7 +95,7 @@ hello-s390x-asm: CFLAGS+=3D-nostdlib =20 run-gdbstub-svc: hello-s390x-asm $(call run-test, $@, $(GDB_SCRIPT) \ - --gdb $(HAVE_GDB_BIN) \ + --gdb $(GDB) \ --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ --bin $< --test $(S390X_SRC)/gdbstub/test-svc.py, \ single-stepping svc) --=20 2.41.0 From nobody Wed Nov 27 17:51:56 2024 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1697438037; cv=none; d=zohomail.com; s=zohoarc; b=IhGL+ThWuyqaXRoi+7OU2yignQpk9P6iuX5x+RBKP4A/GuHjbZU47gfu77M6kpLFq4bOSYLmG6BuUcH6LCUh/TlZG6+bIxg4XR0QBG4PGwYUBt2z+QmuV+CBtsmt4swEV7EGGYgHKPkDRcxQbfR8eYI+WRnI20dW3QjB1vOJKpM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697438037; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=QEBhg/nis2v2E6TOtez7OB+wequT7+FUk6KnJtqVqLQ=; b=hFIHOikVA1rFeRXaPTNpIbWpCveJEGm8g3CDh7peKrFOcak7petFzPHW0i7fOQYnC54RMwnrOMvS5Kj6aaMyN4wgufaHJlPqwOaI+MbOL6xm5d1p/IVuoCEZX7WXHMIG8cE7sjCIHoOvBCWSvxrQws73AejsJmlbevMtDKgCzKU= 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 1697438037638743.6331475555897; Sun, 15 Oct 2023 23:33:57 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsH8z-00041K-JO; Mon, 16 Oct 2023 02:32:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8x-000405-IK for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:59 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8u-0005TD-Va for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:59 -0400 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-462-20BsEUevO1eosAyHqBxjrA-1; Mon, 16 Oct 2023 02:31:48 -0400 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-9bf8678af70so79786566b.2 for ; Sun, 15 Oct 2023 23:31:48 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id jz28-20020a17090775fc00b009b29553b648sm3285597ejc.206.2023.10.15.23.31.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 23:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697437916; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QEBhg/nis2v2E6TOtez7OB+wequT7+FUk6KnJtqVqLQ=; b=XBIIPSh2p7wHw/8KxUKuNtEwuOmcCUbUSMDoXuoR1awGxbcBRUS3QOfhe//2i4tpTv2q5/ v9+4EaMvOj56dDDNo5WIftjc0Zmany4JvSg78WXTDjh7IYlvRiQqdXBXRFUzoavYUBWyJG xc5+oKqfF+3Sudbm+oLgWG6DuwItO2A= X-MC-Unique: 20BsEUevO1eosAyHqBxjrA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697437907; x=1698042707; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QEBhg/nis2v2E6TOtez7OB+wequT7+FUk6KnJtqVqLQ=; b=r0d7YNi2/GwbOPLbe/AGcV55jghIJNOXteqUafLwgHE4aZrz2Ro40gITaiRo1JhSwm J2m049HdJbrxzyTUMdDiHcdErPXEFiD1NPMsJSwt7HGrtUne2K5zxVFZ1ObydUbfP18s jZxX2YhcMSYomJCtJSYvVdvp9GRKF+1GvMq/LfNtVWex/DRHTF/2QoydFcDsbFHpFH7T SKiUaprvXbZoHKZv6cTbDeIZCGePnloljKX3e1QBHTg2PpssQIt89HeG8TV3KTjKo1Ma WO7PREWndrDGg2fDdxieG+i8zKIfbNEOfWIRJculfo5+9pGZJu2e3Q/UDlaU9N32haEC 7RBA== X-Gm-Message-State: AOJu0YwObkRu6hBnCDY3Rlv5Vl+FFfqMoM/Ir+3OOsVGMmn3jEGrZQ0Y 6tRBEqDbXEBG+YW/xNSvki/fz5zuJOkKS3UbPB1ym+sA/b/Nsa7sGUyCL6moKc/uCwpGUJDWGda fA6rh7tUccwhV0EFYm5q+8LUUQETv+VZm07eHwc/UTDPhPWzwWbLJ8aT+LZPVaMP6FYXidunFAa E= X-Received: by 2002:a17:906:1092:b0:9bd:8cfd:e588 with SMTP id u18-20020a170906109200b009bd8cfde588mr9430116eju.27.1697437907116; Sun, 15 Oct 2023 23:31:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG8iKsTJyQLe9NFzfJuJFc04u+LWkH7wByxPCpsdCjH86lkpHt8yWbA1G7Jd7O3KRQAVN8/8w== X-Received: by 2002:a17:906:1092:b0:9bd:8cfd:e588 with SMTP id u18-20020a170906109200b009bd8cfde588mr9430104eju.27.1697437906806; Sun, 15 Oct 2023 23:31:46 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 09/17] configure: clean up plugin option handling Date: Mon, 16 Oct 2023 08:31:19 +0200 Message-ID: <20231016063127.161204-10-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231016063127.161204-1-pbonzini@redhat.com> References: <20231016063127.161204-1-pbonzini@redhat.com> MIME-Version: 1.0 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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697438039382100019 Content-Type: text/plain; charset="utf-8" Keep together all the conditions that lead to disabling plugins, and remove now-dead code. Since the option was not in SKIP_OPTIONS, it was present twice in the help message, both from configure and from meson-buildoptions.sh. Remove the duplication and take the occasion to document the option as autodetected, which it is. Signed-off-by: Paolo Bonzini --- configure | 39 +++++++++++++++-------------------- scripts/meson-buildoptions.py | 17 ++++++++++----- scripts/meson-buildoptions.sh | 2 +- 3 files changed, 30 insertions(+), 28 deletions(-) diff --git a/configure b/configure index 732220fdd45..7dad78f329b 100755 --- a/configure +++ b/configure @@ -377,7 +377,6 @@ fi =20 case $targetos in windows) - plugins=3D"no" pie=3D"no" ;; haiku) @@ -737,7 +736,6 @@ for opt do default_cflags=3D'-O0 -g' ;; --disable-tcg) tcg=3D"disabled" - plugins=3D"no" ;; --enable-tcg) tcg=3D"enabled" ;; @@ -774,11 +772,7 @@ for opt do ;; --enable-download) download=3D"enabled"; git_submodules_action=3Dupdate; ;; - --enable-plugins) if test "$targetos" =3D "windows"; then - error_exit "TCG plugins not currently supported on= Windows platforms" - else - plugins=3D"yes" - fi + --enable-plugins) plugins=3D"yes" ;; --disable-plugins) plugins=3D"no" ;; @@ -804,11 +798,6 @@ then git_submodules_action=3D"validate" fi =20 -# test for any invalid configuration combinations -if test "$plugins" =3D "yes" -a "$tcg" =3D "disabled"; then - error_exit "Can't enable plugins on non-TCG builds" -fi - if ! test -f "$source_path/subprojects/keycodemapdb/README" \ && test "$download" =3D disabled then @@ -919,8 +908,6 @@ Advanced options (experts only): --enable-debug enable common debug build options --disable-werror disable compilation abort on warning --cpu=3DCPU Build for host CPU [$cpu] - --enable-plugins - enable plugins via shared library loading --disable-containers don't use containers for cross-building --container-engine=3DTYPE which container engine to use [$container_eng= ine] --gdb=3DGDB-path gdb to use for gdbstub tests [$gdb_bin] @@ -1062,15 +1049,27 @@ if test "$targetos" =3D "bogus"; then error_exit "Unrecognized host OS (uname -s reports '$(uname -s)')" fi =20 +# test for any invalid configuration combinations +if test "$targetos" =3D "windows"; then + if test "$plugins" =3D "yes"; then + error_exit "TCG plugins not currently supported on Windows platforms" + fi + plugins=3D"no" +fi +if test "$tcg" =3D "disabled" ; then + if test "$plugins" =3D "yes"; then + error_exit "Can't enable plugins on non-TCG builds" + fi + plugins=3D"no" +fi if test "$static" =3D "yes" ; then if test "$plugins" =3D "yes"; then error_exit "static and plugins are mutually incompatible" - else - plugins=3D"no" fi + plugins=3D"no" fi -test "$plugins" =3D "" && plugins=3Dyes -if test "$plugins" =3D "yes"; then +if test "$plugins" !=3D "no"; then + plugins=3Dyes subdirs=3D"$subdirs contrib/plugins" fi =20 @@ -1713,10 +1712,6 @@ mkdir -p tests/tcg echo "# Automatically generated by configure - do not modify" > $config_ho= st_mak echo "SRC_PATH=3D$source_path" >> $config_host_mak =20 -if test "$plugins" =3D "yes" ; then - echo "CONFIG_PLUGIN=3Dy" >> $config_host_mak -fi - tcg_tests_targets=3D for target in $target_list; do arch=3D${target%%-*} diff --git a/scripts/meson-buildoptions.py b/scripts/meson-buildoptions.py index 8d2e526132a..b787c84e914 100644 --- a/scripts/meson-buildoptions.py +++ b/scripts/meson-buildoptions.py @@ -44,6 +44,11 @@ "trace_file": "with-trace-file", } =20 +# Options that configure autodetects, even though meson defines them as bo= olean +AUTO_OPTIONS =3D { + "plugins", +} + BUILTIN_OPTIONS =3D { "b_coverage", "b_lto", @@ -168,6 +173,7 @@ def cli_metavar(opt): =20 def print_help(options): print("meson_options_help() {") + feature_opts =3D [] for opt in sorted(options, key=3Dcli_help_key): key =3D cli_help_key(opt) # The first section includes options that have an arguments, @@ -176,7 +182,7 @@ def print_help(options): metavar =3D cli_metavar(opt) left =3D f"--{key}=3D{metavar}" help_line(left, opt, 27, True) - elif opt["type"] =3D=3D "boolean": + elif opt["type"] =3D=3D "boolean" and opt["name"] not in AUTO_OPTI= ONS: left =3D f"--{key}" help_line(left, opt, 27, False) elif allow_arg(opt): @@ -185,16 +191,17 @@ def print_help(options): else: left =3D f"--{key}=3DCHOICE" help_line(left, opt, 27, True) + else: + feature_opts.append(opt) =20 sh_print() sh_print("Optional features, enabled with --enable-FEATURE and") sh_print("disabled with --disable-FEATURE, default is enabled if avail= able") sh_print("(unless built with --without-default-features):") sh_print() - for opt in options: - key =3D opt["name"].replace("_", "-") - if opt["type"] !=3D "boolean" and not allow_arg(opt): - help_line(key, opt, 18, False) + for opt in sorted(feature_opts, key=3Dcli_option): + key =3D cli_option(opt) + help_line(key, opt, 18, False) print("}") =20 =20 diff --git a/scripts/meson-buildoptions.sh b/scripts/meson-buildoptions.sh index d4b89e6b443..22d69966606 100644 --- a/scripts/meson-buildoptions.sh +++ b/scripts/meson-buildoptions.sh @@ -40,7 +40,6 @@ meson_options_help() { printf "%s\n" ' jemalloc/system/tcmalloc)' printf "%s\n" ' --enable-module-upgrades try to load modules from alter= nate paths for' printf "%s\n" ' upgrades' - printf "%s\n" ' --enable-plugins TCG plugins via shared library= loading' printf "%s\n" ' --enable-rng-none dummy RNG, avoid using /dev/(u= )random and' printf "%s\n" ' getrandom()' printf "%s\n" ' --enable-safe-stack SafeStack Stack Smash Protecti= on (requires' @@ -149,6 +148,7 @@ meson_options_help() { printf "%s\n" ' pa PulseAudio sound support' printf "%s\n" ' parallels parallels image format support' printf "%s\n" ' pipewire PipeWire sound support' + printf "%s\n" ' plugins TCG plugins via shared library loading' printf "%s\n" ' png PNG support with libpng' printf "%s\n" ' pvrdma Enable PVRDMA support' printf "%s\n" ' qcow1 qcow1 image format support' --=20 2.41.0 From nobody Wed Nov 27 17:51:56 2024 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1697438046; cv=none; d=zohomail.com; s=zohoarc; b=lWpYqmzqgDqJjiWBoPMlhdemQJGZ3r4Mrfi64YBf+hrNlPV2JyxuYlT/fEV85badf3Q7yDLp780JybZreq1zAjS5jclhGoHYxlp7iVAHe0LfWcjzv8wvGb5PxfESNTxlRjay145z+izydhbu/6RjavdkqimTMCNP7bmZfYyxo8g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697438046; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=igE3z/qNeoB/rMwL7Qq+v4/CnSK2ZONLhR6t8IlRdAw=; b=GowU63k4ZltFfr+sM4XMsUn/ahfbGljx8NJ+7r3VrIvYcEKD2N6HNvfgAK37uwV1gtC/QHkLp3HJJUh/tFkbvPwCXulvhM/7Vqen+oL/EHHKtOSBYlInYDgwbZ9zVurpB9HLKC9Go7SiP1YoB+q9Tr4IFTPwpeB0oH7+ItMxz4g= 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 1697438046758492.9649729453115; Sun, 15 Oct 2023 23:34:06 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsH8w-0003zV-DC; Mon, 16 Oct 2023 02:31:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8u-0003yi-Ur for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:56 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8t-0005T3-FD for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:56 -0400 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-518-2RmlmJIuOAmJhh6BlB_NDQ-1; Mon, 16 Oct 2023 02:31:50 -0400 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-9a5d86705e4so295060766b.1 for ; Sun, 15 Oct 2023 23:31:50 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id rh9-20020a17090720e900b009ae54585aebsm3345161ejb.89.2023.10.15.23.31.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 23:31:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697437914; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=igE3z/qNeoB/rMwL7Qq+v4/CnSK2ZONLhR6t8IlRdAw=; b=Ci5+aga/2ywCtxk5PrSjvB2nT/mTJurs5tY6/ICU4fZ3VPaLA5tgU2ptLqkfdLmITIqqk/ IA7TF4Pqr8tn/hsdfECIwRNl5cvFcVnCWbGzRXwhBCtArl5RLmlIkTvhT2uGyTbCVCncW4 pKElQas4MH5pNp8961yagR+cq0UV9pY= X-MC-Unique: 2RmlmJIuOAmJhh6BlB_NDQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697437909; x=1698042709; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=igE3z/qNeoB/rMwL7Qq+v4/CnSK2ZONLhR6t8IlRdAw=; b=oIJmK0c/nWQbx4pJjBz6bICYVbbCLePsVsreBE0pxogHk+N+hvfqAAfnegHgC51Jms gfMBL8AatCdGi3Ft5CN/FMtL2t16D26dxaMmcBzo/MT7O3EKHZ7PkSwF8UL0mP9JKJG2 bOYokDePCROChMzoX1gNzOtSWrFHXkuRoVLXQFsJg5kMocHkbPJ3AmKI9B9kqDBJcXa6 M999ql51kRLSQ51NYKBCDkybQs+ug8fdWM2PVtHhMNop/LQuVPF8bj9Tnmie62DFd8ml DsAa6ZjxbQWF3JvfU7/nheiQexSTmlWnsEwP92FbcjFo6es41K2Z/pzKdtirvQhQ7i7Z zPXg== X-Gm-Message-State: AOJu0YzA79CMPhQKxnilZXTLKqdqkHolAH66X9keKJYeZIMCtFQ5fZdp ydhqW4hqUxL0brA4enn8zVzbvjSM1eP/KQISFsBF9bM3iMfbYobGbFlTK3G6F8+XKN+QXC9njKJ 1Xm93B99WxO59MXP7wMEhOhfBcDwefdQrZbDInXytHI22dk9H/Qpe7/i2khSglMPjSgYcP1ZyHm g= X-Received: by 2002:a17:906:3cb2:b0:9ba:65e:7529 with SMTP id b18-20020a1709063cb200b009ba065e7529mr18822091ejh.68.1697437908848; Sun, 15 Oct 2023 23:31:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHk0RWCTY/BLOTlvzBGAel54+I+OIWV2SKIJVrhrQ0XNqFwqkSJgt8000QHkbeaplVg9GCuNQ== X-Received: by 2002:a17:906:3cb2:b0:9ba:65e:7529 with SMTP id b18-20020a1709063cb200b009ba065e7529mr18822079ejh.68.1697437908521; Sun, 15 Oct 2023 23:31:48 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 10/17] configure: clean up PIE option handling Date: Mon, 16 Oct 2023 08:31:20 +0200 Message-ID: <20231016063127.161204-11-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231016063127.161204-1-pbonzini@redhat.com> References: <20231016063127.161204-1-pbonzini@redhat.com> MIME-Version: 1.0 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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697438047370100001 Content-Type: text/plain; charset="utf-8" Keep together all the conditions that lead to disabling PIE. Signed-off-by: Paolo Bonzini --- configure | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/configure b/configure index 7dad78f329b..a713493e9e2 100755 --- a/configure +++ b/configure @@ -373,17 +373,6 @@ else targetos=3Dbogus fi =20 -# OS specific - -case $targetos in -windows) - pie=3D"no" -;; -haiku) - pie=3D"no" -;; -esac - if test ! -z "$cpu" ; then # command line argument : @@ -1084,19 +1073,23 @@ static THREAD int tls_var; int main(void) { return tls_var; } EOF =20 -if test "$static" =3D "yes"; then - if test "$pie" !=3D "no" && compile_prog "-Werror -fPIE -DPIE" "-static-= pie"; then +if test "$targetos" =3D windows || test "$targetos" =3D haiku; then + if test "$pie" =3D "yes"; then + error_exit "PIE not available due to missing OS support" + fi + pie=3Dno +fi + +if test "$pie" !=3D "no"; then + if test "$static" =3D "yes"; then + pie_ldflags=3D-static-pie + else + pie_ldflags=3D-pie + fi + if compile_prog "-Werror -fPIE -DPIE" "$pie_ldflags"; then pie=3D"yes" elif test "$pie" =3D "yes"; then error_exit "-static-pie not available due to missing toolchain support" - else - pie=3D"no" - fi -elif test "$pie" !=3D "no"; then - if compile_prog "-Werror -fPIE -DPIE" "-pie"; then - pie=3D"yes" - elif test "$pie" =3D "yes"; then - error_exit "PIE not available due to missing toolchain support" else echo "Disabling PIE due to missing toolchain support" pie=3D"no" --=20 2.41.0 From nobody Wed Nov 27 17:51:56 2024 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1697438055; cv=none; d=zohomail.com; s=zohoarc; b=iNWcsGlPDk3sF7CxCAb6bAr0jNnN6NZGGWqwWxf6r4CsXaCtQ6gYWX/zaZbeXwvDivxvRkC0bLOa09NtEsCDtNq/ho7Uq+oZ2Xp95g0bw9cUA6xgbsKaiRveIPlqOXt3a7BwMyHV0b/h6jr3AxGUMJa/NItUQoOhTX4yBdiQA3I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697438055; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=+xiOvaSzl8o1kGTHwVfCqOfceYz2MAK3SLhuAOzF+c4=; b=Qhr/0ZlLHf5eB6SHMTTZzPKkzaGdDJ2c/SEYcaBfI5O46LY+bp87FD91TRwuDi7urV0BiyHioSSLr8nJQYDPhD5JNCoVxQ8QRK5FgHUL9xR+kMAd55O9KUFl/dkHQ4H54YP+LPevFqoE/TyvV0fDF4mcSPXVNJ9T9JTpblCW+7w= 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 1697438055698488.6658039723684; Sun, 15 Oct 2023 23:34:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsH8y-00040U-VT; Mon, 16 Oct 2023 02:32:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8w-0003zN-7H for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:58 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8u-0005T9-Qu for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:57 -0400 Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-213-oHvnGE0AMvucCql0-RjFKQ-1; Mon, 16 Oct 2023 02:31:53 -0400 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-9ae686dafedso294018266b.3 for ; Sun, 15 Oct 2023 23:31:52 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id l1-20020a170906078100b009928b4e3b9fsm3386493ejc.114.2023.10.15.23.31.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 23:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697437915; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+xiOvaSzl8o1kGTHwVfCqOfceYz2MAK3SLhuAOzF+c4=; b=AAIBqnEpUpvf0SI5vxvoZzrQcrMOor9VPjMenkiLqA2bMyqS+571t6QBduGLEYn9yEwsN6 Lvjq4CNt9g1IlaGEmoSvgLfeksVa2+o50OA57PVkn+TMofnctIM+9dWS6ECCZsynaaRAFw yUifb98/dzaUrtKE0c4sHHhAc88wzVs= X-MC-Unique: oHvnGE0AMvucCql0-RjFKQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697437911; x=1698042711; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+xiOvaSzl8o1kGTHwVfCqOfceYz2MAK3SLhuAOzF+c4=; b=MBHFmrNLdiGhgIUMF7aY+uUhKUC1fOvs4Qhnn2wZgIf1z9u7lOdQCAI6uj6E9PifM4 125uBGYcm2a99E55bv+0oL4+8RYw6HhwSWDmPb8hpO8l3xhca/XTd8u8yEXeob5JLgK8 rPyLYuXGGgyGwnHGOpuXKWMKPbmlbWjtzOcsEZZmIF+DKrWg4rTphFrHvwu6EaKlMfR2 BHF7tyot1gt6uPNlmjoGz12EkxXGXBixoa030RZm4CvI1bhHx/l6zsaFFkiHu0lOVF6C 5FhpKwAFZhFRf2Lpo4R1vs1IFqeIyDmh5a8qgro8R/DZu4E6xBEekeOXj3/PTVi7wedL ww+Q== X-Gm-Message-State: AOJu0Ywm9tPmc6Ki4JCH9c3okwlWKj5jfjb43PdlFDCkzWDVg2tRDxjF oPF+fEYi5CNGLvXEpRVO2QdslkwgVVgZhupOyIOsXKadolLloZb2RauQGaplRMLSC9SFdycEicL whQRLLibkxQULvO2nbWQjQu0hwJToFtt5/eHGiautsp9TBs1ziQEa5gYI2g7z7Hg5PfDQ+7APYr E= X-Received: by 2002:a17:906:ef04:b0:9be:b12:1423 with SMTP id f4-20020a170906ef0400b009be0b121423mr6485171ejs.44.1697437911595; Sun, 15 Oct 2023 23:31:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4WsH4oqpVyVEszql1pDDrDZU+oYyYtk3oea8CCNQckqb7DKPoa100cbkj2BIZCbLqVyZEbQ== X-Received: by 2002:a17:906:ef04:b0:9be:b12:1423 with SMTP id f4-20020a170906ef0400b009be0b121423mr6485159ejs.44.1697437911278; Sun, 15 Oct 2023 23:31:51 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 11/17] configure: remove some dead cruft Date: Mon, 16 Oct 2023 08:31:21 +0200 Message-ID: <20231016063127.161204-12-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231016063127.161204-1-pbonzini@redhat.com> References: <20231016063127.161204-1-pbonzini@redhat.com> MIME-Version: 1.0 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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697438057444100006 Content-Type: text/plain; charset="utf-8" print_error is only invoked in one place, and $git is unused. Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth --- configure | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/configure b/configure index a713493e9e2..211591911cc 100755 --- a/configure +++ b/configure @@ -94,7 +94,7 @@ quote_sh() { printf "%s" "$1" | sed "s,','\\\\'',g; s,.*,'&'," } =20 -print_error() { +error_exit() { (echo echo "ERROR: $1" while test -n "$2"; do @@ -102,10 +102,6 @@ print_error() { shift done echo) >&2 -} - -error_exit() { - print_error "$@" exit 1 } =20 @@ -248,7 +244,6 @@ done =20 default_cflags=3D'-O2 -g' git_submodules_action=3D"update" -git=3D"git" docs=3D"auto" EXESUF=3D"" prefix=3D"/usr/local" --=20 2.41.0 From nobody Wed Nov 27 17:51:56 2024 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1697438049; cv=none; d=zohomail.com; s=zohoarc; b=LzSkCUV/XKxs7/G1L4LUaZc7AEI/JAf+cYn87bM6O9RYYE3r0FO9pXMrwgDs9OdL5QVpNGz+cLOCONKBI8r1yMLzbE6eJngoA1n2wF46GGpKXxuDgM/UCpEHt5sEg2zWIOQD6D1gbMrNdgjDTkTvTZHHQqQ0TjECKTvJT/v7L/Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697438049; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=REi6HQck2TUeMpOKRqPBSFfgxuGcZSMdyfYk1mhVlOw=; b=i9HThgB9KxfPG6+vikGQJCl+TofKM2Z3ic+uQMwPuIpf6XYuqocUsFOBW4+GrpCN0Bj6I8MujcZZj5A16Mbo97LbC/OQoGBvCr+4QEVkWV2n2tkP3ZFtGru7PpSfYKgkDmhckVuQnPbFKJ/u7owLXAKayOZ9C88a4ceVCYpy5xk= 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 1697438049316265.7650190236918; Sun, 15 Oct 2023 23:34:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsH91-000420-SJ; Mon, 16 Oct 2023 02:32:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8x-00040D-SN for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:59 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH8v-0005TN-K7 for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:31:59 -0400 Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-103-_ltPE-YoMEOEK5ubLWAVzw-1; Mon, 16 Oct 2023 02:31:54 -0400 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-9bd91ce3033so260201166b.0 for ; Sun, 15 Oct 2023 23:31:54 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id my13-20020a1709065a4d00b0099bc8bd9066sm3357257ejc.150.2023.10.15.23.31.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 23:31:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697437916; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=REi6HQck2TUeMpOKRqPBSFfgxuGcZSMdyfYk1mhVlOw=; b=LKG3IhPCDDK7wWIqTiygEYw7+0ZjUQraapS/99j26aH9ipNQiiw8mm/wzHBYqhfk3IiLFz 7eeBI/C4cBsVh5cit4wxC8HhbEY2mk9i+eCKLl7DI2XRVBrka8ccZJOOUWdp1jYkTYRmm4 Og/VA54NNVtJsuFdNZDvGzJ/CJsKQ6s= X-MC-Unique: _ltPE-YoMEOEK5ubLWAVzw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697437913; x=1698042713; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=REi6HQck2TUeMpOKRqPBSFfgxuGcZSMdyfYk1mhVlOw=; b=dOQfjhSdjhc1Vy3Te6ubMhSSJhmDpAQ6Fxiel+Q2GCaVschLqDY2OZLrNrr23kP6mA Lxw/DVS+xnyLX9EY1zIziYak8GEv3GnI5WOp0lWV7ftjwb+1U6uA10W7Cwu2TlU2u43b Q+olEOm6tvySUESkfOIisomw+TlaA8kmsSTuyBkztfZSaZ83Fav2Ab8C14CrBDBXpYBE F1lUYI5WLLSw7MpmSV8jOg0NltXCL0OPFBn70/hEEdjQDT9mmjIqWtjKRcy0n/tis+vL EgrzxTELdxF38TcPp4v5n6TorstciDnPAMyJDKo2iQEr+qphJfM2cPe6vD/+q3QJeR3l LguQ== X-Gm-Message-State: AOJu0YwylLv6VNKyjsWlms+DmCECafbmjXAFxn1/0owqRmZf159YYtbw Ql9J20GCImde7DaLdHEjLz66cgH2G9X7qm48JGSeycAcXGKCYrwp0ZN51L93aUbs5nE9gbAn6+r I72hVcc7oJEWlLYtQoPNxNOQMR5oU9cmvD0hzNVPevniiu0XDRxyrqwWyhTt+S1e3fA/vSxBryJ k= X-Received: by 2002:a17:907:2d27:b0:9bf:4e0b:fb05 with SMTP id gs39-20020a1709072d2700b009bf4e0bfb05mr4523007ejc.11.1697437913270; Sun, 15 Oct 2023 23:31:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFcDow/BUKnhkxTQsIFGZvQUTLpZD7QCkWFa0Qisc7Cw7H63N0Zr0bBN9+e1Ze3irNV7bGMQw== X-Received: by 2002:a17:907:2d27:b0:9bf:4e0b:fb05 with SMTP id gs39-20020a1709072d2700b009bf4e0bfb05mr4522985ejc.11.1697437912859; Sun, 15 Oct 2023 23:31:52 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 12/17] configure: move target-specific defaults to an external machine file Date: Mon, 16 Oct 2023 08:31:22 +0200 Message-ID: <20231016063127.161204-13-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231016063127.161204-1-pbonzini@redhat.com> References: <20231016063127.161204-1-pbonzini@redhat.com> MIME-Version: 1.0 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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697438051455100011 Content-Type: text/plain; charset="utf-8" Enable Windows-specific defaults with a machine file, so that related options can be automatically parsed and included in the help message. Signed-off-by: Paolo Bonzini --- configs/meson/windows.txt | 9 +++++++++ configure | 38 +++++++++++++++-------------------- scripts/meson-buildoptions.py | 4 +++- scripts/meson-buildoptions.sh | 7 +++++++ 4 files changed, 35 insertions(+), 23 deletions(-) create mode 100644 configs/meson/windows.txt diff --git a/configs/meson/windows.txt b/configs/meson/windows.txt new file mode 100644 index 00000000000..55b192e71b1 --- /dev/null +++ b/configs/meson/windows.txt @@ -0,0 +1,9 @@ +# target-specific defaults, can still be overridden on +# the command line + +[built-in options] +bindir =3D '' +prefix =3D '/qemu' + +[project options] +qemu_suffix =3D '' diff --git a/configure b/configure index 211591911cc..e6787dc4111 100755 --- a/configure +++ b/configure @@ -246,8 +246,6 @@ default_cflags=3D'-O2 -g' git_submodules_action=3D"update" docs=3D"auto" EXESUF=3D"" -prefix=3D"/usr/local" -qemu_suffix=3D"qemu" system=3D"yes" linux_user=3D"" bsd_user=3D"" @@ -256,7 +254,6 @@ subdirs=3D"" ninja=3D"" python=3D download=3D"enabled" -bindir=3D"bin" skip_meson=3Dno use_containers=3D"yes" gdb_bin=3D$(command -v "gdb-multiarch" || command -v "gdb") @@ -582,9 +579,6 @@ done =20 if test "$targetos" =3D "windows" ; then EXESUF=3D".exe" - prefix=3D"/qemu" - bindir=3D"" - qemu_suffix=3D"" fi =20 meson_option_build_array() { @@ -618,6 +612,15 @@ meson_option_parse() { fi } =20 +meson_add_machine_file() { + if test "$cross_compile" =3D "yes"; then + meson_option_add --cross-file + else + meson_option_add --native-file + fi + meson_option_add "$1" +} + for opt do optarg=3D$(expr "x$opt" : 'x[^=3D]*=3D\(.*\)') case "$opt" in @@ -625,8 +628,6 @@ for opt do ;; --version|-V) exec cat "$source_path/VERSION" ;; - --prefix=3D*) prefix=3D"$optarg" - ;; --cross-prefix=3D*) ;; --cc=3D*) @@ -697,10 +698,6 @@ for opt do ;; --static) static=3D"yes" ;; - --bindir=3D*) bindir=3D"$optarg" - ;; - --with-suffix=3D*) qemu_suffix=3D"$optarg" - ;; --host=3D*|--build=3D*|\ --disable-dependency-tracking|\ --sbindir=3D*|--sharedstatedir=3D*|\ @@ -857,7 +854,6 @@ Options: [defaults in brackets after descriptions] =20 Standard options: --help print this message - --prefix=3DPREFIX install in PREFIX [$prefix] --target-list=3DLIST set target list (default: build all) $(echo Available targets: $default_target_list | \ fold -s -w 53 | sed -e 's/^/ /') @@ -882,8 +878,6 @@ Advanced options (experts only): --ninja=3DNINJA use specified ninja [$ninja] --smbd=3DSMBD use specified smbd [$smbd] --static enable static build [$static] - --bindir=3DPATH install binaries in PATH - --with-suffix=3DSUFFIX suffix for QEMU data inside datadir/libdir/sy= sconfdir/docdir [$qemu_suffix] --without-default-features default all --enable-* options to "disabled" --without-default-devices do not include any device that is not needed = to start the emulator (only use if you are includi= ng @@ -1799,24 +1793,25 @@ if test "$skip_meson" =3D no; then else echo "endian =3D 'little'" >> $cross fi - cross_arg=3D"--cross-file config-meson.cross" =20 native=3D"config-meson.native.new" echo "# Automatically generated by configure - do not modify" > $native echo "[binaries]" >> $native echo "c =3D [$(meson_quote $host_cc)]" >> $native mv $native config-meson.native - cross_arg=3D"$cross_arg --native-file config-meson.native" - else - cross_arg=3D"--native-file config-meson.cross" + meson_option_add --native-file + meson_option_add config-meson.native fi mv $cross config-meson.cross + meson_add_machine_file config-meson.cross + if test -f "$source_path/configs/meson/$targetos.txt"; then + meson_add_machine_file $source_path/configs/meson/$targetos.txt + fi =20 rm -rf meson-private meson-info meson-logs =20 # Built-in options test "$download" =3D "disabled" && meson_option_add "--wrap-mode=3Dnodow= nload" - test "$bindir" !=3D "bin" && meson_option_add "-Dbindir=3D$bindir" test "$default_feature" =3D no && meson_option_add -Dauto_features=3Ddis= abled test "$static" =3D yes && meson_option_add -Dprefer_static=3Dtrue test "$pie" =3D no && meson_option_add -Db_pie=3Dfalse @@ -1828,11 +1823,10 @@ if test "$skip_meson" =3D no; then test "$docs" !=3D auto && meson_option_add "-Ddocs=3D$docs" test -n "${LIB_FUZZING_ENGINE+xxx}" && meson_option_add "-Dfuzzing_engin= e=3D$LIB_FUZZING_ENGINE" test "$plugins" =3D yes && meson_option_add "-Dplugins=3Dtrue" - test "$qemu_suffix" !=3D qemu && meson_option_add "-Dqemu_suffix=3D$qemu= _suffix" test "$smbd" !=3D '' && meson_option_add "-Dsmbd=3D$smbd" test "$tcg" !=3D enabled && meson_option_add "-Dtcg=3D$tcg" run_meson() { - NINJA=3D$ninja $meson setup --prefix "$prefix" "$@" $cross_arg "$PWD" = "$source_path" + NINJA=3D$ninja $meson setup "$@" "$PWD" "$source_path" } eval run_meson $meson_options if test "$?" -ne 0 ; then diff --git a/scripts/meson-buildoptions.py b/scripts/meson-buildoptions.py index b787c84e914..0c24bdc1e8c 100644 --- a/scripts/meson-buildoptions.py +++ b/scripts/meson-buildoptions.py @@ -28,7 +28,6 @@ SKIP_OPTIONS =3D { "default_devices", "fuzzing_engine", - "qemu_suffix", "smbd", } =20 @@ -40,6 +39,7 @@ "malloc": "enable-malloc", "pkgversion": "with-pkgversion", "qemu_firmwarepath": "firmwarepath", + "qemu_suffix": "with-suffix", "trace_backends": "enable-trace-backends", "trace_file": "with-trace-file", } @@ -52,6 +52,7 @@ BUILTIN_OPTIONS =3D { "b_coverage", "b_lto", + "bindir", "datadir", "debug", "includedir", @@ -60,6 +61,7 @@ "localedir", "localstatedir", "mandir", + "prefix", "strip", "sysconfdir", } diff --git a/scripts/meson-buildoptions.sh b/scripts/meson-buildoptions.sh index 22d69966606..e1522030619 100644 --- a/scripts/meson-buildoptions.sh +++ b/scripts/meson-buildoptions.sh @@ -3,6 +3,7 @@ meson_options_help() { printf "%s\n" ' --audio-drv-list=3DCHOICES Set audio driver list [defau= lt] (choices: alsa/co' printf "%s\n" ' reaudio/default/dsound/jack/os= s/pa/pipewire/sdl/s' printf "%s\n" ' ndio)' + printf "%s\n" ' --bindir=3DVALUE Executable directory [bin]' printf "%s\n" ' --block-drv-ro-whitelist=3DVALUE' printf "%s\n" ' set block driver read-only whi= telist (by default' printf "%s\n" ' affects only QEMU, not tools l= ike qemu-img)' @@ -62,6 +63,7 @@ meson_options_help() { printf "%s\n" ' --localedir=3DVALUE Locale data directory [share= /locale]' printf "%s\n" ' --localstatedir=3DVALUE Localstate data directory [/= var/local]' printf "%s\n" ' --mandir=3DVALUE Manual page directory [share= /man]' + printf "%s\n" ' --prefix=3DVALUE Installation prefix [/usr/lo= cal]' printf "%s\n" ' --sysconfdir=3DVALUE Sysconf data directory [etc]' printf "%s\n" ' --tls-priority=3DVALUE Default TLS protocol/cipher = priority string' printf "%s\n" ' [NORMAL]' @@ -69,6 +71,8 @@ meson_options_help() { printf "%s\n" ' auto/sigaltstack/ucontext/wind= ows)' printf "%s\n" ' --with-pkgversion=3DVALUE use specified string as sub-= version of the' printf "%s\n" ' package' + printf "%s\n" ' --with-suffix=3DVALUE Suffix for QEMU data/modules= /config directories' + printf "%s\n" ' (can be empty) [qemu]' printf "%s\n" ' --with-trace-file=3DVALUE Trace file prefix for simple= backend [trace]' printf "%s\n" '' printf "%s\n" 'Optional features, enabled with --enable-FEATURE and' @@ -229,6 +233,7 @@ _meson_option_parse() { --disable-gcov) printf "%s" -Db_coverage=3Dfalse ;; --enable-lto) printf "%s" -Db_lto=3Dtrue ;; --disable-lto) printf "%s" -Db_lto=3Dfalse ;; + --bindir=3D*) quote_sh "-Dbindir=3D$2" ;; --enable-blkio) printf "%s" -Dblkio=3Denabled ;; --disable-blkio) printf "%s" -Dblkio=3Ddisabled ;; --block-drv-ro-whitelist=3D*) quote_sh "-Dblock_drv_ro_whitelist=3D$2"= ;; @@ -407,6 +412,7 @@ _meson_option_parse() { --disable-plugins) printf "%s" -Dplugins=3Dfalse ;; --enable-png) printf "%s" -Dpng=3Denabled ;; --disable-png) printf "%s" -Dpng=3Ddisabled ;; + --prefix=3D*) quote_sh "-Dprefix=3D$2" ;; --enable-pvrdma) printf "%s" -Dpvrdma=3Denabled ;; --disable-pvrdma) printf "%s" -Dpvrdma=3Ddisabled ;; --enable-qcow1) printf "%s" -Dqcow1=3Denabled ;; @@ -414,6 +420,7 @@ _meson_option_parse() { --enable-qed) printf "%s" -Dqed=3Denabled ;; --disable-qed) printf "%s" -Dqed=3Ddisabled ;; --firmwarepath=3D*) quote_sh "-Dqemu_firmwarepath=3D$(meson_option_bui= ld_array $2)" ;; + --with-suffix=3D*) quote_sh "-Dqemu_suffix=3D$2" ;; --enable-qga-vss) printf "%s" -Dqga_vss=3Denabled ;; --disable-qga-vss) printf "%s" -Dqga_vss=3Ddisabled ;; --enable-qom-cast-debug) printf "%s" -Dqom_cast_debug=3Dtrue ;; --=20 2.41.0 From nobody Wed Nov 27 17:51:56 2024 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1697438028; cv=none; d=zohomail.com; s=zohoarc; b=ZqLC4t8LIMTJlAABsSOZJ8HhpwokTXAkgu8PBJmpPjJbl/HZl0Ou57ndx0uNJuXZVljf1Eo7Do9skCqXiqLsh3YpVBf/epE/zqbouxO0SC5WiiM/pL1SzIz5tCVr1NvIH0T8A3ZPux+cWAwjx7ogAnRfTKHICz/olfanv71n3TI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697438028; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=7wRraFOki6xoNL40X+dNtMD9Sl5rl5qNKGPpTlgSs3w=; b=ix1vyAdDYVQ9kjxPoSZCNCIlWzaN/vgUyWHAB7QYq7tngbSxORvR+ul2WHVJB1179HyqbUcHyxnaoDk+plBoccfvTdbeKLJqWrN82IqeZrFp80D7w26g2xqjystPx1R5jhDyY1ZonuXh0Ec/7B2HkBuodVjreT06PvXfn2kmETE= 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 169743802845517.702681425118044; Sun, 15 Oct 2023 23:33:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsH9M-0004cW-50; Mon, 16 Oct 2023 02:32:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH9I-0004Ni-TL for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:32:20 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH9H-0005WU-0d for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:32:20 -0400 Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-204-sQUOtt8cPhyXo6EiGol3TA-1; Mon, 16 Oct 2023 02:31:56 -0400 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-9ae686dafedso294022266b.3 for ; Sun, 15 Oct 2023 23:31:56 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id f25-20020a170906085900b009ae0042e48bsm3346343ejd.5.2023.10.15.23.31.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 23:31:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697437938; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7wRraFOki6xoNL40X+dNtMD9Sl5rl5qNKGPpTlgSs3w=; b=YKOtLoldTyWnWGHRxsRRC3BoL8kHUzaQ2zZ5+vmazvuIXUQhBqB2IAvfAX4oXQrS6nXNsC VUzlvepFFb4XLvTFTvjeYz6SEwqWeGUKt2Kt2Y50gLnCGxfXzdrqY9meMnphSDNe8zds+H 7cGFFs9t/HRJa23Jcqi+xaMIqMg9cb4= X-MC-Unique: sQUOtt8cPhyXo6EiGol3TA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697437915; x=1698042715; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7wRraFOki6xoNL40X+dNtMD9Sl5rl5qNKGPpTlgSs3w=; b=P2ddQ86C16kBz+VIXtcH0hUv3LDjqmkmyXdaEM0pQOmSqblYfg6Skg9uBgLYacCJAH 9sWDa+QRovVO0Vs25nQIRghVqxgFB9GCL0AzSkSOexlkBZPX6ZSu0LpNPIbnfRA5TvzL oWvFmjnj8+7gZUHuZxk//d8cmVFjief/EQ7aZB/sBt56H4m8CFH9Yf8n5etqYJVuEp5b ZpdffxaWcN5xN2jN1Ljs/uLQug7jk3maxlj1Del3UxkTVZ27QClzAO5tsZh8DA3+fTaf RYy9hdZ79wLFSXKjiooERwrcRA6C83SM2MhwM80bJf8ZlQCTaDW5Na2mmDG26btQsULC MCaw== X-Gm-Message-State: AOJu0YyCywayYHd82YJqICoFo8XThlxk7WNGJXKd0wt9iRQnCZTTr5wV 4nwkwuAzKqRQrQ0+WJuEqWYEqoGvkVLlZ/kgU/3cIociAyTqQ9xqDNWoHarNlY+TofzWmNq3BvT 1L9HWCspw0GJrvo/mil7CYkFLkDN0ZT9XQlG/iAhvns0qzX93DDdayCldbVEzzgoZCGT5d4Zr2u I= X-Received: by 2002:a17:907:7ea4:b0:9be:3c01:f061 with SMTP id qb36-20020a1709077ea400b009be3c01f061mr5926056ejc.66.1697437915055; Sun, 15 Oct 2023 23:31:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFDh0bkkHAtP4yyEz6JHjdj3iaffOzC4o8eVcMtCWQIYIqfGqSxm50IMbl3/zH0yJI+TtVsbQ== X-Received: by 2002:a17:907:7ea4:b0:9be:3c01:f061 with SMTP id qb36-20020a1709077ea400b009be3c01f061mr5926044ejc.66.1697437914697; Sun, 15 Oct 2023 23:31:54 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 13/17] configure: move environment-specific defaults to config-meson.cross Date: Mon, 16 Oct 2023 08:31:23 +0200 Message-ID: <20231016063127.161204-14-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231016063127.161204-1-pbonzini@redhat.com> References: <20231016063127.161204-1-pbonzini@redhat.com> MIME-Version: 1.0 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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697438029339100001 Content-Type: text/plain; charset="utf-8" Store the -Werror and SMBD defaults in the machine file, which still allows them to be overridden on the command line and enables automatic parsing of the related options. Signed-off-by: Paolo Bonzini --- configure | 37 +++++++++++++---------------------- scripts/meson-buildoptions.py | 3 ++- scripts/meson-buildoptions.sh | 5 +++++ 3 files changed, 21 insertions(+), 24 deletions(-) diff --git a/configure b/configure index e6787dc4111..24f8866e141 100755 --- a/configure +++ b/configure @@ -258,7 +258,6 @@ skip_meson=3Dno use_containers=3D"yes" gdb_bin=3D$(command -v "gdb-multiarch" || command -v "gdb") gdb_arches=3D"" -werror=3D"" =20 # Don't accept a target_list environment variable. unset target_list @@ -314,7 +313,6 @@ objcopy=3D"${OBJCOPY-${cross_prefix}objcopy}" ld=3D"${LD-${cross_prefix}ld}" ranlib=3D"${RANLIB-${cross_prefix}ranlib}" nm=3D"${NM-${cross_prefix}nm}" -smbd=3D"$SMBD" strip=3D"${STRIP-${cross_prefix}strip}" widl=3D"${WIDL-${cross_prefix}widl}" windres=3D"${WINDRES-${cross_prefix}windres}" @@ -648,8 +646,6 @@ for opt do ;; --ninja=3D*) ninja=3D"$optarg" ;; - --smbd=3D*) smbd=3D"$optarg" - ;; --extra-cflags=3D*) ;; --extra-cxxflags=3D*) @@ -741,10 +737,6 @@ for opt do ;; --disable-pie) pie=3D"no" ;; - --enable-werror) werror=3D"yes" - ;; - --disable-werror) werror=3D"no" - ;; --enable-cfi) cfi=3Dtrue ;; --disable-cfi) cfi=3Dfalse @@ -876,7 +868,6 @@ Advanced options (experts only): --cross-prefix-ARCH=3DPREFIX cross compiler prefix when building ARCH gu= est test cases --python=3DPYTHON use specified python [$python] --ninja=3DNINJA use specified ninja [$ninja] - --smbd=3DSMBD use specified smbd [$smbd] --static enable static build [$static] --without-default-features default all --enable-* options to "disabled" --without-default-devices do not include any device that is not needed = to @@ -884,7 +875,6 @@ Advanced options (experts only): desired devices in configs/devices/) --with-devices-ARCH=3DNAME override default configs/devices --enable-debug enable common debug build options - --disable-werror disable compilation abort on warning --cpu=3DCPU Build for host CPU [$cpu] --disable-containers don't use containers for cross-building --container-engine=3DTYPE which container engine to use [$container_eng= ine] @@ -1008,17 +998,6 @@ if test -z "$ninja"; then fi fi =20 -# Consult white-list to determine whether to enable werror -# by default. Only enable by default for git builds -if test -z "$werror" ; then - if test -e "$source_path/.git" && \ - { test "$targetos" =3D linux || test "$targetos" =3D "windows"; };= then - werror=3D"yes" - else - werror=3D"no" - fi -fi - if test "$targetos" =3D "bogus"; then # Now that we know that we're not printing the help and that # the compiler works (so the results of the check_defines we used @@ -1761,6 +1740,20 @@ if test "$skip_meson" =3D no; then test -n "$objcc" && echo "objc_args =3D [$(meson_quote $OBJCFLAGS $EXTRA= _OBJCFLAGS)]" >> $cross echo "c_link_args =3D [$(meson_quote $CFLAGS $LDFLAGS $EXTRA_CFLAGS $EXT= RA_LDFLAGS)]" >> $cross echo "cpp_link_args =3D [$(meson_quote $CXXFLAGS $LDFLAGS $EXTRA_CXXFLAG= S $EXTRA_LDFLAGS)]" >> $cross + + # Only enable by default for git builds and on select OSes + echo "# environment defaults, can still be overridden on " >> $cross + echo "# the command line" >> $cross + if test -e "$source_path/.git" && \ + { test "$targetos" =3D linux || test "$targetos" =3D "windows"; }; t= hen + echo 'werror =3D true' >> $cross + fi + echo "[project options]" >> $cross + if test "$SMBD" !=3D ''; then + echo "smbd =3D $(meson_quote "$SMBD")" >> $cross + fi + + echo >> $cross echo "[binaries]" >> $cross echo "c =3D [$(meson_quote $cc $CPU_CFLAGS)]" >> $cross test -n "$cxx" && echo "cpp =3D [$(meson_quote $cxx $CPU_CFLAGS)]" >> $c= ross @@ -1815,7 +1808,6 @@ if test "$skip_meson" =3D no; then test "$default_feature" =3D no && meson_option_add -Dauto_features=3Ddis= abled test "$static" =3D yes && meson_option_add -Dprefer_static=3Dtrue test "$pie" =3D no && meson_option_add -Db_pie=3Dfalse - test "$werror" =3D yes && meson_option_add -Dwerror=3Dtrue =20 # QEMU options test "$cfi" !=3D false && meson_option_add "-Dcfi=3D$cfi" @@ -1823,7 +1815,6 @@ if test "$skip_meson" =3D no; then test "$docs" !=3D auto && meson_option_add "-Ddocs=3D$docs" test -n "${LIB_FUZZING_ENGINE+xxx}" && meson_option_add "-Dfuzzing_engin= e=3D$LIB_FUZZING_ENGINE" test "$plugins" =3D yes && meson_option_add "-Dplugins=3Dtrue" - test "$smbd" !=3D '' && meson_option_add "-Dsmbd=3D$smbd" test "$tcg" !=3D enabled && meson_option_add "-Dtcg=3D$tcg" run_meson() { NINJA=3D$ninja $meson setup "$@" "$PWD" "$source_path" diff --git a/scripts/meson-buildoptions.py b/scripts/meson-buildoptions.py index 0c24bdc1e8c..2e88732a291 100644 --- a/scripts/meson-buildoptions.py +++ b/scripts/meson-buildoptions.py @@ -28,7 +28,6 @@ SKIP_OPTIONS =3D { "default_devices", "fuzzing_engine", - "smbd", } =20 OPTION_NAMES =3D { @@ -47,6 +46,7 @@ # Options that configure autodetects, even though meson defines them as bo= olean AUTO_OPTIONS =3D { "plugins", + "werror", } =20 BUILTIN_OPTIONS =3D { @@ -64,6 +64,7 @@ "prefix", "strip", "sysconfdir", + "werror", } =20 LINE_WIDTH =3D 76 diff --git a/scripts/meson-buildoptions.sh b/scripts/meson-buildoptions.sh index e1522030619..dec33820163 100644 --- a/scripts/meson-buildoptions.sh +++ b/scripts/meson-buildoptions.sh @@ -64,6 +64,7 @@ meson_options_help() { printf "%s\n" ' --localstatedir=3DVALUE Localstate data directory [/= var/local]' printf "%s\n" ' --mandir=3DVALUE Manual page directory [share= /man]' printf "%s\n" ' --prefix=3DVALUE Installation prefix [/usr/lo= cal]' + printf "%s\n" ' --smbd=3DVALUE Path to smbd for slirp netwo= rking' printf "%s\n" ' --sysconfdir=3DVALUE Sysconf data directory [etc]' printf "%s\n" ' --tls-priority=3DVALUE Default TLS protocol/cipher = priority string' printf "%s\n" ' [NORMAL]' @@ -205,6 +206,7 @@ meson_options_help() { printf "%s\n" ' vpc vpc image format support' printf "%s\n" ' vte vte support for the gtk UI' printf "%s\n" ' vvfat vvfat image format support' + printf "%s\n" ' werror Treat warnings as errors' printf "%s\n" ' whpx WHPX acceleration support' printf "%s\n" ' xen Xen backend support' printf "%s\n" ' xen-pci-passthrough' @@ -453,6 +455,7 @@ _meson_option_parse() { --disable-slirp-smbd) printf "%s" -Dslirp_smbd=3Ddisabled ;; --enable-smartcard) printf "%s" -Dsmartcard=3Denabled ;; --disable-smartcard) printf "%s" -Dsmartcard=3Ddisabled ;; + --smbd=3D*) quote_sh "-Dsmbd=3D$2" ;; --enable-snappy) printf "%s" -Dsnappy=3Denabled ;; --disable-snappy) printf "%s" -Dsnappy=3Ddisabled ;; --enable-sndio) printf "%s" -Dsndio=3Denabled ;; @@ -529,6 +532,8 @@ _meson_option_parse() { --disable-vte) printf "%s" -Dvte=3Ddisabled ;; --enable-vvfat) printf "%s" -Dvvfat=3Denabled ;; --disable-vvfat) printf "%s" -Dvvfat=3Ddisabled ;; + --enable-werror) printf "%s" -Dwerror=3Dtrue ;; + --disable-werror) printf "%s" -Dwerror=3Dfalse ;; --enable-whpx) printf "%s" -Dwhpx=3Denabled ;; --disable-whpx) printf "%s" -Dwhpx=3Ddisabled ;; --enable-xen) printf "%s" -Dxen=3Denabled ;; --=20 2.41.0 From nobody Wed Nov 27 17:51:56 2024 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1697438049; cv=none; d=zohomail.com; s=zohoarc; b=Pssfn5PKTm4aFq4iTjiCT+jVxU1o4czNtIhiV1JwbIayai3W8osHhmG1hjpN4HCdMM520I7p+Sq9F8y8U5AswFnzXEv5FpDJROXG6zM1M1fbTTifcj54ddR1Og5eo/gMUVuccZSvNKdjQpS7B5xI2mjFq1Ea79IDzgIk44SVI/4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697438049; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=VTKK/77t6XzfLamnizLTQ3k3sm0qSCgSBszZqr27Eb0=; b=eihNISZwswgGNGDfaNziLbUsY03hjP9ATGUfDL5hT4CeckobMZhEpfmWHH/nK51RXD7gp34vunFyFHF8nuiVM4vCHm2RpsBIDmHdllqFqRm+7ZX1W8c4owzJus54KxskhRjTObSroC340VJYcRAPsVNSgYrzRHVAqY5mhpkIkvc= 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 1697438049289946.847758588403; Sun, 15 Oct 2023 23:34:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsH93-00042N-M6; Mon, 16 Oct 2023 02:32:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH92-000424-AM for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:32:04 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH90-0005Tv-O3 for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:32:04 -0400 Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-663-JJkGnngoNt6lLB5tY6pLAw-1; Mon, 16 Oct 2023 02:31:59 -0400 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-9b65c46bca8so10727566b.1 for ; Sun, 15 Oct 2023 23:31:59 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id j8-20020a170906254800b009ae69c303aasm3338781ejb.137.2023.10.15.23.31.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 23:31:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697437922; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VTKK/77t6XzfLamnizLTQ3k3sm0qSCgSBszZqr27Eb0=; b=a6vAab4XUg/8P8eYlN146EcUSk6WPHyQBtXDLwV8MPTdmZwwjiQD1dxRRoJ9CmGe2bBOus V13Fec3GN4M/CuVL9gXr8QwtjI2kYO2FfeHZnC9TwthLzFPgZ4X0BQe59gn0qN0cQnXCvR DN8t9M2nnTB/UpwhIQUfOA6iYljzQuM= X-MC-Unique: JJkGnngoNt6lLB5tY6pLAw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697437918; x=1698042718; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VTKK/77t6XzfLamnizLTQ3k3sm0qSCgSBszZqr27Eb0=; b=vSJ/2a3qcGSDcSaWsktfg89SdWeDr+F/+VUIw04eFvS3jT9vKwRILDz3WEJmLS6WAo PjCOLDZ6IX6s+dBU3rjEf8Dkxdc1hbTspfFScroNwPSwFEMSKHU2rs4SJQ+0iFG+U78T V8JSWONUs4Ywtfb0LHWVTia+D+LqJEKRftW6PUx4tdngs52wgHOJrJKwHSsYCiFS56ne s5ubQUFwqc1ZevTrhWJ7kl9WAok283ROI7TAkTZr+JpzBsLTJoWEitKCnksFqxwUx155 Lu6Chhu6GktrdoQmhDzOZeznckFCHxS7ZMHR6crqiSQBZEM3QICiZnC1Hz5HiQ/g4vQP +p6w== X-Gm-Message-State: AOJu0Yw2hgVxCIHK1qjVz2Qsx+CzdsxopNGq5dmv+CAHPOIWKyaDGfZF 3KfEYHGNPEfijymMvnubX2UPhkReDxWCWraxoDC9w2CaLadHseL83h8ABXzc36MGY3s/Sndg8/+ V3E15hV2Vn2R4yV1BTpPl2bl4F9rN8drSrNdnz3d81Y14Whi7ZnN7ZiNLP7zEOvp25h3NkLFnxl 4= X-Received: by 2002:a17:907:6ea5:b0:9bd:f3b0:c087 with SMTP id sh37-20020a1709076ea500b009bdf3b0c087mr7358287ejc.2.1697437917756; Sun, 15 Oct 2023 23:31:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHR8J7NsENjnNe+omtLk70t6WQpPBQZaja0Trbg02g5PKqnxjSwj697c73tdhL9nyDEA/d0fQ== X-Received: by 2002:a17:907:6ea5:b0:9bd:f3b0:c087 with SMTP id sh37-20020a1709076ea500b009bdf3b0c087mr7358271ejc.2.1697437917423; Sun, 15 Oct 2023 23:31:57 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 14/17] configure: unify handling of several Debian cross containers Date: Mon, 16 Oct 2023 08:31:24 +0200 Message-ID: <20231016063127.161204-15-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231016063127.161204-1-pbonzini@redhat.com> References: <20231016063127.161204-1-pbonzini@redhat.com> MIME-Version: 1.0 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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697438051406100009 Content-Type: text/plain; charset="utf-8" The Debian and GNU architecture names match very often, even though there are common cases (32-bit Arm or 64-bit x86) where they do not and other cases in which the GNU triplet is actually a quadruplet. But it is still possible to group the common case into a single case inside probe_target_compiler. Signed-off-by: Paolo Bonzini --- configure | 41 +++++------------------------------------ 1 file changed, 5 insertions(+), 36 deletions(-) diff --git a/configure b/configure index 24f8866e141..18dcb0240ed 100755 --- a/configure +++ b/configure @@ -1278,10 +1278,6 @@ probe_target_compiler() { container_cross_prefix=3Daarch64-linux-gnu- container_cross_cc=3D${container_cross_prefix}gcc ;; - alpha) - container_image=3Ddebian-alpha-cross - container_cross_prefix=3Dalpha-linux-gnu- - ;; arm) # We don't have any bigendian build tools so we only use this for = ARM container_image=3Ddebian-armhf-cross @@ -1296,10 +1292,6 @@ probe_target_compiler() { container_cross_prefix=3Dhexagon-unknown-linux-musl- container_cross_cc=3D${container_cross_prefix}clang ;; - hppa) - container_image=3Ddebian-hppa-cross - container_cross_prefix=3Dhppa-linux-gnu- - ;; i386) container_image=3Dfedora-i386-cross container_cross_prefix=3D @@ -1308,10 +1300,6 @@ probe_target_compiler() { container_image=3Ddebian-loongarch-cross container_cross_prefix=3Dloongarch64-unknown-linux-gnu- ;; - m68k) - container_image=3Ddebian-m68k-cross - container_cross_prefix=3Dm68k-linux-gnu- - ;; microblaze) container_image=3Ddebian-microblaze-cross container_cross_prefix=3Dmicroblaze-linux-musl- @@ -1324,14 +1312,6 @@ probe_target_compiler() { container_image=3Ddebian-mips64-cross container_cross_prefix=3Dmips64-linux-gnuabi64- ;; - mipsel) - container_image=3Ddebian-mipsel-cross - container_cross_prefix=3Dmipsel-linux-gnu- - ;; - mips) - container_image=3Ddebian-mips-cross - container_cross_prefix=3Dmips-linux-gnu- - ;; nios2) container_image=3Ddebian-nios2-cross container_cross_prefix=3Dnios2-linux-gnu- @@ -1346,22 +1326,6 @@ probe_target_compiler() { container_cross_prefix=3Dpowerpc${target_arch#ppc}-linux-gnu- container_cross_cc=3D${container_cross_prefix}gcc-10 ;; - riscv64) - container_image=3Ddebian-riscv64-test-cross - container_cross_prefix=3Driscv64-linux-gnu- - ;; - s390x) - container_image=3Ddebian-s390x-cross - container_cross_prefix=3Ds390x-linux-gnu- - ;; - sh4) - container_image=3Ddebian-sh4-cross - container_cross_prefix=3Dsh4-linux-gnu- - ;; - sparc64) - container_image=3Ddebian-sparc64-cross - container_cross_prefix=3Dsparc64-linux-gnu- - ;; tricore) container_image=3Ddebian-tricore-cross container_cross_prefix=3Dtricore- @@ -1376,6 +1340,11 @@ probe_target_compiler() { # default to the dc232b cpu container_cross_prefix=3D/opt/2020.07/xtensa-dc232b-elf/bin/xtensa= -dc232b-elf- ;; + *) + # Debian and GNU architecture names usually match + container_image=3Ddebian-$target_arch-cross + container_cross_prefix=3D$target_arch-linux-gnu- + ;; esac : ${container_cross_cc:=3D${container_cross_prefix}gcc} : ${container_cross_ar:=3D${container_cross_prefix}ar} --=20 2.41.0 From nobody Wed Nov 27 17:51:56 2024 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1697438023; cv=none; d=zohomail.com; s=zohoarc; b=JIJ7Ik5tO6Ed0aPHo6/eJ4vKusKSaOTC7Y7q6M+dgnJ+d6rq0B7N7Jw93vVZIIYCBdUXlt4sxN2zEUazmiso2QcLFa7XQAlXp9VEqGQ7dYTYaL0CSh1Ed5TlFjjutghjaIqkWtAfHOnLBYzHGn+BRrLl/9Ch9UI6ZbeLBRCbiI0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697438023; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=qwRXtVjXRc2oO6G7Ta8j3S56M6ZsrgKAu3P/PDdZ/0w=; b=TdSp2NBqXBzvzQ1D1Fo3FGqGW+uMH836lRfh0iGcCop0wzL2DVLlOnt/SV7ZOEclnacILFbZWAWvQWR6flZoflw99gSt5kqrFHhrDjA01MhNBryMAIueuR0nHBFVD4taqNq3S1XR3in2CvC2g4mL/2Q4m+V8JVq1PjfFUQKh01w= 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 1697438023579840.267968125011; Sun, 15 Oct 2023 23:33:43 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsH95-00042t-ER; Mon, 16 Oct 2023 02:32:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH94-00042a-0c for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:32:06 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH92-0005U7-8z for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:32:05 -0400 Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-530-vrOimNY7O-OzzBnNjQq9UQ-1; Mon, 16 Oct 2023 02:32:01 -0400 Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-53e119e615aso4262580a12.0 for ; Sun, 15 Oct 2023 23:32:00 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id co25-20020a0564020c1900b0053e36dd75dfsm4540722edb.35.2023.10.15.23.31.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 23:31:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697437923; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qwRXtVjXRc2oO6G7Ta8j3S56M6ZsrgKAu3P/PDdZ/0w=; b=Lr94U+o04qeI9TN4hl7C3/+5/v4127xcuLlWibTHWwDxjO/vDbxQajXQF/ij7WLHBuCgPL s1Ts5tvvDrW1frXLp2Rb0ejcNOKWGLd+ZcSkb6s+ubeFABXUEyeL9Ua/Ni3WqjBIUBrw97 eazRreD5Rm8DgekrKQR7UgHhR+mqSsM= X-MC-Unique: vrOimNY7O-OzzBnNjQq9UQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697437919; x=1698042719; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qwRXtVjXRc2oO6G7Ta8j3S56M6ZsrgKAu3P/PDdZ/0w=; b=OEmHAyXCTw0aozdbWavnst0HjW/1F1dXyu13GCw6zu03n6a7JTxfiKd5ZokGLaozlz SmBodVWZToDibN2YOvgRioDJUy7wZCbjHDjTQoeX9wAjm71LK4RMhyzM9gphGSCJZVA8 HIeLv9qCbF4TydzLQNUNMGklHX3O2LlnQ6gslrli188GWEyFd7ehEYzxu+DnAjRCfrM/ Q/7xfMWIlELJke8TcVFlP8tFTDtDXdCwnQooFXDDy8JB7SA/O2Mn+m/4jDFFIxA5lTLn bnuS7mBK0eI6+2b7ahndw4/NJ3CCqqRJCnN+cFtmtK0ToA0e1jkxbcKvv0q8+2O85wAT UfRQ== X-Gm-Message-State: AOJu0YwTE+Q/gcaTL8SDbdKziKt1HAnlCZLOn/Hx8hcxPdbj+lQYOAnW uTYxh7aiZJFjtyFE6JIIOQvgIvRwIfiXPBFICBnhcxjJ4Tw4tTiCiRRvbLwux1e+nH3epWpg80h ac/iNzghU7rCJfyx8jj1DApaNLxMysgrwVcmFlUhNE2zF05gBZo3vDR6O/tGTanSuOy2+Jp0XxK M= X-Received: by 2002:a05:6402:35d4:b0:523:2e23:a0bf with SMTP id z20-20020a05640235d400b005232e23a0bfmr5668106edc.11.1697437919595; Sun, 15 Oct 2023 23:31:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHH/bHATqgK2GYIe6lhDDd9ce3KvthpjNRoynTWgRZffQfIvDqriC66Cd2+6ogp4Zi8K8PuZg== X-Received: by 2002:a05:6402:35d4:b0:523:2e23:a0bf with SMTP id z20-20020a05640235d400b005232e23a0bfmr5668092edc.11.1697437919261; Sun, 15 Oct 2023 23:31:59 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 15/17] configure, meson: use command line options to configure qemu-ga Date: Mon, 16 Oct 2023 08:31:25 +0200 Message-ID: <20231016063127.161204-16-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231016063127.161204-1-pbonzini@redhat.com> References: <20231016063127.161204-1-pbonzini@redhat.com> MIME-Version: 1.0 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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697438025277100003 Content-Type: text/plain; charset="utf-8" Preserve the functionality of the environment variables, but allow using the command line instead. Signed-off-by: Paolo Bonzini --- configure | 16 +++++++++------- meson_options.txt | 7 +++++++ qga/meson.build | 9 ++++++--- scripts/meson-buildoptions.sh | 9 +++++++++ 4 files changed, 31 insertions(+), 10 deletions(-) diff --git a/configure b/configure index 18dcb0240ed..06b27dd46f4 100755 --- a/configure +++ b/configure @@ -1589,12 +1589,6 @@ echo >> $config_host_mak =20 echo all: >> $config_host_mak =20 -if test "$targetos" =3D "windows"; then - echo "QEMU_GA_MANUFACTURER=3D${QEMU_GA_MANUFACTURER-QEMU}" >> $config_ho= st_mak - echo "QEMU_GA_DISTRO=3D${QEMU_GA_DISTRO-Linux}" >> $config_host_mak - echo "QEMU_GA_VERSION=3D${QEMU_GA_VERSION-$(cat "$source_path"/VERSION)}= " >> $config_host_mak -fi - echo "SRC_PATH=3D$source_path" >> $config_host_mak echo "TARGET_DIRS=3D$target_list" >> $config_host_mak echo "GDB=3D$gdb_bin" >> $config_host_mak @@ -1721,6 +1715,15 @@ if test "$skip_meson" =3D no; then if test "$SMBD" !=3D ''; then echo "smbd =3D $(meson_quote "$SMBD")" >> $cross fi + if test "${QEMU_GA_MANUFACTURER}" !=3D ''; then + echo "qemu_ga_manufacturer =3D $(meson_quote "${QEMU_GA_MANUFACTURER}"= )" >> $cross + fi + if test "${QEMU_GA_DISTRO}" !=3D ''; then + echo "qemu_ga_distro =3D $(meson_quote "${QEMU_GA_DISTRO}")" >> $cross + fi + if test "${QEMU_GA_VERSION}" !=3D ''; then + echo "qemu_ga_version =3D $(meson_quote "${QEMU_GA_VERSION}")" >> $cro= ss + fi =20 echo >> $cross echo "[binaries]" >> $cross @@ -1772,7 +1775,6 @@ if test "$skip_meson" =3D no; then =20 rm -rf meson-private meson-info meson-logs =20 - # Built-in options test "$download" =3D "disabled" && meson_option_add "--wrap-mode=3Dnodow= nload" test "$default_feature" =3D no && meson_option_add -Dauto_features=3Ddis= abled test "$static" =3D yes && meson_option_add -Dprefer_static=3Dtrue diff --git a/meson_options.txt b/meson_options.txt index e237b268469..1b0c02b4a58 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -353,5 +353,12 @@ option('qom_cast_debug', type: 'boolean', value: true, option('slirp_smbd', type : 'feature', value : 'auto', description: 'use smbd (at path --smbd=3D*) in slirp networking') =20 +option('qemu_ga_manufacturer', type: 'string', value: 'QEMU', + description: '"manufacturer" name for qemu-ga registry entries') +option('qemu_ga_distro', type: 'string', value: 'Linux', + description: 'second path element in qemu-ga registry entries') +option('qemu_ga_version', type: 'string', value: '', + description: 'version number for qemu-ga installer') + option('hexagon_idef_parser', type : 'boolean', value : true, description: 'use idef-parser to automatically generate TCG code fo= r the Hexagon frontend') diff --git a/qga/meson.build b/qga/meson.build index 59cae0cc6ee..940a51d55db 100644 --- a/qga/meson.build +++ b/qga/meson.build @@ -145,6 +145,9 @@ if targetos =3D=3D 'windows' else libpcre =3D 'libpcre2' endif + qga_msi_version =3D get_option('qemu_ga_version') =3D=3D '' \ + ? project.version() \ + : get_option('qemu_ga_version') qga_msi =3D custom_target('QGA MSI', input: files('installer/qemu-ga.wxs'), output: 'qemu-ga-@0@.msi'.format(host_arch), @@ -155,9 +158,9 @@ if targetos =3D=3D 'windows' qemu_ga_msi_vss, '-D', 'BUILD_DIR=3D' + meson.project_build_r= oot(), '-D', 'BIN_DIR=3D' + glib_pc.get_variable('b= indir'), - '-D', 'QEMU_GA_VERSION=3D' + config_host['QE= MU_GA_VERSION'], - '-D', 'QEMU_GA_MANUFACTURER=3D' + config_hos= t['QEMU_GA_MANUFACTURER'], - '-D', 'QEMU_GA_DISTRO=3D' + config_host['QEM= U_GA_DISTRO'], + '-D', 'QEMU_GA_VERSION=3D' + qga_msi_version, + '-D', 'QEMU_GA_MANUFACTURER=3D' + get_option= ('qemu_ga_manufacturer'), + '-D', 'QEMU_GA_DISTRO=3D' + get_option('qemu= _ga_distro'), '-D', 'LIBPCRE=3D' + libpcre, ]) all_qga +=3D [qga_msi] diff --git a/scripts/meson-buildoptions.sh b/scripts/meson-buildoptions.sh index dec33820163..bda88993bd1 100644 --- a/scripts/meson-buildoptions.sh +++ b/scripts/meson-buildoptions.sh @@ -64,6 +64,12 @@ meson_options_help() { printf "%s\n" ' --localstatedir=3DVALUE Localstate data directory [/= var/local]' printf "%s\n" ' --mandir=3DVALUE Manual page directory [share= /man]' printf "%s\n" ' --prefix=3DVALUE Installation prefix [/usr/lo= cal]' + printf "%s\n" ' --qemu-ga-distro=3DVALUE second path element in qemu-= ga registry entries' + printf "%s\n" ' [Linux]' + printf "%s\n" ' --qemu-ga-manufacturer=3DVALUE' + printf "%s\n" ' "manufacturer" name for qemu-g= a registry entries' + printf "%s\n" ' [QEMU]' + printf "%s\n" ' --qemu-ga-version=3DVALUE version number for qemu-ga i= nstaller' printf "%s\n" ' --smbd=3DVALUE Path to smbd for slirp netwo= rking' printf "%s\n" ' --sysconfdir=3DVALUE Sysconf data directory [etc]' printf "%s\n" ' --tls-priority=3DVALUE Default TLS protocol/cipher = priority string' @@ -422,6 +428,9 @@ _meson_option_parse() { --enable-qed) printf "%s" -Dqed=3Denabled ;; --disable-qed) printf "%s" -Dqed=3Ddisabled ;; --firmwarepath=3D*) quote_sh "-Dqemu_firmwarepath=3D$(meson_option_bui= ld_array $2)" ;; + --qemu-ga-distro=3D*) quote_sh "-Dqemu_ga_distro=3D$2" ;; + --qemu-ga-manufacturer=3D*) quote_sh "-Dqemu_ga_manufacturer=3D$2" ;; + --qemu-ga-version=3D*) quote_sh "-Dqemu_ga_version=3D$2" ;; --with-suffix=3D*) quote_sh "-Dqemu_suffix=3D$2" ;; --enable-qga-vss) printf "%s" -Dqga_vss=3Denabled ;; --disable-qga-vss) printf "%s" -Dqga_vss=3Ddisabled ;; --=20 2.41.0 From nobody Wed Nov 27 17:51:56 2024 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1697438031; cv=none; d=zohomail.com; s=zohoarc; b=PaQujC3uD8O3UQ70Su2JNIbnEzRaF77n5sLa0wbtopGV+aY7eFhsti0+rCl/yNWcq0474k6SjmC7DW8s/1Cp6d8Dw2tW8Phi8J589sv5i86cu+cJhmgCZYUtSrM7hKRKTJcF+EC3K/nQg8kSvkYwZ9uLoYqisUGsgrfr5kPIC38= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697438031; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=Hhz5NoA8No/Gwx+ZeOtjgQ6Cuap6+7hqMf6Rp4/O1Yk=; b=mtFpE4KATravBb7sCJI6bDNvgd1b4Z7BBt6InPy396lbbvxFji98yf+FMoi2ba2cY/rDIwJxZwjk+9AJdvD+BDuZQvvlkKFkGenVbi0JekQ6tuUt/z1K131sO6h8LwFqHDk7+zPhY9JPNA+AUuhrDbnucYyKDi4mXMR7p6b1Xjw= 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 1697438031932931.326632458694; Sun, 15 Oct 2023 23:33:51 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsH9C-00047q-Vi; Mon, 16 Oct 2023 02:32:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH94-00042j-L4 for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:32:06 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH93-0005UO-4e for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:32:06 -0400 Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-538-YEx8ZihuNPeJirJW-cHfjw-1; Mon, 16 Oct 2023 02:32:02 -0400 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-9ba247e03aeso279585066b.1 for ; Sun, 15 Oct 2023 23:32:02 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id 26-20020a170906225a00b009ade1a4f795sm3365187ejr.168.2023.10.15.23.32.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 23:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697437924; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Hhz5NoA8No/Gwx+ZeOtjgQ6Cuap6+7hqMf6Rp4/O1Yk=; b=UORIBvA3GsnKr2rGzrC1q3PLK4BNQoFjXrnJkdclZ7FWZGilg5QBkJAkH69vvN9iNuf33G gp3WqwHhRvvaA2U1lAUQaxNvAKL34cgb3r9vyp3sJH2tTJvyeZhBnyFC5G0A9TyFi1IFw6 ra3u5/r3NMD1TNUdK6fNORkJHAEvJFk= X-MC-Unique: YEx8ZihuNPeJirJW-cHfjw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697437921; x=1698042721; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Hhz5NoA8No/Gwx+ZeOtjgQ6Cuap6+7hqMf6Rp4/O1Yk=; b=gSqaaC8whmaETD+9i1svRHNaS4574a5iiSbnVbxJuO8GAZa4sL0uAqF6uheTAUI3ni /f2CWYv6m1N1qypZAHhMm2gNmi067FmQM135ZlcbEMkx+jJj4hweUfdvSX9mKNqhPSFl CdUsks/PFKudI4X3u77ZqOTpbcXO1QegSUKbChJgnmaIMYr+86HtN3PpN3ZClmQeibx8 ojfc70xPU07Yd8uwl+LRfJqBL0eWFQeztXOHU6UVZ8M0/H07C146grrDeowycB957L34 AnNYHmreXYGV0ku9+eOCOPBcDDAiPNXmXIRMLMSRnDIIONicKXfcjyht5DBHq2iiYY5q 79sw== X-Gm-Message-State: AOJu0YxwRsEfKOn8P3eh0er3w3YLN+DTzSJnuzGnIu6KJ0t+pe4udJz1 KCP69mK+2JXGBH48JMaP0iaqX4/CIh6IQfQf+ezFton2vQmVby2ipdiM0Qiown5ad//Nd5aSnhS ByVCYc3J9jorU9VVhdRPqf4YcgoHDrZ8dYqMkIOKXPgN8aparhAwpYUftr67WfwEqK6s3eaEgUk c= X-Received: by 2002:a17:906:6a19:b0:9a5:a0c6:9e8e with SMTP id qw25-20020a1709066a1900b009a5a0c69e8emr37462738ejc.31.1697437921274; Sun, 15 Oct 2023 23:32:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEzg/gggD4uLsmQzqyaQIiFLsMU215D0qbivs4qNkup6bsjQUwuGnObLaLTlkvDZFM2Ip/oDQ== X-Received: by 2002:a17:906:6a19:b0:9a5:a0c6:9e8e with SMTP id qw25-20020a1709066a1900b009a5a0c69e8emr37462722ejc.31.1697437920902; Sun, 15 Oct 2023 23:32:00 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 16/17] meson-buildoptions: document the data at the top Date: Mon, 16 Oct 2023 08:31:26 +0200 Message-ID: <20231016063127.161204-17-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231016063127.161204-1-pbonzini@redhat.com> References: <20231016063127.161204-1-pbonzini@redhat.com> MIME-Version: 1.0 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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697438033491100011 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- scripts/meson-buildoptions.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/meson-buildoptions.py b/scripts/meson-buildoptions.py index 2e88732a291..4814a8ff61f 100644 --- a/scripts/meson-buildoptions.py +++ b/scripts/meson-buildoptions.py @@ -25,11 +25,15 @@ import shlex import sys =20 +# Options with nonstandard names (e.g. --with/--without) or OS-dependent +# defaults. Try not to add any. SKIP_OPTIONS =3D { "default_devices", "fuzzing_engine", } =20 +# Options whose name doesn't match the option for backwards compatibility +# reasons, because Meson gives them a funny name, or both OPTION_NAMES =3D { "b_coverage": "gcov", "b_lto": "lto", @@ -49,6 +53,10 @@ "werror", } =20 +# Builtin options that should be definable via configure. Some of the oth= ers +# we really do not want (e.g. c_args is defined via the native file, not +# via -D, because it's a mix of CFLAGS and --extra-cflags); for specific +# cases "../configure -D" can be used as an escape hatch. BUILTIN_OPTIONS =3D { "b_coverage", "b_lto", --=20 2.41.0 From nobody Wed Nov 27 17:51:56 2024 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1697438061; cv=none; d=zohomail.com; s=zohoarc; b=ioTGLERwAJU4VyW3HtlTssS3WLKiab5BgX74A6m5c7qmp+iURw8U2Zfb7e8vt0ZfzXVIjRxArhDuiJ+uwRsjat1VqI2ZAJGxdCdC5mChP5DISfUntzDpE5fVbLs56Be+xbEyyvLRy+ZQVLMWVfg6m8IrMphmJ2be2itKdUa31r0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697438061; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=oahmSuJ7paVGXQzz0W0nviH8/X3gevqOR6gcPfSk8kQ=; b=NgcDYjb5RtNTf3VAFb87EDdt4MUeJ5oEMBynVYWayLd9Jqlmqqxi7QecEcbQPAsHJfL0vmNqNcwiqWKyF8ovpbMYtXtofpqvDMw3lbaGMQzQ8XtTJ9cB46ldZzrg7tFrBmphUfzy98VLNKSuTMxjpCKLlSCKjJgQ9zaIDLNSa7g= 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 1697438061671556.8875449890775; Sun, 15 Oct 2023 23:34:21 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsH9I-0004Lj-PJ; Mon, 16 Oct 2023 02:32:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH9A-00047O-HF for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:32:12 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsH98-0005WI-If for qemu-devel@nongnu.org; Mon, 16 Oct 2023 02:32:11 -0400 Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-634-AEGB8yR2OQKnkxIhxFd9Vg-1; Mon, 16 Oct 2023 02:32:07 -0400 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-9b274cc9636so302121266b.0 for ; Sun, 15 Oct 2023 23:32:07 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id f15-20020a170906738f00b009a198078c53sm3392532ejl.214.2023.10.15.23.32.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 23:32:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697437930; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oahmSuJ7paVGXQzz0W0nviH8/X3gevqOR6gcPfSk8kQ=; b=NjD44VlVm76bZSN6zBislCb6O2iz6HqN3LOfMdy+/Xz6pRpTl2mGnkr1edkl5F2E3lw550 OwWQ3dtmUvRnQR0X+du4ea1ytsw5V/2oJCMEHNpWtVb5WRUCTOxTHXvDJQ1GT4+cfB8f5U PCkTJu9xxEEOV66RHsal7Xin1+UTX4s= X-MC-Unique: AEGB8yR2OQKnkxIhxFd9Vg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697437926; x=1698042726; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oahmSuJ7paVGXQzz0W0nviH8/X3gevqOR6gcPfSk8kQ=; b=n4oQXG/7rOIDh8IAYtJI2eXWwzBhL/X8X1QFNKTRBijHdTrZr/YSr8wwH6noYU09jj TtEkokEwAELK5Pa5KaDCMekeM5T9khomZHWmzv5FSQUBXuZnQjBBArgw/lcY+9i8dnqz RbAvlsck0E0GJJHheWOK5Rb3V5Bp1AZRDxAdplpoTciWwEtPegiG3ikByuHq1qkYr2Ii OODWr3zYR3dSpNKriWGHBjGZssvP0OrZvtk97oySr3A1q5p1qcFMH4vJLQMQoH19uomT d/ammIgy2HF231VKTeTI14kEt1i53rSjKuV1cnzlv8mMZhlotPSkz06C/psMwQqfprFe oMNw== X-Gm-Message-State: AOJu0YzpecnAQhYzNBKdFySMthlyhiYiq8IABsTILYEWL8KbKE4fCqP6 NwyPi4qVKq1HBP+ZYAX++vkkwSwz9+jVy8KexR4QQd+AS24TsoHrB7ito0ZNbwoHd8lG1Y0KC2A b6oygvQQENQdRTo9t6QlkU8lvQt5BsARe1r6oequb1ym4UmgFd21G0JuVtAm5/PSjtRgw2gHVa2 0= X-Received: by 2002:a17:907:7d92:b0:9be:b668:5700 with SMTP id oz18-20020a1709077d9200b009beb6685700mr4488497ejc.58.1697437925849; Sun, 15 Oct 2023 23:32:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2mCzb8gcDm4JMdr2Y7sMzd9V61g/BRbVaII5kmFG9DvePvtn48kp5eRezSbd1yTJfk/GwdQ== X-Received: by 2002:a17:907:7d92:b0:9be:b668:5700 with SMTP id oz18-20020a1709077d9200b009beb6685700mr4488490ejc.58.1697437925534; Sun, 15 Oct 2023 23:32:05 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 17/17] meson: add a note on why we use config_host for program paths Date: Mon, 16 Oct 2023 08:31:27 +0200 Message-ID: <20231016063127.161204-18-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231016063127.161204-1-pbonzini@redhat.com> References: <20231016063127.161204-1-pbonzini@redhat.com> MIME-Version: 1.0 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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697438063575100003 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meson.build b/meson.build index 87bb4e9243a..c80882da6fd 100644 --- a/meson.build +++ b/meson.build @@ -4021,6 +4021,11 @@ summary(summary_info, bool_yn: true, section: 'Direc= tories') summary_info =3D {} summary_info +=3D {'python': '@0@ (version: @1@)'.format(python= .full_path(), python.language_version())} summary_info +=3D {'sphinx-build': sphinx_build} + +# FIXME: the [binaries] section of machine files, which can be probed +# with find_program(), would be great for passing gdb and genisoimage +# paths from configure to Meson. However, there seems to be no way to +# hide a program (for example if gdb is too old). if config_host.has_key('GDB') summary_info +=3D {'gdb': config_host['GDB']} endif --=20 2.41.0