mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
https://github.com/rust-lang/rust-bindgen/releases/tag/v0.72.1 We need to add "refs/tags/" to RUST_BINDGEN_SITE because the github repo contains a tag and a branch with the same name: $ wget -q https://github.com/rust-lang/rust-bindgen/archive/v0.72.1/rust-bindgen-0.72.1-cargo4.tar.gz -O - the given path has multiple possibilities: #<Git::Ref:0x00007d64db1eed90>, #<Git::Ref:0x00007d64db1e7c70> Fixes a build error with mesa3d 26.x and the upcoming llvm 22 bump: https://github.com/rust-lang/rust-bindgen/issues/3264#issuecomment-3218111176 Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Co-authored-by: Julien Olivain <ju.o@free.fr> Signed-off-by: Julien Olivain <ju.o@free.fr>
23 lines
832 B
Makefile
23 lines
832 B
Makefile
################################################################################
|
|
#
|
|
# rust-bindgen
|
|
#
|
|
################################################################################
|
|
|
|
RUST_BINDGEN_VERSION = 0.72.1
|
|
RUST_BINDGEN_SITE = $(call github,rust-lang,rust-bindgen,refs/tags/v$(RUST_BINDGEN_VERSION))
|
|
RUST_BINDGEN_LICENSE = BSD-3-clause
|
|
RUST_BINDGEN_LICENSE_FILES = LICENSE
|
|
|
|
# This is actually a runtime dependency (bindgen loads libclang at
|
|
# runtime), but as it's a host package, we have no other option but to
|
|
# handle it as a build dependency.
|
|
HOST_RUST_BINDGEN_DEPENDENCIES = host-clang
|
|
|
|
# The Cargo.toml at the root directory is a "virtual manifest".
|
|
# Since we only want to build and install bindgen use the Cargo.toml
|
|
# from the bindgen-cli subdirectory.
|
|
RUST_BINDGEN_SUBDIR = bindgen-cli
|
|
|
|
$(eval $(host-cargo-package))
|