Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | LICENSE = "MIT" |
| 2 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
| 3 | SUMMARY = "Basic grub.cfg for use in EFI systems" |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 4 | DESCRIPTION = "Grub might require different configuration file for \ |
| 5 | different machines." |
| 6 | HOMEPAGE = "https://www.gnu.org/software/grub/manual/grub/grub.html#Configuration" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 7 | |
| 8 | RPROVIDES_${PN} += "virtual/grub-bootconf" |
| 9 | |
| 10 | inherit grub-efi-cfg |
| 11 | |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 12 | require conf/image-uefi.conf |
| 13 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 14 | S = "${WORKDIR}" |
| 15 | |
| 16 | GRUB_CFG = "${S}/grub-bootconf" |
| 17 | LABELS = "boot" |
| 18 | |
| 19 | ROOT ?= "root=/dev/sda2" |
| 20 | |
| 21 | python do_configure() { |
| 22 | bb.build.exec_func('build_efi_cfg', d) |
| 23 | } |
| 24 | |
| 25 | do_configure[vardeps] += "APPEND ROOT" |
| 26 | |
| 27 | do_install() { |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 28 | install -d ${D}${EFI_FILES_PATH} |
| 29 | install grub-bootconf ${D}${EFI_FILES_PATH}/grub.cfg |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 30 | } |
| 31 | |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 32 | FILES_${PN} = "${EFI_FILES_PATH}/grub.cfg" |