From patchwork Thu Apr 4 19:47:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 785829 Delivered-To: patch@linaro.org Received: by 2002:adf:f001:0:b0:33e:7753:30bd with SMTP id j1csp1006737wro; Thu, 4 Apr 2024 12:49:00 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV8tAkDrGWdG3VKgSKgnCs6Y6AQhUdFLEScxYp71RCwS/54pBeIx7iom4eyMKN9h7OO00fsGIg65z3rbJk8OulA X-Google-Smtp-Source: AGHT+IHl3LHIL7hu5fszL+VNYgg2b1Zj1PVS5CNrzfoA2iMjk6EXWaks2aWDIHiW9z/5ODuqxKz9 X-Received: by 2002:a05:622a:19a7:b0:432:b312:24d8 with SMTP id u39-20020a05622a19a700b00432b31224d8mr1017669qtc.4.1712260139627; Thu, 04 Apr 2024 12:48:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712260139; cv=none; d=google.com; s=arc-20160816; b=fiUgsebU0wza6ivh7AZ1XLIgRowTsWSpu4FeJDyLJuVoLsJGEL1WLz9kokm19Pp23Z ozfjw0nYhCCn4WrCcsykCalEGxvjdvda0tTqi4rqqVxY1XCwTwhx1v0YVQp4DNZcVMkL 24IGUavkyHLVsWQMcnaYglxacVr8L3Aynm7ZVI+aL5gvEN+O6r8Kwf1pK41OJshpOLwL 1PULj3R/NUuA5mOV0N5X8bfO1V5M9PndlBsCiZGgg9bKxFY/+Hbc5cGdPeJynTAfdHQH y0yjALKRDLtWrZY9y6qWKInqWVhzVcqtloYka+m6orgObluu1K4nTbo8Xr9r+Qi22XJq TfLg== 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=airsYYnzzrC3CGj9Ils0htz0QXpak8uFciduBNRfDcQ=; fh=EmP6yZuloaVthBOoJjnd4u7WRGpEegvyTTp1VaSKF94=; b=xYal9hcNne7WLIclsKWzVxb4C5wrnalm8JSeRfsJEBJhKUj1iL6fxGNcwAMQzNi3Zi Kty6IVfqXtvNruBI+1xK0f2ZnuE7cDM4x6pVGDkmteUIIVscsCqugtaaONnZ98vYvbK1 zFKWM9gRWZhUKkLqDea1cmaCkucvO7Vmz1EfDzmbQBuLg8fpInRPLwWUoljsaut9ciFI uSFaUJErUyJIHItg4kTIadyKGQPppCPnbgUUR9DuznbHVSjZxA88Gd4+OWU9Ohzh6jZO 7AhPmj152kcFscjjOrYrxH2B5CSjB9/HpACxWSZ9NFE7/kmQMufKaQmAONvXAKf70P4k BObg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g8xnQQEJ; 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=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id e20-20020ac85dd4000000b00432f6ec7899si41928qtx.460.2024.04.04.12.48.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Apr 2024 12:48:59 -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=@linaro.org header.s=google header.b=g8xnQQEJ; 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=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rsT4m-0006ar-Nq; Thu, 04 Apr 2024 15:48:44 -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 1rsT4l-0006aR-3n for qemu-devel@nongnu.org; Thu, 04 Apr 2024 15:48:43 -0400 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rsT4j-0000Of-IY for qemu-devel@nongnu.org; Thu, 04 Apr 2024 15:48:42 -0400 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2d47a92cfefso18142701fa.1 for ; Thu, 04 Apr 2024 12:48:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712260120; x=1712864920; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=airsYYnzzrC3CGj9Ils0htz0QXpak8uFciduBNRfDcQ=; b=g8xnQQEJ43B5wdoV4A8yGr7GUkdwB97eeFnZvwbW72a707uFYwof31cwNT0c1ygneG 0OL7/Bs4HXP1v4MIi7AUWscQAVwmaWxqjhxhY1Twj6+qa79dc5YukYcld2tdBQVgkAIL hG7wH9GG+WWIQEUrVDiHy4FuD3+kP5KwZnLZQULiwb0QrLJHyZBejIrjilDiGxWshiGF DeniYN1u/PQvpzhMoZV6jBftbPehvBdN4U/73gqV6obcDoIJ1Eqfk/P6Fg+ZKDz0ZM8d Cni09y6U2kuebGINGBguHcseVm/Ery14aOFj4TcAnj3RC2vrbPcGIqyILsz7UlZGQLXp 60QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712260120; x=1712864920; 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=airsYYnzzrC3CGj9Ils0htz0QXpak8uFciduBNRfDcQ=; b=AqB8SqALV+PqqqwuT4vcjkOdZ5zAscYUC/DkWiGE9NqoE9JIjzmDGBaa4n2Qc/OyPN QDvohanLneWpAXn5GZoNBSpovHuheywdx3+cMMAzU0EBmMLMShlkbJCdcYsl+3GhshFO tkSsILa6oVqLcjR3Dr9bjbrlwCyRem7Qf5cCNCvcfNJvfimTHVzXOu7EoWf2lDgz2xuK W3RJ/MA7wirEPhm2f4tqjrNEURtk5F4d8dEZ1UgJFManptjo8R7yt3fXWsprMyRhtJT5 Nfui39UZGMamf8YnfLDal21MevUgAr0pF3bKdCC+6d4UsMWGV1DiiHa4VQpB5o11uKLr 8sng== X-Forwarded-Encrypted: i=1; AJvYcCW1/8XSFVFywxKnLnsfS61ilLws5/XUg66desnl/UwF0jZ4I2RrlkiE2pCTlLisYdGDl6SckYKuawzUouK/dUAviO1q9Do= X-Gm-Message-State: AOJu0YwaJ4xp0sxu1WpWBKrnV3RAarAACdtqZPIcM6rApW/5ZTL4RAuo JPGR13vyw6iw6GkDzdBA/WcZpTJzmjaNC03eXxUwxZbvq5dDmQyeLbiEvEnyXJ4= X-Received: by 2002:a2e:9495:0:b0:2d8:97f:451e with SMTP id c21-20020a2e9495000000b002d8097f451emr2517158ljh.37.1712260119852; Thu, 04 Apr 2024 12:48:39 -0700 (PDT) Received: from m1x-phil.lan ([176.187.216.111]) by smtp.gmail.com with ESMTPSA id t12-20020a05600c450c00b004161bffa48csm223823wmo.40.2024.04.04.12.48.38 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 04 Apr 2024 12:48:39 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: Michael Tokarev , Laurent Vivier , qemu-devel@nongnu.org Cc: Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Thomas Huth , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= Subject: [PATCH-for-9.1 7/7] hw: Include minimal source set in user emulation build Date: Thu, 4 Apr 2024 21:47:57 +0200 Message-ID: <20240404194757.9343-8-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240404194757.9343-1-philmd@linaro.org> References: <20240404194757.9343-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::233; envelope-from=philmd@linaro.org; helo=mail-lj1-x233.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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 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. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index c9c3217ba4..68eecd1937 100644 --- a/meson.build +++ b/meson.build @@ -3447,8 +3447,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')