blob: 307c0e85d838094cac99cf43d28218b29fbd24cf [file] [log] [blame]
Patrick Williamsddad1a12017-02-23 20:36:32 -06001SUMMARY = "A command line tool for updating and displaying info about boot loaders"
2DESCRIPTION = "grubby is a command line tool for updating and displaying information \
3about the configuration files for the grub, lilo, elilo (ia64), yaboot (powerpc) and \
4zipl (s390) boot loaders. It is primarily designed to be used from scripts which install \
5new kernels and need to find information about the current boot environment. \
6"
Brad Bishop316dfdd2018-06-25 12:45:53 -04007HOMEPAGE = "https://github.com/rhboot/grubby"
Andrew Geissler9aee5002022-03-30 16:27:02 +00008LICENSE = "GPL-2.0-or-later"
Patrick Williamsddad1a12017-02-23 20:36:32 -06009
10LIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a"
11
12DEPENDS = "popt util-linux"
Patrick Williams213cb262021-08-07 19:21:33 -050013DEPENDS:append:libc-musl = " libexecinfo"
Patrick Williamsddad1a12017-02-23 20:36:32 -060014
Brad Bishop316dfdd2018-06-25 12:45:53 -040015S = "${WORKDIR}/git"
16SRCREV = "79c5cfa02c567efdc5bb18cdd584789e2e35aa23"
Andrew Geissler595f6302022-01-24 19:11:47 +000017SRC_URI = "git://github.com/rhboot/grubby.git;protocol=https;;branch=master \
Patrick Williamsddad1a12017-02-23 20:36:32 -060018 file://grubby-rename-grub2-editenv-to-grub-editenv.patch \
19 file://run-ptest \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050020 file://0001-Add-another-variable-LIBS-to-provides-libraries-from.patch \
21 file://0002-include-paths.h-for-_PATH_MOUNTED.patch \
22 "
Patrick Williamsddad1a12017-02-23 20:36:32 -060023
Patrick Williams213cb262021-08-07 19:21:33 -050024RDEPENDS:${PN} += "dracut"
Patrick Williamsddad1a12017-02-23 20:36:32 -060025
26inherit autotools-brokensep ptest
27
Brad Bishopd7bf8c12018-02-25 22:55:05 -050028EXTRA_OEMAKE = "-e 'CC=${CC}' 'LDFLAGS=${LDFLAGS}' LIBS='${LIBS}'"
Patrick Williamsddad1a12017-02-23 20:36:32 -060029
Patrick Williams213cb262021-08-07 19:21:33 -050030LIBS:libc-musl = "-lexecinfo"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050031LIBS ?= ""
Patrick Williamsddad1a12017-02-23 20:36:32 -060032do_install_ptest() {
33 install -d ${D}${PTEST_PATH}
34 cp -r ${S}/test ${S}/test.sh ${D}${PTEST_PATH}
35 sed -i 's|./grubby|grubby|' ${D}${PTEST_PATH}/test.sh
36}
37
Patrick Williams213cb262021-08-07 19:21:33 -050038RDEPENDS:${PN} += "bash"
39RDEPENDS:${PN}-ptest = "util-linux-getopt bash"
Patrick Williamsddad1a12017-02-23 20:36:32 -060040
41COMPATIBLE_HOST = '(x86_64.*|i.86.*)-(linux|freebsd.*)'