blob: a60ca112445c2234161c04b5427596e392121a1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
SUMMARY = "Tools of dm-thin device-mapper"
DESCRIPTION = "A suite of tools for manipulating the metadata of the dm-thin device-mapper target."
HOMEPAGE = "https://github.com/jthornber/thin-provisioning-tools"
LICENSE = "GPL-3.0-only"
SECTION = "devel"
LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"
S = "${WORKDIR}/git"
SRC_URI = " \
git://github.com/jthornber/thin-provisioning-tools;branch=main;protocol=https \
file://0001-Define-more-ioctl-codes-on-riscv32gc-unknown-linux-g.patch;patchdir=${CARGO_VENDORING_DIRECTORY}/libc-0.2.155 \
file://0001-Use-portable-atomics-crate.patch \
"
# v1.1.0
SRCREV = "b745ab35057bdd0a4f1406938916621dcf2b7ef6"
UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
inherit cargo cargo-update-recipe-crates
inherit pkgconfig
DEPENDS += "udev libdevmapper libdevmapper-native clang-native"
export LIBCLANG_PATH = "${STAGING_LIBDIR_NATIVE}"
export BINDGEN_EXTRA_CLANG_ARGS = "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} --target=${TARGET_SYS}"
require ${BPN}-crates.inc
require ${BPN}-git-crates.inc
do_install:append() {
install -d ${D}${sbindir}
mv ${D}${bindir}/pdata_tools ${D}${sbindir}/pdata_tools
rmdir --ignore-fail-on-non-empty ${D}${bindir}
for tool in cache_check \
cache_dump \
cache_metadata_size \
cache_repair \
cache_restore \
cache_writeback \
thin_check \
thin_delta \
thin_dump \
thin_ls \
thin_metadata_size \
thin_metadata_pack \
thin_metadata_unpack \
thin_repair \
thin_restore \
thin_rmap \
thin_shrink \
thin_trim \
era_check \
era_dump \
era_invalidate \
era_repair \
era_restore; do
ln -sf pdata_tools ${D}${sbindir}/$tool
done
}
|