blob: b1e73e9542ed88d31cd841a38ddb44d6755c5722 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001SUMMARY = "Linux dynamic kernel patching infrastructure"
2DESCRIPTION = "kpatch is a Linux dynamic kernel patching infrastructure which allows you to patch a running kernel without rebooting or restarting any processes."
3LICENSE = "GPLv2 & LGPLv2"
4DEPENDS = "elfutils bash"
5
6SRC_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
11EXTRA_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
23S = "${WORKDIR}/git"
24
25do_install () {
26 oe_runmake install
27}
28
29PACKAGES =+ "kpatch-build"
30PROVIDES += "kpatch-build"
31
32COMPATIBLE_HOST = "(x86_64).*-linux"
33
34RDEPENDS_${PN} = "bash binutils"
35RDEPENDS_kpatch-build = "bash glibc-utils"
36
37FILES_${PN} = " \
38 ${sbindir}/kpatch \
39 ${systemd_system_unitdir}/kpatch.service \
40 ${mandir}/man1/kpatch.1.gz \
41 "
42FILES_kpatch-build = " \
43 ${bindir}/kpatch-build \
44 ${libexecdir}/* \
45 ${datadir}/kpatch \
46 ${mandir}/man1/kpatch-build.1.gz \
47 "
48
49SYSTEMD_SERVICE_${PN} = "kpatch.service"