2017-04-26 23:39:46 +02:00
|
|
|
config BR2_TARGET_GRUB2_ARCH_SUPPORTS
|
|
|
|
bool
|
|
|
|
default y if BR2_i386
|
|
|
|
default y if BR2_x86_64
|
2018-09-27 00:37:17 +02:00
|
|
|
default y if BR2_arm
|
|
|
|
default y if BR2_aarch64
|
|
|
|
depends on BR2_USE_MMU
|
2017-04-26 23:39:46 +02:00
|
|
|
|
2014-02-19 20:10:18 +01:00
|
|
|
config BR2_TARGET_GRUB2
|
|
|
|
bool "grub2"
|
2017-04-26 23:39:46 +02:00
|
|
|
depends on BR2_TARGET_GRUB2_ARCH_SUPPORTS
|
|
|
|
depends on BR2_USE_WCHAR
|
2021-09-23 17:57:21 +02:00
|
|
|
select BR2_TARGET_GRUB2_I386_PC if \
|
|
|
|
!BR2_TARGET_GRUB2_HAS_PTF && \
|
|
|
|
(BR2_i386 || BR2_x86_64)
|
|
|
|
select BR2_TARGET_GRUB2_ARM_UBOOT if \
|
|
|
|
!BR2_TARGET_GRUB2_HAS_PTF && \
|
|
|
|
BR2_arm
|
|
|
|
select BR2_TARGET_GRUB2_ARM64_EFI if BR2_aarch64
|
2014-02-19 20:10:18 +01:00
|
|
|
help
|
|
|
|
GNU GRUB is a Multiboot boot loader. It was derived from
|
|
|
|
GRUB, the GRand Unified Bootloader, which was originally
|
|
|
|
designed and implemented by Erich Stefan Boleyn. GRUB 2 has
|
|
|
|
replaced what was formerly known as GRUB (i.e. version
|
|
|
|
0.9x), which has, in turn, become GRUB Legacy.
|
|
|
|
|
|
|
|
Amongst others, GRUB2 offers EFI support, which GRUB Legacy
|
|
|
|
doesn't provide.
|
|
|
|
|
2023-01-09 08:33:52 +01:00
|
|
|
The file boot/grub2/grub.cfg is used by default as the Grub
|
|
|
|
configuration file. It can be overridden using a rootfs
|
|
|
|
overlay or post-build script.
|
|
|
|
|
2017-04-26 23:39:51 +02:00
|
|
|
For additional notes on using Grub 2 with Buildroot, see
|
|
|
|
boot/grub2/readme.txt
|
2014-02-19 20:10:18 +01:00
|
|
|
|
|
|
|
http://www.gnu.org/software/grub/
|
|
|
|
|
|
|
|
if BR2_TARGET_GRUB2
|
|
|
|
|
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-03 19:51:05 +01:00
|
|
|
config BR2_TARGET_GRUB2_HAS_LEGACY_BOOT
|
|
|
|
bool
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB2_HAS_EFI_BOOT
|
|
|
|
bool
|
|
|
|
|
2021-09-23 17:57:21 +02:00
|
|
|
config BR2_TARGET_GRUB2_HAS_PTF
|
|
|
|
bool
|
2014-02-19 20:10:18 +01:00
|
|
|
|
|
|
|
config BR2_TARGET_GRUB2_I386_PC
|
|
|
|
bool "i386-pc"
|
2018-09-27 00:37:17 +02:00
|
|
|
depends on BR2_i386 || BR2_x86_64
|
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-03 19:51:05 +01:00
|
|
|
select BR2_TARGET_GRUB2_HAS_LEGACY_BOOT
|
2014-02-19 20:10:18 +01:00
|
|
|
help
|
|
|
|
Select this option if the platform you're targetting is a
|
|
|
|
x86 or x86-64 legacy BIOS based platform.
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB2_I386_EFI
|
|
|
|
bool "i386-efi"
|
2018-09-27 00:37:17 +02:00
|
|
|
depends on BR2_i386 || BR2_x86_64
|
2021-09-23 17:57:21 +02:00
|
|
|
select BR2_TARGET_GRUB2_HAS_PTF
|
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-03 19:51:05 +01:00
|
|
|
select BR2_TARGET_GRUB2_HAS_EFI_BOOT
|
2014-02-19 20:10:18 +01:00
|
|
|
help
|
|
|
|
Select this option if the platform you're targetting has a
|
|
|
|
32 bits EFI BIOS. Note that some x86-64 platforms use a 32
|
|
|
|
bits EFI BIOS, and this option should be used in this case.
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB2_X86_64_EFI
|
|
|
|
bool "x86-64-efi"
|
2018-09-27 00:37:17 +02:00
|
|
|
depends on BR2_x86_64
|
2021-09-23 17:57:21 +02:00
|
|
|
select BR2_TARGET_GRUB2_HAS_PTF
|
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-03 19:51:05 +01:00
|
|
|
select BR2_TARGET_GRUB2_HAS_EFI_BOOT
|
2014-02-19 20:10:18 +01:00
|
|
|
help
|
|
|
|
Select this option if the platform you're targetting has a
|
|
|
|
64 bits EFI BIOS.
|
|
|
|
|
2018-09-27 00:37:17 +02:00
|
|
|
config BR2_TARGET_GRUB2_ARM_UBOOT
|
|
|
|
bool "arm-uboot"
|
|
|
|
depends on BR2_arm
|
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-03 19:51:05 +01:00
|
|
|
select BR2_TARGET_GRUB2_HAS_LEGACY_BOOT
|
2018-09-27 00:37:17 +02:00
|
|
|
help
|
|
|
|
Select this option if the platform you're targetting is an
|
|
|
|
ARM u-boot platform, and you want to boot Grub 2 as an u-boot
|
|
|
|
compatible image.
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB2_ARM_EFI
|
|
|
|
bool "arm-efi"
|
|
|
|
depends on BR2_arm
|
2021-09-23 17:57:21 +02:00
|
|
|
select BR2_TARGET_GRUB2_HAS_PTF
|
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-03 19:51:05 +01:00
|
|
|
select BR2_TARGET_GRUB2_HAS_EFI_BOOT
|
2018-09-27 00:37:17 +02:00
|
|
|
help
|
|
|
|
Select this option if the platform you're targetting is an
|
|
|
|
ARM platform and you want to boot Grub 2 as an EFI
|
|
|
|
application.
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB2_ARM64_EFI
|
|
|
|
bool "arm64-efi"
|
|
|
|
depends on BR2_aarch64
|
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-03 19:51:05 +01:00
|
|
|
select BR2_TARGET_GRUB2_HAS_EFI_BOOT
|
2018-09-27 00:37:17 +02:00
|
|
|
help
|
|
|
|
Select this option if the platform you're targetting is an
|
|
|
|
Aarch64 platform and you want to boot Grub 2 as an EFI
|
|
|
|
application.
|
|
|
|
|
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-03 19:51:05 +01:00
|
|
|
if BR2_TARGET_GRUB2_HAS_LEGACY_BOOT
|
2014-07-01 19:49:47 +02:00
|
|
|
|
2021-09-23 17:57:21 +02:00
|
|
|
comment "Options for the x86 legacy BIOS or ARM U-Boot support"
|
|
|
|
|
2014-07-01 19:49:47 +02:00
|
|
|
config BR2_TARGET_GRUB2_BOOT_PARTITION
|
|
|
|
string "boot partition"
|
|
|
|
default "hd0,msdos1"
|
|
|
|
help
|
|
|
|
Specify the partition where the /boot/grub/grub.cfg file is
|
|
|
|
located. Use 'hd0,msdos1' for the first partition of the
|
|
|
|
first disk if using a legacy partition table, or 'hd0,gpt1'
|
|
|
|
if using GPT partition table.
|
|
|
|
|
2021-09-23 17:57:21 +02:00
|
|
|
config BR2_TARGET_GRUB2_BUILTIN_MODULES_PC
|
2014-02-19 20:10:18 +01:00
|
|
|
string "builtin modules"
|
2021-09-23 17:57:21 +02:00
|
|
|
default BR2_TARGET_GRUB2_BUILTIN_MODULES if BR2_TARGET_GRUB2_BUILTIN_MODULES != "" # legacy
|
2016-03-28 23:03:36 +02:00
|
|
|
default "boot linux ext2 fat squash4 part_msdos part_gpt normal biosdisk" if BR2_TARGET_GRUB2_I386_PC
|
2018-09-27 00:37:17 +02:00
|
|
|
default "linux ext2 fat part_msdos normal" if BR2_TARGET_GRUB2_ARM_UBOOT
|
2014-02-19 20:10:18 +01:00
|
|
|
|
2021-09-23 17:57:21 +02:00
|
|
|
config BR2_TARGET_GRUB2_BUILTIN_CONFIG_PC
|
|
|
|
string "builtin config"
|
|
|
|
default BR2_TARGET_GRUB2_BUILTIN_CONFIG if BR2_TARGET_GRUB2_BUILTIN_CONFIG != "" # legacy
|
|
|
|
help
|
|
|
|
Path to a Grub 2 configuration file that will be embedded
|
|
|
|
into the Grub image itself. This allows to set the root
|
|
|
|
device and other configuration parameters, but however menu
|
|
|
|
entries cannot be described in this embedded configuration.
|
|
|
|
|
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-03 19:51:05 +01:00
|
|
|
endif # BR2_TARGET_GRUB2_HAS_LEGACY_BOOT
|
2021-09-23 17:57:21 +02:00
|
|
|
|
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-03 19:51:05 +01:00
|
|
|
if BR2_TARGET_GRUB2_HAS_EFI_BOOT
|
2021-09-23 17:57:21 +02:00
|
|
|
|
|
|
|
comment "Options for the EFI BIOS or ARM EFI support"
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB2_BUILTIN_MODULES_EFI
|
|
|
|
string "builtin modules"
|
|
|
|
default BR2_TARGET_GRUB2_BUILTIN_MODULES if BR2_TARGET_GRUB2_BUILTIN_MODULES != "" # legacy
|
|
|
|
default "boot linux ext2 fat squash4 part_msdos part_gpt normal efi_gop"
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB2_BUILTIN_CONFIG_EFI
|
2014-04-04 10:32:17 +02:00
|
|
|
string "builtin config"
|
2021-09-23 17:57:21 +02:00
|
|
|
default BR2_TARGET_GRUB2_BUILTIN_CONFIG if BR2_TARGET_GRUB2_BUILTIN_CONFIG != "" # legacy
|
2014-04-04 10:32:17 +02:00
|
|
|
help
|
|
|
|
Path to a Grub 2 configuration file that will be embedded
|
|
|
|
into the Grub image itself. This allows to set the root
|
|
|
|
device and other configuration parameters, but however menu
|
|
|
|
entries cannot be described in this embedded configuration.
|
|
|
|
|
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-03 19:51:05 +01:00
|
|
|
endif # BR2_TARGET_GRUB2_HAS_EFI_BOOT
|
|
|
|
|
2018-09-27 00:37:16 +02:00
|
|
|
config BR2_TARGET_GRUB2_INSTALL_TOOLS
|
|
|
|
bool "install tools"
|
|
|
|
help
|
|
|
|
Install support tools to interact with GNU GRUB Multiboot
|
|
|
|
boot loader.
|
|
|
|
|
|
|
|
This will also install the Grub 2 loadable modules to the
|
|
|
|
target.
|
|
|
|
|
2014-02-19 20:10:18 +01:00
|
|
|
endif # BR2_TARGET_GRUB2
|
2017-04-26 23:39:46 +02:00
|
|
|
|
|
|
|
comment "grub2 needs a toolchain w/ wchar"
|
|
|
|
depends on BR2_TARGET_GRUB2_ARCH_SUPPORTS
|
|
|
|
depends on !BR2_USE_WCHAR
|