xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-initramfs/recipes-devtools/grubby/grubby_8.40.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "A command line tool for updating and displaying info about boot loaders"
2*4882a593SmuzhiyunDESCRIPTION = "grubby is a command line tool for updating and displaying information \
3*4882a593Smuzhiyunabout the configuration files for the grub, lilo, elilo (ia64), yaboot (powerpc) and \
4*4882a593Smuzhiyunzipl (s390) boot loaders. It is primarily designed to be used from scripts which install \
5*4882a593Smuzhiyunnew kernels and need to find information about the current boot environment. \
6*4882a593Smuzhiyun"
7*4882a593SmuzhiyunHOMEPAGE = "https://github.com/rhboot/grubby"
8*4882a593SmuzhiyunLICENSE = "GPL-2.0-or-later"
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a"
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunDEPENDS = "popt util-linux"
13*4882a593SmuzhiyunDEPENDS:append:libc-musl = " libexecinfo"
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunS = "${WORKDIR}/git"
16*4882a593SmuzhiyunSRCREV = "79c5cfa02c567efdc5bb18cdd584789e2e35aa23"
17*4882a593SmuzhiyunSRC_URI = "git://github.com/rhboot/grubby.git;protocol=https;;branch=master \
18*4882a593Smuzhiyun           file://grubby-rename-grub2-editenv-to-grub-editenv.patch \
19*4882a593Smuzhiyun           file://run-ptest \
20*4882a593Smuzhiyun           file://0001-Add-another-variable-LIBS-to-provides-libraries-from.patch \
21*4882a593Smuzhiyun           file://0002-include-paths.h-for-_PATH_MOUNTED.patch \
22*4882a593Smuzhiyun           "
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunRDEPENDS:${PN} += "dracut"
25*4882a593Smuzhiyun
26*4882a593Smuzhiyuninherit autotools-brokensep ptest
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunEXTRA_OEMAKE = "-e 'CC=${CC}' 'LDFLAGS=${LDFLAGS}' LIBS='${LIBS}'"
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunLIBS:libc-musl = "-lexecinfo"
31*4882a593SmuzhiyunLIBS ?= ""
32*4882a593Smuzhiyundo_install_ptest() {
33*4882a593Smuzhiyun    install -d ${D}${PTEST_PATH}
34*4882a593Smuzhiyun    cp -r ${S}/test ${S}/test.sh ${D}${PTEST_PATH}
35*4882a593Smuzhiyun    sed -i 's|./grubby|grubby|' ${D}${PTEST_PATH}/test.sh
36*4882a593Smuzhiyun}
37*4882a593Smuzhiyun
38*4882a593SmuzhiyunRDEPENDS:${PN} += "bash"
39*4882a593SmuzhiyunRDEPENDS:${PN}-ptest = "util-linux-getopt bash"
40*4882a593Smuzhiyun
41*4882a593SmuzhiyunCOMPATIBLE_HOST = '(x86_64.*|i.86.*)-(linux|freebsd.*)'
42