[PATCH v6 0/4] RISC-V: re-enable gcc + rust builds

Asuna Yang posted 4 patches 1 month, 1 week ago
Documentation/rust/arch-support.rst |  2 +-
Makefile                            |  3 ++-
arch/riscv/Kconfig                  | 35 ++++++++++++++++++++++++++++++++++-
rust/Makefile                       | 17 ++++++++---------
scripts/Kconfig.include             |  5 +++++
scripts/Makefile.rust               | 10 ++++++++++
6 files changed, 60 insertions(+), 12 deletions(-)
[PATCH v6 0/4] RISC-V: re-enable gcc + rust builds
Posted by Asuna Yang 1 month, 1 week ago
Previous v5 patch:
https://lore.kernel.org/20251204-gcc-rust-v5-v5-0-2d4f20d86c24@gmail.com

Changes in v6:
- Simplified `bindgen-backend-option` Kconfig function by using
`/dev/null` with clang option `-x c` instead of `touch`ing a new temp
file.
- Moved the `BINDGEN_TARGET` check to `rust/Makefile` so it only
performs the check when Rust is enabled, avoiding breaking targets that
do not support Rust builds.
- Updated my git email to the institutional email address.

Signed-off-by: Asuna Yang <xinrui.riscv@isrc.iscas.ac.cn>
---
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                       | 17 ++++++++---------
 scripts/Kconfig.include             |  5 +++++
 scripts/Makefile.rust               | 10 ++++++++++
 6 files changed, 60 insertions(+), 12 deletions(-)
---
base-commit: 8640b74557fc8b4c300030f6ccb8cd078f665ec8
change-id: 20251204-gcc-rust-v5-aafcede31ea3

Best regards,
-- 
Asuna Yang <xinrui.riscv@isrc.iscas.ac.cn>
Re: [PATCH v6 0/4] RISC-V: re-enable gcc + rust builds
Posted by Asuna Yang 2 weeks, 3 days ago
Gently ping. I think this patch is ready for review. Is there anything 
else I need to do before merging?

Best regards,
Asuna Yang
Re: [PATCH v6 0/4] RISC-V: re-enable gcc + rust builds
Posted by Paul Walmsley 2 weeks, 1 day ago
Hi Asuna,

On Thu, 22 Jan 2026, Asuna Yang wrote:

> Gently ping. I think this patch is ready for review. Is there anything else I
> need to do before merging?

I guess this should probably go in via the arch/riscv tree?  If you agree, 
then from a maintenance point of view, it would be good to get some acks 
for the first and third patches from the relevant maintainers.


thanks,

- Paul
Re: [PATCH v6 0/4] RISC-V: re-enable gcc + rust builds
Posted by Conor Dooley 1 week, 3 days ago
On Sat, Jan 24, 2026 at 12:47:26AM -0700, Paul Walmsley wrote:
> Hi Asuna,
> 
> On Thu, 22 Jan 2026, Asuna Yang wrote:
> 
> > Gently ping. I think this patch is ready for review. Is there anything else I
> > need to do before merging?
> 
> I guess this should probably go in via the arch/riscv tree?  If you agree, 
> then from a maintenance point of view, it would be good to get some acks 
> for the first and third patches from the relevant maintainers.

Not a rust maintainer of course, but from a "I was involved in this and
haven't replied in a while to the versions" point of view:
Acked-by: Conor Dooley <conor.dooley@microchip.com>

I've just not had the time to test this and so I've been putting off
replying, but the idea is what I wanted to have done and I appreciate
the work done on it by Asuna, so I'm acking it now rather than stalling
until I can test and give an r-b. It's the right thing to do for a !gcc
point of view too in my opinion, even if the possible issues are
unlikely to manifest.

Cheers,
Conor.
Re: [PATCH v6 0/4] RISC-V: re-enable gcc + rust builds
Posted by Asuna Yang 1 month, 1 week ago
I am replying using my previous personal email address to cross-verify 
that <xinrui.riscv@isrc.iscas.ac.cn> is indeed my own.