xref: /OK3568_Linux_fs/buildroot/package/mender-grubenv/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_PACKAGE_MENDER_GRUBENV
2	bool "mender-grubenv"
3	depends on BR2_TARGET_GRUB2_ARCH_SUPPORTS
4	depends on BR2_PACKAGE_MENDER # runtime
5	depends on BR2_TARGET_GRUB2
6	depends on !(BR2_TARGET_GRUB2_HAS_LEGACY_BOOT && BR2_TARGET_GRUB2_HAS_EFI_BOOT)
7	help
8	  Contains the boot scripts and tools used by Mender to
9	  integrate with the GRUB bootloader.
10
11	  The following Grub modules must be selected for this package:
12	  loadenv hashsum echo halt gcry_sha256 test regexp
13
14	  https://github.com/mendersoftware/grub-mender-grubenv
15
16if BR2_PACKAGE_MENDER_GRUBENV
17
18config BR2_PACKAGE_MENDER_GRUBENV_DEFINES
19	string "path to grubenv defines"
20	help
21	  Specify a path to the mender grubenv defines file.
22	  If no path is specified, the example file in the source
23	  directory will be used.
24
25	  The example file in the source directory sets the following:
26	  mender_rootfsa_part=2
27	  mender_rootfsb_part=3
28	  mender_kernel_root_base=/dev/mmcblk0p
29	  mender_grub_storage_device=hd0
30	  kernel_imagetype=bzImage
31
32endif
33
34comment "mender-grubenv needs a grub2 bootloader"
35	depends on BR2_TARGET_GRUB2_ARCH_SUPPORTS
36	depends on BR2_PACKAGE_MENDER
37	depends on !BR2_TARGET_GRUB2
38
39comment "mender-grubenv does not support both legacy and EFI grub2 bootloaders at the same time"
40	depends on BR2_PACKAGE_MENDER
41	depends on BR2_TARGET_GRUB2_HAS_LEGACY_BOOT && BR2_TARGET_GRUB2_HAS_EFI_BOOT
42