diff options
| author | Bo Sun <bo.sun.cn@windriver.com> | 2025-07-24 15:55:00 +0800 |
|---|---|---|
| committer | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-09-06 16:15:36 +0200 |
| commit | d35cbff11e73778dbd186e1a7c84b81aa9819ae4 (patch) | |
| tree | 394967cb5fcba9368282d3cf0b036df626f5a3c2 | |
| parent | ddd6c3648afb6e55f02335d56ab16ebfee23eab7 (diff) | |
| download | meta-openembedded-d35cbff11e73778dbd186e1a7c84b81aa9819ae4.tar.gz | |
thin-provisioning-tools: fix bindgen build error with clang on octeontx2
Remove unsupported '-mcpu=octeontx2+crypto' from BINDGEN_EXTRA_CLANG_ARGS
as clang does not recognize 'octeontx2' as a valid target CPU, causing
bindgen to fail when generating Rust bindings.
Since bindgen only parses headers using Clang, CPU-specific options
like -mcpu are generally unnecessary.
Fixes build failure:
| error: unsupported argument 'octeontx2+crypto' to option '-mcpu='
| error: unknown target CPU 'octeontx2'
Signed-off-by: Bo Sun <bo.sun.cn@windriver.com>
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
| -rw-r--r-- | meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb b/meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb index a60ca11244..4ed885f8b3 100644 --- a/meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb +++ b/meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb | |||
| @@ -23,7 +23,10 @@ inherit pkgconfig | |||
| 23 | DEPENDS += "udev libdevmapper libdevmapper-native clang-native" | 23 | DEPENDS += "udev libdevmapper libdevmapper-native clang-native" |
| 24 | 24 | ||
| 25 | export LIBCLANG_PATH = "${STAGING_LIBDIR_NATIVE}" | 25 | export LIBCLANG_PATH = "${STAGING_LIBDIR_NATIVE}" |
| 26 | export BINDGEN_EXTRA_CLANG_ARGS = "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} --target=${TARGET_SYS}" | 26 | # Remove octeontx2 specific CPU flags that may cause issues with bindgen |
| 27 | BINDGEN_EXTRA_CLANG_ARGS = "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} --target=${TARGET_SYS}" | ||
| 28 | BINDGEN_EXTRA_CLANG_ARGS:remove = "-mcpu=octeontx2+crypto" | ||
| 29 | export BINDGEN_EXTRA_CLANG_ARGS | ||
| 27 | 30 | ||
| 28 | require ${BPN}-crates.inc | 31 | require ${BPN}-crates.inc |
| 29 | require ${BPN}-git-crates.inc | 32 | require ${BPN}-git-crates.inc |
