]> git.ipfire.org Git - thirdparty/grub.git/commit
grub-install: Check for arm-efi as a default target
authorSteve McIntyre <93sam@debian.org>
Mon, 11 Feb 2019 02:42:34 +0000 (02:42 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 25 Feb 2019 13:02:06 +0000 (14:02 +0100)
commit082fd84d525f8d6602f892160b77c0a948308a78
treedf0f8ad4e33891dbbed08dec8e19e734c7009896
parent566b16a0dc23d72357d2d75b781d3c7895b8a234
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.

Heavily inspired by the existing code for x86.

Signed-off-by: Steve McIntyre <93sam@debian.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/osdep/basic/platform.c
grub-core/osdep/linux/platform.c
include/grub/util/install.h
util/grub-install.c