From patchwork Mon Jan 26 23:51:14 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Murray X-Patchwork-Id: 79721 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5557D19528 for ; Mon, 26 Jan 2026 23:51:40 +0000 (UTC) Received: from mail-qk1-f194.google.com (mail-qk1-f194.google.com [209.85.222.194]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.36301.1769471498726570142 for ; Mon, 26 Jan 2026 15:51:38 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=VPu1kqEC; spf=pass (domain: konsulko.com, ip: 209.85.222.194, mailfrom: scott.murray@konsulko.com) Received: by mail-qk1-f194.google.com with SMTP id af79cd13be357-8c5265d06c3so669761085a.1 for ; Mon, 26 Jan 2026 15:51:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1769471497; x=1770076297; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=crBbSeKHohzuEtKhNllQNs7e6RXihrZTrSFArcQN+M0=; b=VPu1kqECkEMTatviPzpV3lfB3A7fMyfc/zeG2xyjAeisdfMpCI1jLG8X1FsItiw8Wi 14bUzD3iUVgz845FaUD8+SQcM1rpPSgudiPzunhThxrO8bGfqymlz2UegodSHXQZjgL+ FvRzHiDGlKVBkOzIXro/2mYDwtryj3Zw7MpKo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769471497; x=1770076297; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-g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q9LnViUHltfllLwByK+mdJS3kBx2D+6zxFp6j6YvGBxL/gvIsvByIzQr CNl1k/vAjgTFZFsNf6MOA6RqkJM3D3vQsfDNFby+gumya/M7JLC X-Received: by 2002:a05:620a:17a2:b0:8a2:bff5:40e3 with SMTP id af79cd13be357-8c6f98ca9b0mr695210285a.38.1769471497486; Mon, 26 Jan 2026 15:51:37 -0800 (PST) Received: from ghidorah.spiteful.org (107-179-213-3.cpe.teksavvy.com. [107.179.213.3]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8c6e37d1f14sm1061293885a.15.2026.01.26.15.51.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jan 2026 15:51:37 -0800 (PST) From: Scott Murray To: yocto-patches@lists.yoctoproject.org Subject: [meta-lts-mixins][scarthgap/rust][PATCH 10/11] rust-target-config.bbclass: apply signature exclusions only to native/nativesdk Date: Mon, 26 Jan 2026 18:51:14 -0500 Message-ID: <5996211fb8f22ce9e55e0fd876c5e3c73b29a06d.1769470900.git.scott.murray@konsulko.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 26 Jan 2026 23:51:40 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/3100 From: Alexander Kanavin Applying these exclusions to target builds and expecting that rebuilds happen when they should relies on incidental mechanisms like paths or other variables using the excluded ones. Rather than think of possible scenarions where it works, and where it doesn't, let's not exclude the variables from target builds, so task signature calculation can be relied on. [YOCTO #16132] Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie (adapted from oe-core commit 483005f752d89dacb869236a4941981f2698c29e) Signed-off-by: Scott Murray --- classes-recipe/rust-target-config.bbclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/classes-recipe/rust-target-config.bbclass b/classes-recipe/rust-target-config.bbclass index 73f13fd..0f1e2e1 100644 --- a/classes-recipe/rust-target-config.bbclass +++ b/classes-recipe/rust-target-config.bbclass @@ -415,8 +415,10 @@ def rust_gen_target(d, thing, wd, arch): with open(wd + rustsys + '.json', 'w') as f: json.dump(tspec, f, indent=4) -# These are accounted for in tmpdir path names so don't need to be in the task sig -rust_gen_target[vardepsexclude] += "ABIEXTENSION llvm_cpu TUNE_RISCV_ABI" +RUSTCONFIG_EXCLUDEVARS = "" +RUSTCONFIG_EXCLUDEVARS:class-native = "ABIEXTENSION llvm_cpu TUNE_RISCV_ABI" +RUSTCONFIG_EXCLUDEVARS:class-nativesdk = "ABIEXTENSION llvm_cpu TUNE_RISCV_ABI" +rust_gen_target[vardepsexclude] += "${RUSTCONFIG_EXCLUDEVARS}" do_rust_gen_targets[vardeps] += "DATA_LAYOUT TARGET_ENDIAN TARGET_POINTER_WIDTH TARGET_C_INT_WIDTH MAX_ATOMIC_WIDTH FEATURES"