blob: 783e30bf38700373421d17eebfaa92de71092282 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001LICENSE = "MIT"
2LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
3SUMMARY = "Basic grub.cfg for use in EFI systems"
Brad Bishopa34c0302019-09-23 22:34:48 -04004DESCRIPTION = "Grub might require different configuration file for \
5different machines."
6HOMEPAGE = "https://www.gnu.org/software/grub/manual/grub/grub.html#Configuration"
Brad Bishop316dfdd2018-06-25 12:45:53 -04007
Andrew Geisslerd159c7f2021-09-02 21:05:58 -05008RPROVIDES:${PN} += "virtual-grub-bootconf"
Brad Bishop316dfdd2018-06-25 12:45:53 -04009
10inherit grub-efi-cfg
11
Brad Bishopa34c0302019-09-23 22:34:48 -040012require conf/image-uefi.conf
13
Brad Bishop316dfdd2018-06-25 12:45:53 -040014S = "${WORKDIR}"
15
16GRUB_CFG = "${S}/grub-bootconf"
17LABELS = "boot"
18
19ROOT ?= "root=/dev/sda2"
20
21python do_configure() {
22 bb.build.exec_func('build_efi_cfg', d)
23}
24
25do_configure[vardeps] += "APPEND ROOT"
26
27do_install() {
Brad Bishopa34c0302019-09-23 22:34:48 -040028 install -d ${D}${EFI_FILES_PATH}
29 install grub-bootconf ${D}${EFI_FILES_PATH}/grub.cfg
Brad Bishop316dfdd2018-06-25 12:45:53 -040030}
31
Patrick Williams213cb262021-08-07 19:21:33 -050032FILES:${PN} = "${EFI_FILES_PATH}/grub.cfg"