diff options
| author | Zoltán Böszörményi <zboszor@gmail.com> | 2023-03-08 06:59:05 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-03-08 13:21:05 -0800 |
| commit | 296bf4b6b94847d55fbded746670b2b279d28bd2 (patch) | |
| tree | f887ba1d65f092a37f5ae5bd01821a75d8d6cfc3 /recipes-devtools/bindgen-cli/bindgen-cli_0.64.0.bb | |
| parent | 3237e56acab832434d30caf36c65fc860e8778f1 (diff) | |
| download | meta-clang-296bf4b6b94847d55fbded746670b2b279d28bd2.tar.gz | |
bindgen-cli: Add the build dependency crate:// links
"inherit cargo-update-recipe-crates" was misunderstood, as in
that it doesn't add the build dependencies transparently
during the build. Instead, "bitbake -c update_crates recipe-name"
must be run and the resulting recipe-name-crates.inc file
must be included in the recipe.
Update the recipe with using the crate:// link for bindgen-cli.
Otherwise "bitbake -c update_crates recipe-name" got confused
and produced empty output when using the source in a subdirectory
from the rust-bindgen GIT repo.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Diffstat (limited to 'recipes-devtools/bindgen-cli/bindgen-cli_0.64.0.bb')
| -rw-r--r-- | recipes-devtools/bindgen-cli/bindgen-cli_0.64.0.bb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/recipes-devtools/bindgen-cli/bindgen-cli_0.64.0.bb b/recipes-devtools/bindgen-cli/bindgen-cli_0.64.0.bb index 6f66549..80723ef 100644 --- a/recipes-devtools/bindgen-cli/bindgen-cli_0.64.0.bb +++ b/recipes-devtools/bindgen-cli/bindgen-cli_0.64.0.bb | |||
| @@ -2,17 +2,13 @@ SUMMARY = "Automatically generates Rust FFI bindings to C and C++ libraries." | |||
| 2 | HOMEPAGE = "https://rust-lang.github.io/rust-bindgen/" | 2 | HOMEPAGE = "https://rust-lang.github.io/rust-bindgen/" |
| 3 | LICENSE = "BSD-3-Clause" | 3 | LICENSE = "BSD-3-Clause" |
| 4 | 4 | ||
| 5 | LIC_FILES_CHKSUM = "file://bindgen-cli/LICENSE;md5=0b9a98cb3dcdefcceb145324693fda9b" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=0b9a98cb3dcdefcceb145324693fda9b" |
| 6 | 6 | ||
| 7 | inherit rust cargo cargo-update-recipe-crates | 7 | inherit rust cargo cargo-update-recipe-crates |
| 8 | 8 | ||
| 9 | SRC_URI = "git://github.com/rust-lang/rust-bindgen.git;protocol=https;nobranch=1;branch=main" | 9 | SRC_URI = "crate://crates.io/${BPN}/${PV}" |
| 10 | SRCREV = "ae6817256ac557981906e93a1f866349db85053e" | ||
| 11 | 10 | ||
| 12 | S = "${WORKDIR}/git" | 11 | require ${BPN}-crates.inc |
| 13 | |||
| 14 | CARGO_SRC_DIR = "bindgen-cli" | ||
| 15 | CARGO_LOCK_SRC_DIR = "bindgen-cli" | ||
| 16 | 12 | ||
| 17 | do_install:append:class-native() { | 13 | do_install:append:class-native() { |
| 18 | create_wrapper ${D}/${bindir}/bindgen LIBCLANG_PATH="${STAGING_LIBDIR_NATIVE}" | 14 | create_wrapper ${D}/${bindir}/bindgen LIBCLANG_PATH="${STAGING_LIBDIR_NATIVE}" |
