[PATCH V4 3/3] powerpc: Enable Rust for ppc64le
Mukesh Kumar Chaurasiya
mkchauras at gmail.com
Tue Feb 10 16:29:53 AEDT 2026
On Mon, Feb 09, 2026 at 12:52:26PM +0100, Miguel Ojeda wrote:
> On Mon, Feb 9, 2026 at 11:55 AM Mukesh Kumar Chaurasiya (IBM)
> <mkchauras at gmail.com> wrote:
> >
> > diff --git a/rust/Makefile b/rust/Makefile
> > index ae22f2c5f0b3..14febe9c7643 100644
> > --- a/rust/Makefile
> > +++ b/rust/Makefile
> > @@ -392,7 +392,15 @@ BINDGEN_TARGET_x86 := x86_64-linux-gnu
> > BINDGEN_TARGET_arm64 := aarch64-linux-gnu
> > BINDGEN_TARGET_arm := arm-linux-gnueabi
> > BINDGEN_TARGET_loongarch := loongarch64-linux-gnusf
> > +
> > +ifdef CONFIG_PPC64
> > +ifdef CONFIG_CPU_LITTLE_ENDIAN
> > +BINDGEN_TARGET_powerpc := powerpc64le-linux-gnu
> > +endif
> > +else
> > BINDGEN_TARGET_powerpc := powerpc-linux-gnu
> > +endif
> > +
> > BINDGEN_TARGET_um := $(BINDGEN_TARGET_$(SUBARCH))
> > BINDGEN_TARGET := $(BINDGEN_TARGET_$(SRCARCH))
>
> This looks reasonable.
>
> My only nit is that we could trigger an error in the nested if since
> you wrote the if already. Otherwise, we could remove the nested one
> until ppc64 is supported, or am I missing something?
>
I will remove the nested if till we have support for the ppc64 big
endian.
Regards,
Mukesh
> Either way, for the Rust bits if powerpc maintainers are taking this:
>
> Acked-by: Miguel Ojeda <ojeda at kernel.org>
>
> Thanks!
>
> Cheers,
> Miguel
More information about the Linuxppc-dev
mailing list