| Message ID | 20251119164804.256364-5-Harish.Sadineni@windriver.com |
|---|---|
| State | New |
| Headers | show |
| Series | Enable rust support for linux kernel | expand |
On 2025-11-19 11:47 a.m., Harish.Sadineni@windriver.com wrote: > From: Harish Sadineni<Harish.Sadineni@windriver.com> > > When enabling Rust in kernel, native and nativesdk variants of rust need > to conditionally install Rust standard library sources to support 'make rustavailable' > in the kernel build system. > > By adding 'rust-kernel' to DISTRO_FEATURES_FILTER_NATIVE and > DISTRO_FEATURES_FILTER_NATIVESDK, the 'rust-kernel' feature automatically > propagates from target DISTRO_FEATURES to native/nativesdk builds > > Signed-off-by: Harish Sadineni<Harish.Sadineni@windriver.com> > --- > meta/conf/bitbake.conf | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf > index 5406e542db..8d6211efab 100644 > --- a/meta/conf/bitbake.conf > +++ b/meta/conf/bitbake.conf > @@ -916,8 +916,8 @@ DISTRO_FEATURES_NATIVESDK:mingw32 = "x11 ipv6" > > # Normally target distro features will not be applied to native builds: > # Native distro features on this list will use the target feature value > -DISTRO_FEATURES_FILTER_NATIVE ?= "api-documentation debuginfod opencl opengl wayland" > -DISTRO_FEATURES_FILTER_NATIVESDK ?= "api-documentation debuginfod opencl opengl wayland" > +DISTRO_FEATURES_FILTER_NATIVE ?= "api-documentation debuginfod opencl opengl wayland rust-kernel" > +DISTRO_FEATURES_FILTER_NATIVESDK ?= "api-documentation debuginfod opencl opengl wayland rust-kernel" The list was sorted so please keep it that way. ../Randy > > DISTRO_FEATURES_BACKFILL = "pulseaudio sysvinit gobject-introspection-data ldconfig" > MACHINE_FEATURES_BACKFILL = "rtc qemu-usermode"
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 5406e542db..8d6211efab 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -916,8 +916,8 @@ DISTRO_FEATURES_NATIVESDK:mingw32 = "x11 ipv6" # Normally target distro features will not be applied to native builds: # Native distro features on this list will use the target feature value -DISTRO_FEATURES_FILTER_NATIVE ?= "api-documentation debuginfod opencl opengl wayland" -DISTRO_FEATURES_FILTER_NATIVESDK ?= "api-documentation debuginfod opencl opengl wayland" +DISTRO_FEATURES_FILTER_NATIVE ?= "api-documentation debuginfod opencl opengl wayland rust-kernel" +DISTRO_FEATURES_FILTER_NATIVESDK ?= "api-documentation debuginfod opencl opengl wayland rust-kernel" DISTRO_FEATURES_BACKFILL = "pulseaudio sysvinit gobject-introspection-data ldconfig" MACHINE_FEATURES_BACKFILL = "rtc qemu-usermode"