From nobody Tue Feb 10 20:51:45 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1746487683; cv=none; d=zohomail.com; s=zohoarc; b=l2ILNt9oK/ro2OxXAy9idWoXIKxYGi5j1EvmU79S4cmOoEM/7KYSFlTx2HN6orS2dckpFCSaIqpupcbPBuQSXVO5WrS03DBWESMuks0IvnH9scdk1vH7naFlUEuJUVSyaZNBgHkjcsmF/859QbRQlNqrOkBkvUeNyGB6yhlJ+a8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1746487683; h=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=oMNeg3Y4FuUndpYOZQCJwSPCGo/Nsl7SC/sGcqIL57A=; b=Ox7hYhUEUZUlRYn+DUtIzocBbhH+ZMYFv8DfbPPU6IZqM0ekmXCRk0rJD7vvl/ydQLMu1ZgniqV59zD5fEkJCuFo/9+OVRNQoTou1pTL75ezR7NPYY41MgL0Q6VYCEj/Z2Uu6Xdn2y0Nc33jj1I5aERTp9iOiQYP7BgUikxzErY= 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 1746487683881810.9170246753064; Mon, 5 May 2025 16:28:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uC56v-0006Bg-KF; Mon, 05 May 2025 19:20:33 -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 1uC56r-00067l-FW for qemu-devel@nongnu.org; Mon, 05 May 2025 19:20:29 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uC56o-0003Up-4u for qemu-devel@nongnu.org; Mon, 05 May 2025 19:20:29 -0400 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-223f4c06e9fso45716745ad.1 for ; Mon, 05 May 2025 16:20:25 -0700 (PDT) Received: from pc.. ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22e1522917asm60981715ad.201.2025.05.05.16.20.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 May 2025 16:20:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1746487224; x=1747092024; 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=oMNeg3Y4FuUndpYOZQCJwSPCGo/Nsl7SC/sGcqIL57A=; b=nPxqq+FaLGh9bTUB9lu7gYlyU1XF9ZKeayU8n3qV2OvgzmDhkgQaQJn4H/osNC8ryi Q+eBYbbxhAYN1BcZJSgDgPMMq8lfEs7/FguxjaA8ygzL02DvaExbyrEJ22ROOUjBd4Nx rfQ0vfMTA101tfzOyFIBPo/k7JZL6L4ouxvnxlcOMIFJNK5y2+nxWq2xUJ+tozBVW+Dx 3Vq8GoHlyRekOZ6PCVYZrDBJbTqbIsSU1rPLJXJuIxYeOWdInfUPFhd084xffKijnNhA 9FJ1i5RKcVaCbM5NeX8rxuaazKqAllaL7JLP9NvcAySrVtFN9tlxeiYblpxHK/F8YjI9 KY4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746487224; x=1747092024; 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=oMNeg3Y4FuUndpYOZQCJwSPCGo/Nsl7SC/sGcqIL57A=; b=DgCTrnQu14Ii+6wkQw7mnxjvOZAP67AHrLyqvcMnd72gUf166IRklkpy9aVjYWc/e4 xA5e0cyDl5e1IVBRHlLyjk1m4p245yUsHT/TKExmZCbglqD47KmP92AW7qX70D+sFXOV 1YSH3jnigRmuM5lU1wReaQwtH6nPR+Or/VYEBLStpu7HBJ7ISDoIPmG3J+J1O2/DB11k H/sVxa3Rqx83/9mQSR19DpCNUZFm7kZUp6Dz8WtRybqYqphvnXF6xj6mfkUlNQ6J5X+k VGwrZHr4DQnQzvV2zwFRnQLJHaKrqKLFNuP+dS0ElwKCwXYCoJX9mtdynjb8p2vjFpfx 66GA== X-Gm-Message-State: AOJu0YwEGUfrALxBXzIE/ZBkgtgOO9jqSS1QNKQc/cXeYWYeKdzJN9VF ftGh+NNg4XJ/O2MJaN8Hey1SN6ZuuDLERgYEGsdM+0LjncGl2n+XSEuFcbBKXYRzIIkpvEZV5Nv /uYE= X-Gm-Gg: ASbGnctl0T5w3JoxTg5cs2hokZrTyoY3L1xssR7KzMIPIb1KZH1IWheOh4KqzgWzl0D coOCqYyayStqVult5zvKc5ovCOubw/K2UnX+BLlx0JmXP8qx1qrp9Ai0y1EdNv8eXUXXv95wrq+ poPjCbmFjWSh8d4sVIy3nUUv5jSu+sIuviXzNqXrX31gv32pTCUcIPtvckrXQjbpESSKYjcFOBh OGM7uNR9Ys2F4zW/iugziPd9GkbKSbYrfgSM4sX19CkTWZI8ZrquczRP848kbpyPIXIIsZFB3U5 90ZD/e02eLsl4NtZtANaKGfe/kmxZG2CgqRK1X13 X-Google-Smtp-Source: AGHT+IHoFN+rr8Lwq19Sx2mB1Yb2Gf6GH5Yb4OTaXFvREpHxBgl5rUjVxpoL1Lsyqn6N2c59nXy8cg== X-Received: by 2002:a17:902:daca:b0:224:3d:2ffd with SMTP id d9443c01a7336-22e3285f134mr16144225ad.17.1746487224186; Mon, 05 May 2025 16:20:24 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: richard.henderson@linaro.org, anjo@rev.ng, Peter Maydell , alex.bennee@linaro.org, kvm@vger.kernel.org, Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-arm@nongnu.org, Pierrick Bouvier Subject: [PATCH v6 04/50] meson: apply target config for picking files from libsystem and libuser Date: Mon, 5 May 2025 16:19:29 -0700 Message-ID: <20250505232015.130990-5-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250505232015.130990-1-pierrick.bouvier@linaro.org> References: <20250505232015.130990-1-pierrick.bouvier@linaro.org> 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=2607:f8b0:4864:20::633; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x633.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=unavailable 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 @linaro.org) X-ZM-MESSAGEID: 1746487685114116600 Content-Type: text/plain; charset="utf-8" semihosting code needs to be included only if CONFIG_SEMIHOSTING is set. However, this is a target configuration, so we need to apply it to the libsystem libuser source sets. Acked-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- meson.build | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/meson.build b/meson.build index b2c79a7a928..1b365dcae17 100644 --- a/meson.build +++ b/meson.build @@ -4049,27 +4049,19 @@ common_ss.add(qom, qemuutil) common_ss.add_all(when: 'CONFIG_SYSTEM_ONLY', if_true: [system_ss]) common_ss.add_all(when: 'CONFIG_USER_ONLY', if_true: user_ss) =20 -libuser_ss =3D libuser_ss.apply({}) libuser =3D static_library('user', - libuser_ss.sources() + genh, + libuser_ss.all_sources() + genh, c_args: ['-DCONFIG_USER_ONLY', '-DCOMPILING_SYSTEM_VS_USER'], - dependencies: libuser_ss.dependencies(), + dependencies: libuser_ss.all_dependencies(), build_by_default: false) -libuser =3D declare_dependency(objects: libuser.extract_all_objects(recurs= ive: false), - dependencies: libuser_ss.dependencies()) -common_ss.add(when: 'CONFIG_USER_ONLY', if_true: libuser) =20 -libsystem_ss =3D libsystem_ss.apply({}) libsystem =3D static_library('system', - libsystem_ss.sources() + genh, + libsystem_ss.all_sources() + genh, c_args: ['-DCONFIG_SOFTMMU', '-DCOMPILING_SYSTEM_VS_USER'], - dependencies: libsystem_ss.dependencies(), + dependencies: libsystem_ss.all_dependencies(), build_by_default: false) -libsystem =3D declare_dependency(objects: libsystem.extract_all_objects(re= cursive: false), - dependencies: libsystem_ss.dependencies()) -common_ss.add(when: 'CONFIG_SYSTEM_ONLY', if_true: libsystem) =20 # Note that this library is never used directly (only through extract_obje= cts) # and is not built by default; therefore, source files not used by the bui= ld @@ -4308,6 +4300,16 @@ foreach target : target_dirs target_common =3D common_ss.apply(config_target, strict: false) objects =3D [common_all.extract_objects(target_common.sources())] arch_deps +=3D target_common.dependencies() + if target_type =3D=3D 'system' + src =3D libsystem_ss.apply(config_target, strict: false) + objects +=3D libsystem.extract_objects(src.sources()) + arch_deps +=3D src.dependencies() + endif + if target_type =3D=3D 'user' + src =3D libuser_ss.apply(config_target, strict: false) + objects +=3D libuser.extract_objects(src.sources()) + arch_deps +=3D src.dependencies() + endif if target_base_arch in target_common_arch_libs src =3D target_common_arch[target_base_arch].apply(config_target, stri= ct: false) lib =3D target_common_arch_libs[target_base_arch] --=20 2.47.2