]> code.ossystems Code Review - openembedded-core.git/commit
classes: Add gummiboot class
authorStefan Stanacar <stefanx.stanacar@intel.com>
Thu, 6 Mar 2014 17:59:07 +0000 (19:59 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Mar 2014 16:29:56 +0000 (09:29 -0700)
commitb457e40fc69cc6503dc566f16495f03606e5333b
tree4066c18b52d664f7b0f0d626d4b0878e8e695e18
parent14e5de3b8f4d5902d0ac683ff45fb878e88b40ef
classes: Add gummiboot class

Adds a gummiboot class similar to grub-efi class and makes the necessary
changes so it can be used for live/hddimg images as well.

One can set EFI_PROVIDER = "gummiboot" in local.conf to use gummiboot instead of grub-efi.
Gummiboot requires some kernel options that are not enabled by default, so one has to build
with KERNEL_FEATURES_append = " cfg/efi-ext".

The install scripts have been updated too, keeping the old behaviour around,
but accounting for the new boot loader config files (if they exist).
It can be argued that the installer and bootimg are a bit wierd and not necessarily correct,
but I wanted to have the exact same behviour with gummiboot.
With the default EFI_PROVIDER = "grub-efi" nothing changes, everthing should be just as before.

I've tested live boot, install and normal boot on:
    - FRI2
    - genericx86-64 on NUC
with:
  EFI_PROVIDER = "gummiboot"
  KERNEL_FEATURES_append = " cfg/efi-ext"
in local.conf.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/gummiboot.bbclass [new file with mode: 0644]
meta/recipes-core/initrdscripts/files/init-install-efi.sh