Skip to content

Commit

Permalink
config: rustc-1.71.jinja2: upgrade bindgen to 0.65.1
Browse files Browse the repository at this point in the history
bindgen 0.65.1 will be the next version supported by the kernel [1].

Therefore, add it to the latest build environment.

This also requires updating the name of the package from `bindgen` to
`bindgen-cli`, since bindgen 0.61.0 moved its CLI utility into a binary
crate called `bindgen-cli` [2].

Link: Rust-for-Linux/linux@08ab786 [1]
Link: rust-lang/rust-bindgen#2284 [2]
Signed-off-by: Miguel Ojeda <[email protected]>
  • Loading branch information
ojeda committed Aug 22, 2023
1 parent e23dd82 commit b961651
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/docker/rustc-1.71.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{{ super() }}

ARG RUST_VER=1.71.1
ARG BINDGEN_VER=0.56.0
ARG BINDGEN_VER=0.65.1

ARG RUST_TRIPLE=rust-${RUST_VER}-x86_64-unknown-linux-gnu

Expand Down Expand Up @@ -34,7 +34,7 @@ RUN git clone --recurse-submodules --branch $RUST_VER \
https://github.com/rust-lang/rust \
$(rustc --print sysroot)/lib/rustlib/src/rust

RUN cargo install --locked --version ${BINDGEN_VER} bindgen
RUN cargo install --locked --version ${BINDGEN_VER} bindgen-cli

# kernel build generates some rust code and tries to format it, if rustfmt is
# missing it will print non-fatal error noise
Expand Down

0 comments on commit b961651

Please sign in to comment.