diff options
Diffstat (limited to 'meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb')
-rw-r--r-- | meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb | 60 |
1 files changed, 60 insertions, 0 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 new file mode 100644 index 0000000000..3ec7d486fa --- /dev/null +++ b/meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb | |||
@@ -0,0 +1,60 @@ | |||
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/jthornber/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/jthornber/thin-provisioning-tools;branch=main;protocol=https \ | ||
11 | file://0001-Define-more-ioctl-codes-on-riscv32gc-unknown-linux-g.patch;patchdir=${CARGO_VENDORING_DIRECTORY}/libc-0.2.155 \ | ||
12 | file://0001-Use-portable-atomics-crate.patch \ | ||
13 | " | ||
14 | |||
15 | # v1.1.0 | ||
16 | SRCREV = "b745ab35057bdd0a4f1406938916621dcf2b7ef6" | ||
17 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" | ||
18 | |||
19 | inherit cargo cargo-update-recipe-crates | ||
20 | inherit pkgconfig | ||
21 | |||
22 | DEPENDS += "udev libdevmapper libdevmapper-native clang-native" | ||
23 | |||
24 | export LIBCLANG_PATH = "${STAGING_LIBDIR_NATIVE}" | ||
25 | export BINDGEN_EXTRA_CLANG_ARGS = "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} --target=${TARGET_SYS}" | ||
26 | |||
27 | require ${BPN}-crates.inc | ||
28 | require ${BPN}-git-crates.inc | ||
29 | |||
30 | do_install:append() { | ||
31 | install -d ${D}${sbindir} | ||
32 | mv ${D}${bindir}/pdata_tools ${D}${sbindir}/pdata_tools | ||
33 | rmdir --ignore-fail-on-non-empty ${D}${bindir} | ||
34 | |||
35 | for tool in cache_check \ | ||
36 | cache_dump \ | ||
37 | cache_metadata_size \ | ||
38 | cache_repair \ | ||
39 | cache_restore \ | ||
40 | cache_writeback \ | ||
41 | thin_check \ | ||
42 | thin_delta \ | ||
43 | thin_dump \ | ||
44 | thin_ls \ | ||
45 | thin_metadata_size \ | ||
46 | thin_metadata_pack \ | ||
47 | thin_metadata_unpack \ | ||
48 | thin_repair \ | ||
49 | thin_restore \ | ||
50 | thin_rmap \ | ||
51 | thin_shrink \ | ||
52 | thin_trim \ | ||
53 | era_check \ | ||
54 | era_dump \ | ||
55 | era_invalidate \ | ||
56 | era_repair \ | ||
57 | era_restore; do | ||
58 | ln -sf pdata_tools ${D}${sbindir}/$tool | ||
59 | done | ||
60 | } | ||