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 boot/afboot-stm32: fix build with gcc 10 2020-09-10 20:26:27 +02:00
arm-trusted-firmware boot/arm-trusted-firmware: point LICENSE_FILES to correct file 2021-09-24 21:49:37 +02:00
at91bootstrap boot/at91bootstrap: add legal information 2021-04-20 23:00:55 +02:00
at91bootstrap3 boot/at91bootstrap3: update to final 4.0.0 version 2021-08-19 22:45:14 +02:00
at91dataflashboot boot/*/Config.in: fix attributes order 2018-04-01 08:06:37 +02:00
barebox boot/barebox: bump version to 2021.10.0 2021-10-15 22:50:32 +02:00
beaglev-ddrinit boot/beaglev-ddrinit: update to c0839f25 to add LICENSE file 2021-07-13 21:18:19 +02:00
beaglev-secondboot boot/beaglev-secondboot: update to 2d200479 to add LICENSE file 2021-07-13 21:18:50 +02:00
binaries-marvell binaries-marvell: bump version and switch to common firmware 2019-09-21 18:31:26 +02:00
boot-wrapper-aarch64 boot/boot-wrapper-aarch64: bump version 2021-01-02 18:42:57 +01:00
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 boot/lpc32xxcdl: switch upstream location 2020-12-29 18:11:49 +01:00
mv-ddr-marvell boot/mv-ddr-marvell: fix license file hash 2021-09-24 21:45:20 +02:00
mxs-bootlets boot/*/Config.in: fix attributes order 2018-04-01 08:06:37 +02:00
opensbi boot/opensbi: introduce BR2_TARGET_OPENSBI_FW_FDT_PATH 2021-07-18 21:24:37 +02:00
optee-os boot/optee-os: bump to version 3.15.0 2021-10-27 22:28:03 +02:00
s500-bootloader boot: add s500-bootloader package 2016-05-26 10:35:34 +02:00
shim boot/shim: re-enable on ARM32 2021-04-06 11:46:09 +02:00
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 support/download: change format of archives generated from git 2021-01-10 22:06:58 +01:00
common.mk Fix build reproducibility in Make 3.82 2013-09-06 23:27:42 +02:00
Config.in boot/sun20i-d1-spl: new package 2021-11-08 09:45:40 +01:00