Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 1 | SUMMARY = "A command line tool for updating and displaying info about boot loaders" |
| 2 | DESCRIPTION = "grubby is a command line tool for updating and displaying information \ |
| 3 | about the configuration files for the grub, lilo, elilo (ia64), yaboot (powerpc) and \ |
| 4 | zipl (s390) boot loaders. It is primarily designed to be used from scripts which install \ |
| 5 | new kernels and need to find information about the current boot environment. \ |
| 6 | " |
| 7 | LICENSE = "GPLv2+" |
| 8 | |
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a" |
| 10 | |
| 11 | DEPENDS = "popt util-linux" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame^] | 12 | DEPENDS_append_libc-musl = " libexecinfo" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 13 | |
| 14 | SRC_URI = "https://github.com/rhinstaller/${BPN}/archive/${PV}-1.tar.gz;downloadfilename=${BPN}-${PV}-1.tar.gz \ |
| 15 | file://grubby-rename-grub2-editenv-to-grub-editenv.patch \ |
| 16 | file://run-ptest \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame^] | 17 | file://0001-Add-another-variable-LIBS-to-provides-libraries-from.patch \ |
| 18 | file://0002-include-paths.h-for-_PATH_MOUNTED.patch \ |
| 19 | " |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 20 | |
| 21 | SRC_URI[md5sum] = "1005907b275d6d93368d045274537d86" |
| 22 | SRC_URI[sha256sum] = "85f1c678484f74c8978e8643451594967defce463a86c35cb1ee56d12767a9df" |
| 23 | |
| 24 | S = "${WORKDIR}/${BPN}-${PV}-1" |
| 25 | |
| 26 | RDEPENDS_${PN} += "dracut" |
| 27 | |
| 28 | inherit autotools-brokensep ptest |
| 29 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame^] | 30 | EXTRA_OEMAKE = "-e 'CC=${CC}' 'LDFLAGS=${LDFLAGS}' LIBS='${LIBS}'" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 31 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame^] | 32 | LIBS_libc-musl = "-lexecinfo" |
| 33 | LIBS ?= "" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 34 | do_install_ptest() { |
| 35 | install -d ${D}${PTEST_PATH} |
| 36 | cp -r ${S}/test ${S}/test.sh ${D}${PTEST_PATH} |
| 37 | sed -i 's|./grubby|grubby|' ${D}${PTEST_PATH}/test.sh |
| 38 | } |
| 39 | |
| 40 | RDEPENDS_${PN}-ptest = "util-linux-getopt bash" |
| 41 | |
| 42 | COMPATIBLE_HOST = '(x86_64.*|i.86.*)-(linux|freebsd.*)' |