diff options
Diffstat (limited to 'meta/recipes-bsp/grub/grub-bootconf_1.00.bb')
-rw-r--r-- | meta/recipes-bsp/grub/grub-bootconf_1.00.bb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-bsp/grub/grub-bootconf_1.00.bb b/meta/recipes-bsp/grub/grub-bootconf_1.00.bb new file mode 100644 index 0000000000..783e30bf38 --- /dev/null +++ b/meta/recipes-bsp/grub/grub-bootconf_1.00.bb @@ -0,0 +1,32 @@ +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" +SUMMARY = "Basic grub.cfg for use in EFI systems" +DESCRIPTION = "Grub might require different configuration file for \ +different machines." +HOMEPAGE = "https://www.gnu.org/software/grub/manual/grub/grub.html#Configuration" + +RPROVIDES:${PN} += "virtual-grub-bootconf" + +inherit grub-efi-cfg + +require conf/image-uefi.conf + +S = "${WORKDIR}" + +GRUB_CFG = "${S}/grub-bootconf" +LABELS = "boot" + +ROOT ?= "root=/dev/sda2" + +python do_configure() { + bb.build.exec_func('build_efi_cfg', d) +} + +do_configure[vardeps] += "APPEND ROOT" + +do_install() { + install -d ${D}${EFI_FILES_PATH} + install grub-bootconf ${D}${EFI_FILES_PATH}/grub.cfg +} + +FILES:${PN} = "${EFI_FILES_PATH}/grub.cfg" |