grub-install: Check for arm-efi as a default target
Much like on x86, we can work out if the system is running on top of EFI firmware. If so, return "arm-efi". If not, fall back to "arm-uboot" as previously. Split out the code to (maybe) load the efivar module and check for /sys/firmware/efi into a common helper routine is_efi_system(). Signed-off-by: Steve McIntyre <93sam@debian.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
718b3fb1dc
commit
686db96646
4 changed files with 43 additions and 10 deletions
|
@ -18,6 +18,12 @@
|
|||
|
||||
#include <grub/util/install.h>
|
||||
|
||||
const char *
|
||||
grub_install_get_default_arm_platform (void)
|
||||
{
|
||||
return "arm-uboot";
|
||||
}
|
||||
|
||||
const char *
|
||||
grub_install_get_default_x86_platform (void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue