kumquat-buildroot/boot
Adam Duskett 7a68960b68 boot/grub2/Config.in: add symbols to represent legacy and EFI boot
There are cases to want a synthetic information whether the legacy BIOS
or U-Boot boot scheme, or the EFI boot scheme, are enabled, without
resorting to testing all and each platforms.

This is already the cae in grub2 itself, for the configuration of the
BIOS/U-Boot boot partition, and builtin modules and configuration on one
hand, and the EFI builtin modules and configuraiton on the other hand.

It is also the case for mender-grubenv, which will want to know if
either or both are enabled, but without having to resort to testing all
the cases.

Add two new symbols, that each represent those conditions:
  * BR2_TARGET_GRUB2_HAS_LEGACY_BOOT
  * BR2_TARGET_GRUB2_HAS_EFI_BOOT

Each target selects the appropriate bool, which makes it much more
simple for other packages such as mender-grubenv to check if grub legacy
or EFI is selected.

And of course, we also make use of those symbols in grub2 itself, to
simplify the conditions for showing.hiding legacy and EFI options.

Additionally (but that does not merit being in its own patch), add a
comment on the closing 'endif' for the EFI part.

Signed-off-by: Adam Duskett <aduskett@gmail.com>
[yann.morin.1998@free.fr:
  - s/BR2_TARGET_GRUB_/BR2_TARGET_GRUB2_/
  - rename variables anyway
  - use variables in grub2 itself
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Köry Maincent <kory.maincent@bootlin.com>
2021-12-04 18:04:08 +01:00
..
afboot-stm32
arm-trusted-firmware boot/arm-trusted-firmware: point LICENSE_FILES to correct file 2021-09-24 21:49:37 +02:00
at91bootstrap
at91bootstrap3
at91dataflashboot
barebox boot/barebox: bump version to 2021.10.0 2021-10-15 22:50:32 +02:00
beaglev-ddrinit
beaglev-secondboot
binaries-marvell
boot-wrapper-aarch64
edk2 boot/edk2: add support to build 32bit edk2 when using x86_64 architecture 2021-10-15 21:34:25 +02:00
grub2 boot/grub2/Config.in: add symbols to represent legacy and EFI boot 2021-12-04 18:04:08 +01:00
gummiboot board, boot, package: remove usage of startup.nsh in EFI partition 2021-09-27 21:27:02 +02:00
lpc32xxcdl
mv-ddr-marvell boot/mv-ddr-marvell: fix license file hash 2021-09-24 21:45:20 +02:00
mxs-bootlets
opensbi
optee-os boot/optee-os: bump to version 3.15.0 2021-10-27 22:28:03 +02:00
s500-bootloader
shim
sun20i-d1-spl boot/sun20i-d1-spl: new package 2021-11-08 09:45:40 +01:00
syslinux boot/syslinux: define OBJCOPY and AS 2021-11-30 17:39:58 +01:00
uboot boot/uboot: kconfig needs the toolchain 2021-11-21 22:28:35 +01:00
vexpress-firmware
common.mk
Config.in boot/sun20i-d1-spl: new package 2021-11-08 09:45:40 +01:00