From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8BFD30DD19 for ; Thu, 4 Dec 2025 07:55:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764834924; cv=none; b=X+TSCzqIeNSuSdFQ/qDZGm1raFRzjsJs0myyAHchjP7OvRLloAJSXUq/K9qk7hL9Q16POLzdUlX6oJoQHabGJnmh8kt/4ZnKqTz+Ec3skTnRXWiUfY8lY9gq5yb2cYV5h7yc0GROjxVDwxHExCKRFHGmzB9zK0kPHm7Rt4IaNBo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764834924; c=relaxed/simple; bh=3qpxref+fIz2xXinhbe3sx3733zbNSv6/Z2ffSx178M=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=k5d2qtYYO6i2L0LoRRcGZcrzFdGKptNySdkGMRCj0yQbnV1ndc2v3Tnsn52ZcQIHTVgxXZdOUkG3QLNQFqClnyUdsblpNUt4EEbXIZMjGIKmDIPuNd4slg/axjS+1YynpWQd7T1lptBHkMIkAfb6rcc/2PuEX4qf5zhZkskM+Sg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=EIElW2u5; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EIElW2u5" Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-597d712c0a7so362369e87.0 for ; Wed, 03 Dec 2025 23:55:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764834920; x=1765439720; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=9GoQPHU9Mpip9gR91Y3C4UfAkxVzcGqXTOlsYo71eKE=; b=EIElW2u5jB6al2G7Hz4H+ICcnjJydJC5JEg8pDOmsOWs1WAHX+3gKmCLNjnbIXH5J1 axb1jYI3oe7p0xaP7oU5IyB8yywm4dqcT+9lfJZGNJWPVDWh7hsZjEEMYKYzgrmxGfOW lJ8ZYfvYI2UlsYAn8/f+oqydj1qRGjmCk49x6uL9uIQfpbXU/VO/dQWU+myioW1H4iIY F4n7WtBZRrBefDZmEZoNvqA41zy1yUe7SQeb/ojksSIR/+OBaNByKJrydX1lcoVTMK5C mUVAUEU8lK5qGqgDtR+0arsJYcsi5IQBb2tLAXKOtPtpUn7571fZx4tRL7DcnANmwn+g dLsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764834920; x=1765439720; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9GoQPHU9Mpip9gR91Y3C4UfAkxVzcGqXTOlsYo71eKE=; b=u5d8xmbKqcSHA+jAQzze9mRpTXpPImV3cXV11yfKR4BwO49Cdcv9XOEfFBMhnqjw3d Z226DtpeJgyRsPhN1L20a+AD317fHvY0Dv4Ef0Oj1biggD3tiElR4yniGN1RrpDCjh6x s/UDA7Ypxqfni47Pn41sb+kF6s4Zlmb9xYpSYXljXmrlAYQw2pRDOuzgdFU2z5MLiDk+ n6mGoBiKl8oufiU6Y6eatodjSn9GtIMGeRpf45jC7ayIm6W3JC+fareUVcIoY5/4EVtg nEkgCfST90n+xCKndYG6/QTyf1i+UVFi8yFVaXStB80ryeJ68kXeeBvZ3yH1M2mPHoAu tKjg== X-Gm-Message-State: AOJu0YxMVQbetTki/uaFRL8WVGu2ZmBGzodyf2z9shMIoyVrkN88edgp Qy3v/wwUmqtTkDJzz8IAA2CzjcrNHJuKTJDjQQtUCq1QXL7vdS+IBLO/ X-Gm-Gg: ASbGncsR1/ihr56f+tl+ueBDHaVa/e7Z43pDRUlEC7G5sGC1MMZusYGEVyiH+n6Ta0x NJRmu5ixFEOK1PU7DCj54aXOrs/8qQ8Uq0YL8pG4XNsGSBhVqj81FtRH0VyQohI40hYU0ogJHVe belyZhWiT4s5m8kxhO+AW6oU/Y4rHmcw7pXo4XT1xL3kOkEuiGQUk+A4z21XZDkWYx0Y8fnFE93 DO8l14aifHQzUJyzW7hsaRUGIMeWWRDR5JNSRUdohrOJG+NJcSP1K3+txdLvwyZsw6a3QWdsjAl uw538luUoZpmPR1+dmzIwVQ3Yiqmv3eUPGKDb1fs/NEhrdTaXqcCc2akMk74GIK9eFx2Ga8KyI0 MDkDbIG4RON5GoKHCDjssbyKO9vkRpbdbvVFDVvnmm8S/VVavv3Ifn65h0QpabZM3N2YkTw== X-Google-Smtp-Source: AGHT+IHbKKwv3Cd14fMbRlzVZpxoDoNXbiyghddISZDjVQeIjBR6wf7cZ5tNAwGCF94LJdZf6RcGDg== X-Received: by 2002:a05:6512:3f14:b0:594:27fb:e7f5 with SMTP id 2adb3069b0e04-597d3feb5f1mr1891895e87.42.1764834919370; Wed, 03 Dec 2025 23:55:19 -0800 (PST) Received: from minun.felixc.at ([2a01:4f9:6b:1cc4::2]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-597d7c28019sm239190e87.69.2025.12.03.23.55.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Dec 2025 23:55:18 -0800 (PST) From: Asuna Yang X-Google-Original-From: Asuna Yang Subject: [PATCH v5 0/4] EDITME: RISC-V: re-enable gcc + rust builds Date: Thu, 04 Dec 2025 08:54:50 +0100 Message-Id: <20251204-gcc-rust-v5-v5-0-2d4f20d86c24@gmail.com> Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAEo+MWkC/x3MTQqAIBBA4avIrBvwJzddJVqIjjYbCy0JwrsnL b/Fey9UKkwVFvFCocaVjzxgJwF+dzkRchgGLbVVWs6YvMdy1wubReeip0BGkTMwirNQ5Oe/rVv vH4A+U+BdAAAA X-Change-ID: 20251204-gcc-rust-v5-aafcede31ea3 To: Nathan Chancellor , Nicolas Schier , Miguel Ojeda , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Nick Desaulniers , Bill Wendling , Justin Stitt , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Jonathan Corbet , Jason Montleon , Han Gao , Conor Dooley , Vivian Wang Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, llvm@lists.linux.dev, linux-riscv@lists.infradead.org, linux-doc@vger.kernel.org, Asuna Yang , Asuna Yang X-Mailer: b4 0.14.3 Previous v4 patch: https://lore.kernel.org/rust-for-linux/20251124-gcc-rust-v4-v4-0-4e06e07421ae@gmail.com/T/#t Compared to v4, this v5: - Placed `include Makefile.rust` under `ifdef need-compiler` branch. From my local testing, this did not cause any issues. - The Kconfig function now only tests backend flags and has been renamed to `bindgen-option`, without depending on environment variable. Added a comment explaining the meaning of "backend". - Improved the wording of commit messages and provided further details. Signed-off-by: Asuna Yang --- Asuna Yang (4): rust: export BINDGEN_TARGET from a separate Makefile rust: generate a fatal error if BINDGEN_TARGET is undefined rust: add a Kconfig function to test for support of bindgen options RISC-V: handle extension configs for bindgen, re-enable gcc + rust builds Documentation/rust/arch-support.rst | 2 +- Makefile | 3 ++- arch/riscv/Kconfig | 35 ++++++++++++++++++++++++++++++++++- rust/Makefile | 11 ++--------- scripts/Kconfig.include | 5 +++++ scripts/Makefile.rust | 14 ++++++++++++++ 6 files changed, 58 insertions(+), 12 deletions(-) --- base-commit: 559e608c46553c107dbba19dae0854af7b219400 change-id: 20251204-gcc-rust-v5-aafcede31ea3 Best regards, -- Asuna Yang