xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-initramfs/recipes-bsp/kexecboot/kexecboot_git.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "kexecboot linux-as-bootloader"
2*4882a593SmuzhiyunDESCRIPTION = "kexecboot is a graphical linux-as-bootloader implementation based on kexec."
3*4882a593SmuzhiyunHOMEPAGE = "http://kexecboot.org"
4*4882a593SmuzhiyunLICENSE = "GPL-2.0-only"
5*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
6*4882a593SmuzhiyunPV = "0.6+git${SRCPV}"
7*4882a593SmuzhiyunS = "${WORKDIR}/git"
8*4882a593SmuzhiyunSRC_URI = "git://github.com/kexecboot/kexecboot.git;branch=master;protocol=https"
9*4882a593SmuzhiyunSRC_URI:append:libc-klibc = "\
10*4882a593Smuzhiyun    file://0001-kexecboot-Use-new-reboot-API-with-klibc.patch \
11*4882a593Smuzhiyun    file://0001-make-Add-compiler-includes-in-cflags.patch \
12*4882a593Smuzhiyun"
13*4882a593SmuzhiyunSRCREV = "5a5e04be206140059f42ac786d424da1afaa04b6"
14*4882a593Smuzhiyuninherit autotools
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunEXTRA_OECONF = "--enable-textui --enable-delay=2 --enable-evdev-rate=1000,250"
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunCFLAGS += "-fcommon"
19*4882a593Smuzhiyun
20*4882a593Smuzhiyundo_install () {
21*4882a593Smuzhiyun    install -D -m 0755 ${B}/src/kexecboot ${D}${bindir}/kexecboot
22*4882a593Smuzhiyun    install -d ${D}/proc
23*4882a593Smuzhiyun    install -d ${D}/mnt
24*4882a593Smuzhiyun    install -d ${D}/dev
25*4882a593Smuzhiyun    install -d ${D}/sys
26*4882a593Smuzhiyun}
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunPACKAGE_ARCH = "${MACHINE_ARCH}"
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunFILES:${PN} += " ${bindir}/kexecboot /init /proc /mnt /dev /sys"
31*4882a593Smuzhiyun
32*4882a593Smuzhiyunpkg_postinst:${PN} () {
33*4882a593Smuzhiyun    ln -sf ${bindir}/kexecboot $D/init
34*4882a593Smuzhiyun}
35*4882a593Smuzhiyun
36*4882a593SmuzhiyunBBCLASSEXTEND = "klibc"
37