blob: 08d983e62564e7b20594d4cd911191e36a453628 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001SUMMARY = "kexecboot linux-as-bootloader"
2DESCRIPTION = "kexecboot is a graphical linux-as-bootloader implementation based on kexec."
3HOMEPAGE = "http://kexecboot.org"
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
6PV = "0.6+git${SRCPV}"
7S = "${WORKDIR}/git"
Andrew Geissler595f6302022-01-24 19:11:47 +00008SRC_URI = "git://github.com/kexecboot/kexecboot.git;branch=master;protocol=https"
Patrick Williams213cb262021-08-07 19:21:33 -05009SRC_URI:append:libc-klibc = "\
Andrew Geisslerac970dd2021-02-12 15:32:45 -060010 file://0001-kexecboot-Use-new-reboot-API-with-klibc.patch \
11 file://0001-make-Add-compiler-includes-in-cflags.patch \
12"
Andrew Geissler82c905d2020-04-13 13:39:40 -050013SRCREV = "5a5e04be206140059f42ac786d424da1afaa04b6"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050014inherit autotools
15
16EXTRA_OECONF = "--enable-textui --enable-delay=2 --enable-evdev-rate=1000,250"
17
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050018CFLAGS += "-fcommon"
19
Brad Bishopd7bf8c12018-02-25 22:55:05 -050020do_install () {
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080021 install -D -m 0755 ${B}/src/kexecboot ${D}${bindir}/kexecboot
Brad Bishopd7bf8c12018-02-25 22:55:05 -050022 install -d ${D}/proc
23 install -d ${D}/mnt
24 install -d ${D}/dev
25 install -d ${D}/sys
26}
27
28PACKAGE_ARCH = "${MACHINE_ARCH}"
29
Patrick Williams213cb262021-08-07 19:21:33 -050030FILES:${PN} += " ${bindir}/kexecboot /init /proc /mnt /dev /sys"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050031
Patrick Williams213cb262021-08-07 19:21:33 -050032pkg_postinst:${PN} () {
Brad Bishopd7bf8c12018-02-25 22:55:05 -050033 ln -sf ${bindir}/kexecboot $D/init
34}
35
36BBCLASSEXTEND = "klibc"