[SRU O/U][PATCH 0/1] Allow overriding Rust tools

Stefan Bader stefan.bader at canonical.com
Wed Oct 16 15:07:43 UTC 2024


== SRU Justification ==

BugLink: https://bugs.launchpad.net/bugs/2084693

=== Impact ===

When we backport kernels as HWE kernels we want to enable Rust in 24.04/Noble builds. For that it necessary to pin to specific versions of the compiler and binutils. For this we need a method to optionally override those for the kernel build.

=== Fix ===

The suggested change adds the ability to specify which (with full path if needed) command to run as rustc, rustfmt, and bindgen. It does not change the defaults that are used.

=== Test ===

Check the build log for RUSTC, HOSTRUSTC, RUSTFMT, and BINDGEN being added to the make calls.

=== Regression Potential ===

This would affect the outcome of the "rustavailable" check or anything related to the rust modules being created. Since the defaults remain unchanged this is not expected.

Stefan Bader (1):
  UBUNTU: [Packaging] Allow rust overrides

 debian/rules.d/0-common-vars.mk | 7 +++++++
 1 file changed, 7 insertions(+)

-- 
2.34.1




More information about the kernel-team mailing list