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 | |
| 6 | SRC_URI = "git://github.com/dynup/kpatch.git;protocol=https \ |
| 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} \ |
| 18 | DESTDIR=${D} \ |
| 19 | BUILDMOD=no \ |
| 20 | CC='${CC}' \ |
| 21 | " |
| 22 | |
| 23 | S = "${WORKDIR}/git" |
| 24 | |
| 25 | do_install () { |
| 26 | oe_runmake install |
| 27 | } |
| 28 | |
| 29 | PACKAGES =+ "kpatch-build" |
| 30 | PROVIDES += "kpatch-build" |
| 31 | |
| 32 | COMPATIBLE_HOST = "(x86_64).*-linux" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 33 | COMPATIBLE_HOST_libc-musl = "null" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 34 | |
| 35 | RDEPENDS_${PN} = "bash binutils" |
| 36 | RDEPENDS_kpatch-build = "bash glibc-utils" |
| 37 | |
| 38 | FILES_${PN} = " \ |
| 39 | ${sbindir}/kpatch \ |
| 40 | ${systemd_system_unitdir}/kpatch.service \ |
| 41 | ${mandir}/man1/kpatch.1.gz \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 42 | ${sysconfdir}/init/kpatch.conf \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 43 | " |
| 44 | FILES_kpatch-build = " \ |
| 45 | ${bindir}/kpatch-build \ |
| 46 | ${libexecdir}/* \ |
| 47 | ${datadir}/kpatch \ |
| 48 | ${mandir}/man1/kpatch-build.1.gz \ |
| 49 | " |
| 50 | |
| 51 | SYSTEMD_SERVICE_${PN} = "kpatch.service" |