diff options
| author | California Sullivan <california.l.sullivan@intel.com> | 2018-02-28 18:14:59 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-06 06:35:42 -0800 |
| commit | 067ef24d2e074a9030b963f42fdb86d4a844ec7a (patch) | |
| tree | 5440b556c967b13dbefed0ffe461c94c87de9765 /meta | |
| parent | a9921f64a7183e1c09e674a768fdcc2f52778ac3 (diff) | |
| download | poky-067ef24d2e074a9030b963f42fdb86d4a844ec7a.tar.gz | |
grub: create recipe for configuration
This makes use of the grub-efi-cfg bbclass that was split out to create
a grub.cfg file just like the old one.
(From OE-Core rev: eff14ba3e49d77bfc8167a19a0f58563270f2a51)
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-bsp/grub/grub-bootconf_1.00.bb | 29 |
1 files changed, 29 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..d376fde68b --- /dev/null +++ b/meta/recipes-bsp/grub/grub-bootconf_1.00.bb | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | LICENSE = "MIT" | ||
| 2 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
| 3 | SUMMARY = "Basic grub.cfg for use in EFI systems" | ||
| 4 | |||
| 5 | RPROVIDES_${PN} += "virtual/grub-bootconf" | ||
| 6 | |||
| 7 | inherit grub-efi-cfg | ||
| 8 | |||
| 9 | S = "${WORKDIR}" | ||
| 10 | |||
| 11 | GRUB_CFG = "${S}/grub-bootconf" | ||
| 12 | LABELS = "boot" | ||
| 13 | |||
| 14 | ROOT ?= "root=/dev/sda2" | ||
| 15 | |||
| 16 | python do_configure() { | ||
| 17 | bb.build.exec_func('build_efi_cfg', d) | ||
| 18 | } | ||
| 19 | |||
| 20 | do_configure[vardeps] += "APPEND ROOT" | ||
| 21 | |||
| 22 | do_install() { | ||
| 23 | install -d ${D}/boot | ||
| 24 | install -d ${D}/boot/EFI | ||
| 25 | install -d ${D}/boot/EFI/BOOT | ||
| 26 | install -m 0744 grub-bootconf ${D}/boot/EFI/BOOT/grub.cfg | ||
| 27 | } | ||
| 28 | |||
| 29 | FILES_${PN} = "/boot/EFI/BOOT/grub.cfg" | ||
