Config.in 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. config BR2_TARGET_GRUB2_ARCH_SUPPORTS
  2. bool
  3. default y if BR2_i386
  4. default y if BR2_x86_64
  5. default y if BR2_arm
  6. default y if BR2_aarch64
  7. depends on BR2_USE_MMU
  8. config BR2_TARGET_GRUB2
  9. bool "grub2"
  10. depends on BR2_TARGET_GRUB2_ARCH_SUPPORTS
  11. depends on BR2_USE_WCHAR
  12. help
  13. GNU GRUB is a Multiboot boot loader. It was derived from
  14. GRUB, the GRand Unified Bootloader, which was originally
  15. designed and implemented by Erich Stefan Boleyn. GRUB 2 has
  16. replaced what was formerly known as GRUB (i.e. version
  17. 0.9x), which has, in turn, become GRUB Legacy.
  18. Amongst others, GRUB2 offers EFI support, which GRUB Legacy
  19. doesn't provide.
  20. For additional notes on using Grub 2 with Buildroot, see
  21. boot/grub2/readme.txt
  22. http://www.gnu.org/software/grub/
  23. if BR2_TARGET_GRUB2
  24. choice
  25. prompt "Platform"
  26. config BR2_TARGET_GRUB2_I386_PC
  27. bool "i386-pc"
  28. depends on BR2_i386 || BR2_x86_64
  29. help
  30. Select this option if the platform you're targetting is a
  31. x86 or x86-64 legacy BIOS based platform.
  32. config BR2_TARGET_GRUB2_I386_EFI
  33. bool "i386-efi"
  34. depends on BR2_i386 || BR2_x86_64
  35. help
  36. Select this option if the platform you're targetting has a
  37. 32 bits EFI BIOS. Note that some x86-64 platforms use a 32
  38. bits EFI BIOS, and this option should be used in this case.
  39. config BR2_TARGET_GRUB2_X86_64_EFI
  40. bool "x86-64-efi"
  41. depends on BR2_x86_64
  42. help
  43. Select this option if the platform you're targetting has a
  44. 64 bits EFI BIOS.
  45. config BR2_TARGET_GRUB2_ARM_UBOOT
  46. bool "arm-uboot"
  47. depends on BR2_arm
  48. help
  49. Select this option if the platform you're targetting is an
  50. ARM u-boot platform, and you want to boot Grub 2 as an u-boot
  51. compatible image.
  52. config BR2_TARGET_GRUB2_ARM_EFI
  53. bool "arm-efi"
  54. depends on BR2_arm
  55. help
  56. Select this option if the platform you're targetting is an
  57. ARM platform and you want to boot Grub 2 as an EFI
  58. application.
  59. config BR2_TARGET_GRUB2_ARM64_EFI
  60. bool "arm64-efi"
  61. depends on BR2_aarch64
  62. help
  63. Select this option if the platform you're targetting is an
  64. Aarch64 platform and you want to boot Grub 2 as an EFI
  65. application.
  66. endchoice
  67. if BR2_TARGET_GRUB2_I386_PC || BR2_TARGET_GRUB2_ARM_UBOOT
  68. config BR2_TARGET_GRUB2_BOOT_PARTITION
  69. string "boot partition"
  70. default "hd0,msdos1"
  71. help
  72. Specify the partition where the /boot/grub/grub.cfg file is
  73. located. Use 'hd0,msdos1' for the first partition of the
  74. first disk if using a legacy partition table, or 'hd0,gpt1'
  75. if using GPT partition table.
  76. endif # BR2_TARGET_GRUB2_I386_PC || BR2_TARGET_GRUB2_ARM_UBOOT
  77. config BR2_TARGET_GRUB2_BUILTIN_MODULES
  78. string "builtin modules"
  79. default "boot linux ext2 fat squash4 part_msdos part_gpt normal biosdisk" if BR2_TARGET_GRUB2_I386_PC
  80. default "boot linux ext2 fat squash4 part_msdos part_gpt normal efi_gop" \
  81. if BR2_TARGET_GRUB2_I386_EFI || BR2_TARGET_GRUB2_X86_64_EFI || \
  82. BR2_TARGET_GRUB2_ARM_EFI || BR2_TARGET_GRUB2_ARM64_EFI
  83. default "linux ext2 fat part_msdos normal" if BR2_TARGET_GRUB2_ARM_UBOOT
  84. config BR2_TARGET_GRUB2_BUILTIN_CONFIG
  85. string "builtin config"
  86. help
  87. Path to a Grub 2 configuration file that will be embedded
  88. into the Grub image itself. This allows to set the root
  89. device and other configuration parameters, but however menu
  90. entries cannot be described in this embedded configuration.
  91. config BR2_TARGET_GRUB2_INSTALL_TOOLS
  92. bool "install tools"
  93. help
  94. Install support tools to interact with GNU GRUB Multiboot
  95. boot loader.
  96. This will also install the Grub 2 loadable modules to the
  97. target.
  98. endif # BR2_TARGET_GRUB2
  99. comment "grub2 needs a toolchain w/ wchar"
  100. depends on BR2_TARGET_GRUB2_ARCH_SUPPORTS
  101. depends on !BR2_USE_WCHAR