From patchwork Tue Apr 23 15:08:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 791234 Delivered-To: patch@linaro.org Received: by 2002:a5d:4884:0:b0:346:15ad:a2a with SMTP id g4csp382824wrq; Tue, 23 Apr 2024 08:18:24 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWt/If1GvwvZ6jyo9gI20HhZUhmKmK6CAGLuiFeTcCyGkNDsRXMGMYycg6QuLzT/v/vEGDm92LEwYzvlw/LXxZl X-Google-Smtp-Source: AGHT+IGC26+PARnc+q1g66AJ3G6NxfbdtIrx2dVyGj5XyWeJ9t4t4iFon4LmsUACsfZ3l759my3v X-Received: by 2002:a5d:68cc:0:b0:349:9e18:9f73 with SMTP id p12-20020a5d68cc000000b003499e189f73mr12000689wrw.67.1713885503922; Tue, 23 Apr 2024 08:18:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713885503; cv=none; d=google.com; s=arc-20160816; b=qGhA3STB5mn3M/DE4mkv71J/iuZTSB9hnNkjZsRktjKIn4xcwYkxPsubBnzGsFnRBH 9y0nvnL2jwyKdoNLw7YnVNHqlHxzf2MSTAwBAZXN3KXMtqUJLaHEsRkioAPFe4FF5GYk /QvG3l2svgDubC69tIOB+yyo+Xhu5M/TCmsG/ddrWIMCGniSmnenjWFlaMcTb/tT0+U6 Q75rQwouy4gGDDaw4BdVcfJ4Y440f7J0HSk9oJIh9iMgf0Q4xWz5ncPmC2DVAe9/5WFr FumRbnGZhCf/jA1yhdjGwFtmxovYl5UMe8YkFrtH/gut+5YIr67Ed9kvMcXd5h8G6rdP 88EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4Kp3eXLP51jHJ175K25VXtYcI3QZ4onuPOAdeq0P5eQ=; fh=qtn8prgQtzf5IzCNvLChUZDElvNECP6ej9YfjQeBz3I=; b=KeNUBMR6flfXWRk7mDqsTKUU62TwYHZ0ANSDr2YiD0ZwOo5bWmlQV8oMvhElDnoHvJ 9cxisp8Cr1cqyeceZisyxjIZ8m96lsLgB/+4XRhiljI6dH8ptILuVoHgctbSYrsXklzC 1JnzYmr/5e/hbh5pOQeKjhDqF3kEt4TzaOe/0mrpXgmhS0BuHnYJAFrTIfCLkv8mo6MQ ns7iWHPw6xrRyIjAJ0ba9pbO80I44UXeRQBQCZM1Ig0zT+ZjVPIShxxoG0r5IB6Atwf2 6mPFo+YiP2mNrjKjcJgDHMPUxctQ8Aarpli+grYeuLdlnRMug27RfMXJQNSUIXM/y8yl bf5g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LNFZOvWP; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id p10-20020a05600c468a00b00418c0d82475si7654898wmo.23.2024.04.23.08.18.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Apr 2024 08:18:23 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LNFZOvWP; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rzHnE-0004rB-Sv; Tue, 23 Apr 2024 11:10: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 1rzHmc-0004Mo-9P for qemu-devel@nongnu.org; Tue, 23 Apr 2024 11:10:15 -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 1rzHma-0008W5-3t for qemu-devel@nongnu.org; Tue, 23 Apr 2024 11:10:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713885006; 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=4Kp3eXLP51jHJ175K25VXtYcI3QZ4onuPOAdeq0P5eQ=; b=LNFZOvWPppfh8ndqmI3yPRGm9jZaw2O601GL1/x7+5KUvB3HXULDIu6Bu4duUhrWjXbRmi uRuJq+yHjS939u5fwOOxEqniBBccl6oUtQNKJC2m93GW0DutuuTxaXsmqV9kSfhcV7phU6 B6u9zwNTEHZvPzXWYgsBGV9xODZ8HsM= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-475-cNK352UINxKIHxnwwf1dAQ-1; Tue, 23 Apr 2024 11:10:03 -0400 X-MC-Unique: cNK352UINxKIHxnwwf1dAQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E11F63C23FCC; Tue, 23 Apr 2024 15:10:02 +0000 (UTC) Received: from avogadro.lan (unknown [10.39.192.70]) by smtp.corp.redhat.com (Postfix) with ESMTP id 365E72026D0A; Tue, 23 Apr 2024 15:10:02 +0000 (UTC) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson Subject: [PULL 08/63] hw: Include minimal source set in user emulation build Date: Tue, 23 Apr 2024 17:08:56 +0200 Message-ID: <20240423150951.41600-9-pbonzini@redhat.com> In-Reply-To: <20240423150951.41600-1-pbonzini@redhat.com> References: <20240423150951.41600-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 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: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.67, 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Philippe Mathieu-Daudé Only the files in hwcore_ss[] are required to link a user emulation binary. Have meson process the hw/ sub-directories if system emulation is selected, otherwise directly process hw/core/ to get hwcore_ss[], which is the only set required by user emulation. This removes about 10% from the time needed to run "../configure --disable-system --disable-tools --disable-guest-agent". Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-ID: <20240404194757.9343-8-philmd@linaro.org> Signed-off-by: Paolo Bonzini Message-ID: <20240408155330.522792-9-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 8c1271b8846..84e59dcbb49 100644 --- a/meson.build +++ b/meson.build @@ -3451,8 +3451,12 @@ subdir('qom') subdir('authz') subdir('crypto') subdir('ui') -subdir('hw') subdir('gdbstub') +if have_system + subdir('hw') +else + subdir('hw/core') +endif if enable_modules libmodulecommon = static_library('module-common', files('module-common.c') + genh, pic: true, c_args: '-DBUILD_DSO')