summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-kernel/makedumpfile/makedumpfile_1.7.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-kernel/makedumpfile/makedumpfile_1.7.0.bb')
-rw-r--r--meta-oe/recipes-kernel/makedumpfile/makedumpfile_1.7.0.bb63
1 files changed, 63 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/makedumpfile/makedumpfile_1.7.0.bb b/meta-oe/recipes-kernel/makedumpfile/makedumpfile_1.7.0.bb
new file mode 100644
index 000000000..e703ee71b
--- /dev/null
+++ b/meta-oe/recipes-kernel/makedumpfile/makedumpfile_1.7.0.bb
@@ -0,0 +1,63 @@
1SUMMARY = "VMcore extraction tool"
2DESCRIPTION = "\
3 This program is used to extract a subset of the memory available either \
4 via /dev/mem or /proc/vmcore (for crashdumps). It is used to get memory \
5 images without extra uneeded information (zero pages, userspace programs, \
6 etc). \
7"
8HOMEPAGE = "https://github.com/makedumpfile/makedumpfile"
9
10LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
11LICENSE = "GPLv2.0"
12
13SRCBRANCH ?= "master"
14SRCREV = "06ef8e2b814feb08a668b7a3783c86674e49a7b1"
15
16DEPENDS = "bzip2 zlib elfutils xz"
17RDEPENDS:${PN}-tools = "perl ${PN}"
18
19# mips would not compile.
20COMPATIBLE_HOST = "(x86_64|i.86|powerpc|arm|aarch64).*-linux"
21
22PACKAGES =+ "${PN}-tools"
23FILES:${PN}-tools = "${bindir}/*.pl"
24
25SRC_URI = "\
26 git://github.com/makedumpfile/makedumpfile;branch=${SRCBRANCH};protocol=https \
27 file://0001-makedumpfile-replace-hardcode-CFLAGS.patch \
28"
29
30S = "${WORKDIR}/git"
31
32UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
33
34SECTION = "base"
35
36# If we do not specify TARGET, makedumpfile will build for the host but use the
37# target gcc.
38#
39EXTRA_OEMAKE = "\
40 LINKTYPE=static \
41 TARGET=${TARGET_ARCH} \
42 ${PACKAGECONFIG_CONFARGS} \
43"
44
45PACKAGECONFIG ??= ""
46PACKAGECONFIG[lzo] = "USELZO=on,USELZO=off,lzo"
47PACKAGECONFIG[snappy] = "USESNAPPY=on,USESNAPPY=off,snappy"
48PACKAGECONFIG[zstd] = "USEZSTD=on,USEZSTD=off,zstd"
49
50do_install () {
51 mkdir -p ${D}/usr/bin
52 install -m 755 ${S}/makedumpfile ${D}/usr/bin
53 install -m 755 ${S}/makedumpfile-R.pl ${D}/usr/bin
54
55 mkdir -p ${D}/usr/share/man/man8
56 install -m 644 ${S}/makedumpfile.8.gz ${D}/usr/share/man/man8
57
58 mkdir -p ${D}/usr/share/man/man5
59 install -m 644 ${S}/makedumpfile.conf.5.gz ${D}/usr/share/man/man5
60
61 mkdir -p ${D}/etc/
62 install -m 644 ${S}/makedumpfile.conf ${D}/etc/makedumpfile.conf.sample
63}