mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-30 13:00:02 +00:00
thin-provisioning-tools: fix compile failure on 32bit BSPs
$ echo 'MACHINE = "qemux86"' >> conf/local.conf $ bitbake thin-provisioning-tools ``` error[E0080]: index out of bounds: the length is 1 but the index is 4 --> tmp/work/core2-32-wrs-linux/thin-provisioning-tools/1.3.1/build/target/release/build/devicemapper-sys-f88f57f28cd965d2/out/dm-bindings.rs:3:8718 | 3 | ...usize] ; ["Alignment of dm_ioctl"] [:: std :: mem :: align_of :: < dm_ioctl > () - 4usize] ; ["Offset of field: dm_ioctl::version"... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here ``` Inherit siteinfo to use SITEINFO_BITS replace TUNE_FEATURES to test 32bit BSPs Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
@@ -10,7 +10,7 @@ SRC_URI = " \
|
|||||||
git://github.com/device-mapper-utils/thin-provisioning-tools;branch=main;protocol=https;tag=v${PV} \
|
git://github.com/device-mapper-utils/thin-provisioning-tools;branch=main;protocol=https;tag=v${PV} \
|
||||||
file://0001-Use-portable-atomics-crate.patch \
|
file://0001-Use-portable-atomics-crate.patch \
|
||||||
file://disable-cargo-metadata.patch \
|
file://disable-cargo-metadata.patch \
|
||||||
${@bb.utils.contains('TUNE_FEATURES', '32', \
|
${@bb.utils.contains('SITEINFO_BITS', '32', \
|
||||||
'file://dms-no-layout-check.patch;patchdir=${CARGO_VENDORING_DIRECTORY}/devicemapper-sys-0.3.3', \
|
'file://dms-no-layout-check.patch;patchdir=${CARGO_VENDORING_DIRECTORY}/devicemapper-sys-0.3.3', \
|
||||||
'', d)} \
|
'', d)} \
|
||||||
"
|
"
|
||||||
@@ -19,7 +19,7 @@ SRCREV = "8b663fb4c6fb8e52ca06cea57b986c5ba45f668d"
|
|||||||
UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
|
UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
|
||||||
|
|
||||||
inherit cargo cargo-update-recipe-crates
|
inherit cargo cargo-update-recipe-crates
|
||||||
inherit pkgconfig
|
inherit pkgconfig siteinfo
|
||||||
|
|
||||||
DEPENDS += "udev libdevmapper libdevmapper-native clang-native"
|
DEPENDS += "udev libdevmapper libdevmapper-native clang-native"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user