diff options
Diffstat (limited to 'meta-oe/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.3.1.bb')
| -rw-r--r-- | meta-oe/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.3.1.bb | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.3.1.bb b/meta-oe/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.3.1.bb new file mode 100644 index 0000000000..4d8d2a04df --- /dev/null +++ b/meta-oe/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.3.1.bb | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | SUMMARY = "Tools of dm-thin device-mapper" | ||
| 2 | DESCRIPTION = "A suite of tools for manipulating the metadata of the dm-thin device-mapper target." | ||
| 3 | HOMEPAGE = "https://github.com/device-mapper-utils/thin-provisioning-tools" | ||
| 4 | LICENSE = "GPL-3.0-only" | ||
| 5 | SECTION = "devel" | ||
| 6 | |||
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464" | ||
| 8 | |||
| 9 | SRC_URI = " \ | ||
| 10 | git://github.com/device-mapper-utils/thin-provisioning-tools;branch=main;protocol=https;tag=v${PV} \ | ||
| 11 | file://0001-Use-portable-atomics-crate.patch \ | ||
| 12 | file://disable-cargo-metadata.patch \ | ||
| 13 | ${@bb.utils.contains('TUNE_FEATURES', '32', \ | ||
| 14 | 'file://dms-no-layout-check.patch;patchdir=${CARGO_VENDORING_DIRECTORY}/devicemapper-sys-0.3.3', \ | ||
| 15 | '', d)} \ | ||
| 16 | " | ||
| 17 | |||
| 18 | SRCREV = "8b663fb4c6fb8e52ca06cea57b986c5ba45f668d" | ||
| 19 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" | ||
| 20 | |||
| 21 | inherit cargo cargo-update-recipe-crates | ||
| 22 | inherit pkgconfig | ||
| 23 | |||
| 24 | DEPENDS += "udev libdevmapper libdevmapper-native clang-native" | ||
| 25 | |||
| 26 | export LIBCLANG_PATH = "${STAGING_LIBDIR_NATIVE}" | ||
| 27 | # Remove octeontx2 specific CPU flags that may cause issues with bindgen | ||
| 28 | BINDGEN_EXTRA_CLANG_ARGS = "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} --target=${TARGET_SYS}" | ||
| 29 | BINDGEN_EXTRA_CLANG_ARGS:remove = "-mcpu=octeontx2+crypto" | ||
| 30 | export BINDGEN_EXTRA_CLANG_ARGS | ||
| 31 | |||
| 32 | require ${BPN}-crates.inc | ||
| 33 | |||
| 34 | do_install:append() { | ||
| 35 | install -d ${D}${sbindir} | ||
| 36 | mv ${D}${bindir}/pdata_tools ${D}${sbindir}/pdata_tools | ||
| 37 | rmdir --ignore-fail-on-non-empty ${D}${bindir} | ||
| 38 | |||
| 39 | for tool in cache_check \ | ||
| 40 | cache_dump \ | ||
| 41 | cache_metadata_size \ | ||
| 42 | cache_repair \ | ||
| 43 | cache_restore \ | ||
| 44 | cache_writeback \ | ||
| 45 | thin_check \ | ||
| 46 | thin_delta \ | ||
| 47 | thin_dump \ | ||
| 48 | thin_ls \ | ||
| 49 | thin_metadata_size \ | ||
| 50 | thin_metadata_pack \ | ||
| 51 | thin_metadata_unpack \ | ||
| 52 | thin_repair \ | ||
| 53 | thin_restore \ | ||
| 54 | thin_rmap \ | ||
| 55 | thin_shrink \ | ||
| 56 | thin_trim \ | ||
| 57 | era_check \ | ||
| 58 | era_dump \ | ||
| 59 | era_invalidate \ | ||
| 60 | era_repair \ | ||
| 61 | era_restore; do | ||
| 62 | ln -sf pdata_tools ${D}${sbindir}/$tool | ||
| 63 | done | ||
| 64 | } | ||
