Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "VMcore extraction tool" |
| 2 | DESCRIPTION = "\ |
| 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 | " |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 8 | HOMEPAGE = "https://github.com/makedumpfile/makedumpfile" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 9 | |
| 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
| 11 | LICENSE = "GPLv2.0" |
| 12 | |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 13 | SRCBRANCH ?= "master" |
William A. Kennington III | b95905d | 2021-06-02 12:40:56 -0700 | [diff] [blame] | 14 | SRCREV = "a9ad811c15e769c8e6d8d915a05cebc32f2ea2f5" |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 15 | |
| 16 | DEPENDS = "bzip2 zlib elfutils xz" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 17 | RDEPENDS_${PN}-tools = "perl ${PN}" |
| 18 | |
| 19 | # arm and aarch64 would compile but has never been tested upstream. mips would not compile. |
| 20 | # |
| 21 | COMPATIBLE_HOST = "(x86_64|i.86|powerpc|arm|aarch64).*-linux" |
| 22 | |
| 23 | PACKAGES =+ "${PN}-tools" |
| 24 | FILES_${PN}-tools = "${bindir}/*.pl" |
| 25 | |
| 26 | SRC_URI = "\ |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 27 | git://github.com/makedumpfile/makedumpfile;branch=${SRCBRANCH} \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 28 | file://0001-makedumpfile-replace-hardcode-CFLAGS.patch \ |
| 29 | file://0002-mem_section-Support-only-46-bit-for-MAX_PHYSMEM_BITS.patch \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 30 | " |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 31 | |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 32 | S = "${WORKDIR}/git" |
| 33 | |
| 34 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 35 | |
| 36 | SECTION = "base" |
| 37 | |
| 38 | # If we do not specify TARGET, makedumpfile will build for the host but use the |
| 39 | # target gcc. |
| 40 | # |
| 41 | EXTRA_OEMAKE = "\ |
| 42 | LINKTYPE=static \ |
| 43 | TARGET=${TARGET_ARCH} \ |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 44 | ${PACKAGECONFIG_CONFARGS} \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 45 | " |
| 46 | |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 47 | PACKAGECONFIG ??= "" |
| 48 | PACKAGECONFIG[lzo] = "USELZO=on,USELZO=off,lzo" |
| 49 | PACKAGECONFIG[snappy] = "USESNAPPY=on,USESNAPPY=off,snappy" |
| 50 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 51 | do_install () { |
| 52 | mkdir -p ${D}/usr/bin |
| 53 | install -m 755 ${S}/makedumpfile ${D}/usr/bin |
| 54 | install -m 755 ${S}/makedumpfile-R.pl ${D}/usr/bin |
| 55 | |
| 56 | mkdir -p ${D}/usr/share/man/man8 |
| 57 | install -m 644 ${S}/makedumpfile.8.gz ${D}/usr/share/man/man8 |
| 58 | |
| 59 | mkdir -p ${D}/usr/share/man/man5 |
| 60 | install -m 644 ${S}/makedumpfile.conf.5.gz ${D}/usr/share/man/man5 |
| 61 | |
| 62 | mkdir -p ${D}/etc/ |
| 63 | install -m 644 ${S}/makedumpfile.conf ${D}/etc/makedumpfile.conf.sample |
| 64 | } |