kpatch.inc 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. SRC_URI = "git://github.com/dynup/kpatch.git;protocol=https \
  6. file://0001-kpatch-build-add-cross-compilation-support.patch \
  7. file://0002-kpatch-build-allow-overriding-of-distro-name.patch \
  8. "
  9. EXTRA_OEMAKE = " \
  10. PREFIX=${prefix} \
  11. BINDIR=${D}${bindir} \
  12. SBINDIR=${D}${sbindir} \
  13. LIBDIR=${D}${libdir} \
  14. MANDIR=${D}${mandir}/man1 \
  15. SYSTEMDDIR=${D}${systemd_system_unitdir} \
  16. UPSTARTDIR=${D}${sysconfdir}/init \
  17. DESTDIR=${D} \
  18. ARCH=${TARGET_ARCH} \
  19. BUILDMOD=no \
  20. CC='${CC}' \
  21. "
  22. S = "${WORKDIR}/git"
  23. do_install () {
  24. oe_runmake install
  25. }
  26. PACKAGES =+ "kpatch-build"
  27. PROVIDES += "kpatch-build"
  28. COMPATIBLE_HOST = "(x86_64).*-linux"
  29. COMPATIBLE_HOST_libc-musl = "null"
  30. RDEPENDS_${PN} = "bash binutils"
  31. RDEPENDS_kpatch-build = "bash glibc-utils"
  32. FILES_${PN} = " \
  33. ${sbindir}/kpatch \
  34. ${systemd_system_unitdir}/kpatch.service \
  35. ${mandir}/man1/kpatch.1.gz \
  36. ${sysconfdir}/init/kpatch.conf \
  37. "
  38. FILES_kpatch-build = " \
  39. ${bindir}/kpatch-build \
  40. ${libexecdir}/* \
  41. ${datadir}/kpatch \
  42. ${mandir}/man1/kpatch-build.1.gz \
  43. "
  44. SYSTEMD_SERVICE_${PN} = "kpatch.service"