blob: 13c4549211bbf849534f3b6fd50e8d87c38c3e20 [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
Andrew Geissler595f6302022-01-24 19:11:47 +00006SRC_URI = "git://github.com/dynup/kpatch.git;protocol=https;branch=master \
Brad Bishop316dfdd2018-06-25 12:45:53 -04007 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} \
Brad Bishop26bdd442019-08-16 17:08:17 -040018 UPSTARTDIR=${D}${sysconfdir}/init \
Brad Bishop316dfdd2018-06-25 12:45:53 -040019 DESTDIR=${D} \
Brad Bishop26bdd442019-08-16 17:08:17 -040020 ARCH=${TARGET_ARCH} \
Brad Bishop316dfdd2018-06-25 12:45:53 -040021 BUILDMOD=no \
22 CC='${CC}' \
23 "
24
25S = "${WORKDIR}/git"
26
27do_install () {
28 oe_runmake install
29}
30
31PACKAGES =+ "kpatch-build"
32PROVIDES += "kpatch-build"
33
34COMPATIBLE_HOST = "(x86_64).*-linux"
Patrick Williams213cb262021-08-07 19:21:33 -050035COMPATIBLE_HOST:libc-musl = "null"
Brad Bishop316dfdd2018-06-25 12:45:53 -040036
Patrick Williams213cb262021-08-07 19:21:33 -050037RDEPENDS:${PN} = "bash binutils"
38RDEPENDS:kpatch-build = "bash glibc-utils"
Brad Bishop316dfdd2018-06-25 12:45:53 -040039
Patrick Williams213cb262021-08-07 19:21:33 -050040FILES:${PN} = " \
Brad Bishop316dfdd2018-06-25 12:45:53 -040041 ${sbindir}/kpatch \
42 ${systemd_system_unitdir}/kpatch.service \
43 ${mandir}/man1/kpatch.1.gz \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080044 ${sysconfdir}/init/kpatch.conf \
Brad Bishop316dfdd2018-06-25 12:45:53 -040045 "
Patrick Williams213cb262021-08-07 19:21:33 -050046FILES:kpatch-build = " \
Brad Bishop316dfdd2018-06-25 12:45:53 -040047 ${bindir}/kpatch-build \
48 ${libexecdir}/* \
49 ${datadir}/kpatch \
50 ${mandir}/man1/kpatch-build.1.gz \
51 "
52
Patrick Williams213cb262021-08-07 19:21:33 -050053SYSTEMD_SERVICE:${PN} = "kpatch.service"