summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/bindgen-cli/bindgen-cli_0.64.0.bb
diff options
context:
space:
mode:
authorZoltán Böszörményi <zboszor@gmail.com>2023-03-08 06:59:05 +0100
committerKhem Raj <raj.khem@gmail.com>2023-03-08 13:21:05 -0800
commit296bf4b6b94847d55fbded746670b2b279d28bd2 (patch)
treef887ba1d65f092a37f5ae5bd01821a75d8d6cfc3 /recipes-devtools/bindgen-cli/bindgen-cli_0.64.0.bb
parent3237e56acab832434d30caf36c65fc860e8778f1 (diff)
downloadmeta-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.bb10
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."
2HOMEPAGE = "https://rust-lang.github.io/rust-bindgen/" 2HOMEPAGE = "https://rust-lang.github.io/rust-bindgen/"
3LICENSE = "BSD-3-Clause" 3LICENSE = "BSD-3-Clause"
4 4
5LIC_FILES_CHKSUM = "file://bindgen-cli/LICENSE;md5=0b9a98cb3dcdefcceb145324693fda9b" 5LIC_FILES_CHKSUM = "file://LICENSE;md5=0b9a98cb3dcdefcceb145324693fda9b"
6 6
7inherit rust cargo cargo-update-recipe-crates 7inherit rust cargo cargo-update-recipe-crates
8 8
9SRC_URI = "git://github.com/rust-lang/rust-bindgen.git;protocol=https;nobranch=1;branch=main" 9SRC_URI = "crate://crates.io/${BPN}/${PV}"
10SRCREV = "ae6817256ac557981906e93a1f866349db85053e"
11 10
12S = "${WORKDIR}/git" 11require ${BPN}-crates.inc
13
14CARGO_SRC_DIR = "bindgen-cli"
15CARGO_LOCK_SRC_DIR = "bindgen-cli"
16 12
17do_install:append:class-native() { 13do_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}"