Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | SUMMARY = "Linux dynamic kernel patching infrastructure" |
| 2 | DESCRIPTION = "kpatch is a Linux dynamic kernel patching infrastructure which allows you to patch a running kernel without rebooting or restarting any processes." |
| 3 | LICENSE = "GPLv2 & LGPLv2" |
| 4 | DEPENDS = "elfutils bash" |
| 5 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 6 | SRC_URI = "git://github.com/dynup/kpatch.git;protocol=https;branch=master \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 7 | file://0001-kpatch-build-add-cross-compilation-support.patch \ |
| 8 | file://0002-kpatch-build-allow-overriding-of-distro-name.patch \ |
| 9 | " |
| 10 | |
| 11 | EXTRA_OEMAKE = " \ |
| 12 | PREFIX=${prefix} \ |
| 13 | BINDIR=${D}${bindir} \ |
| 14 | SBINDIR=${D}${sbindir} \ |
| 15 | LIBDIR=${D}${libdir} \ |
| 16 | MANDIR=${D}${mandir}/man1 \ |
| 17 | SYSTEMDDIR=${D}${systemd_system_unitdir} \ |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 18 | UPSTARTDIR=${D}${sysconfdir}/init \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 19 | DESTDIR=${D} \ |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 20 | ARCH=${TARGET_ARCH} \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 21 | BUILDMOD=no \ |
| 22 | CC='${CC}' \ |
| 23 | " |
| 24 | |
| 25 | S = "${WORKDIR}/git" |
| 26 | |
| 27 | do_install () { |
| 28 | oe_runmake install |
| 29 | } |
| 30 | |
| 31 | PACKAGES =+ "kpatch-build" |
| 32 | PROVIDES += "kpatch-build" |
| 33 | |
| 34 | COMPATIBLE_HOST = "(x86_64).*-linux" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 35 | COMPATIBLE_HOST:libc-musl = "null" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 36 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 37 | RDEPENDS:${PN} = "bash binutils" |
| 38 | RDEPENDS:kpatch-build = "bash glibc-utils" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 39 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 40 | FILES:${PN} = " \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 41 | ${sbindir}/kpatch \ |
| 42 | ${systemd_system_unitdir}/kpatch.service \ |
| 43 | ${mandir}/man1/kpatch.1.gz \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 44 | ${sysconfdir}/init/kpatch.conf \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 45 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 46 | FILES:kpatch-build = " \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 47 | ${bindir}/kpatch-build \ |
| 48 | ${libexecdir}/* \ |
| 49 | ${datadir}/kpatch \ |
| 50 | ${mandir}/man1/kpatch-build.1.gz \ |
| 51 | " |
| 52 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 53 | SYSTEMD_SERVICE:${PN} = "kpatch.service" |