Config.in 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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. select BR2_TARGET_GRUB2_I386_PC if \
  13. !BR2_TARGET_GRUB2_HAS_PTF && \
  14. (BR2_i386 || BR2_x86_64)
  15. select BR2_TARGET_GRUB2_ARM_UBOOT if \
  16. !BR2_TARGET_GRUB2_HAS_PTF && \
  17. BR2_arm
  18. select BR2_TARGET_GRUB2_ARM64_EFI if BR2_aarch64
  19. help
  20. GNU GRUB is a Multiboot boot loader. It was derived from
  21. GRUB, the GRand Unified Bootloader, which was originally
  22. designed and implemented by Erich Stefan Boleyn. GRUB 2 has
  23. replaced what was formerly known as GRUB (i.e. version
  24. 0.9x), which has, in turn, become GRUB Legacy.
  25. Amongst others, GRUB2 offers EFI support, which GRUB Legacy
  26. doesn't provide.
  27. The file boot/grub2/grub.cfg is used by default as the Grub
  28. configuration file. It can be overridden using a rootfs
  29. overlay or post-build script.
  30. For additional notes on using Grub 2 with Buildroot, see
  31. boot/grub2/readme.txt
  32. http://www.gnu.org/software/grub/
  33. if BR2_TARGET_GRUB2
  34. config BR2_TARGET_GRUB2_HAS_LEGACY_BOOT
  35. bool
  36. config BR2_TARGET_GRUB2_HAS_EFI_BOOT
  37. bool
  38. config BR2_TARGET_GRUB2_HAS_PTF
  39. bool
  40. config BR2_TARGET_GRUB2_I386_PC
  41. bool "i386-pc"
  42. depends on BR2_i386 || BR2_x86_64
  43. select BR2_TARGET_GRUB2_HAS_LEGACY_BOOT
  44. help
  45. Select this option if the platform you're targetting is a
  46. x86 or x86-64 legacy BIOS based platform.
  47. config BR2_TARGET_GRUB2_I386_EFI
  48. bool "i386-efi"
  49. depends on BR2_i386 || BR2_x86_64
  50. select BR2_TARGET_GRUB2_HAS_PTF
  51. select BR2_TARGET_GRUB2_HAS_EFI_BOOT
  52. help
  53. Select this option if the platform you're targetting has a
  54. 32 bits EFI BIOS. Note that some x86-64 platforms use a 32
  55. bits EFI BIOS, and this option should be used in this case.
  56. config BR2_TARGET_GRUB2_X86_64_EFI
  57. bool "x86-64-efi"
  58. depends on BR2_x86_64
  59. select BR2_TARGET_GRUB2_HAS_PTF
  60. select BR2_TARGET_GRUB2_HAS_EFI_BOOT
  61. help
  62. Select this option if the platform you're targetting has a
  63. 64 bits EFI BIOS.
  64. config BR2_TARGET_GRUB2_ARM_UBOOT
  65. bool "arm-uboot"
  66. depends on BR2_arm
  67. select BR2_TARGET_GRUB2_HAS_LEGACY_BOOT
  68. help
  69. Select this option if the platform you're targetting is an
  70. ARM u-boot platform, and you want to boot Grub 2 as an u-boot
  71. compatible image.
  72. config BR2_TARGET_GRUB2_ARM_EFI
  73. bool "arm-efi"
  74. depends on BR2_arm
  75. select BR2_TARGET_GRUB2_HAS_PTF
  76. select BR2_TARGET_GRUB2_HAS_EFI_BOOT
  77. help
  78. Select this option if the platform you're targetting is an
  79. ARM platform and you want to boot Grub 2 as an EFI
  80. application.
  81. config BR2_TARGET_GRUB2_ARM64_EFI
  82. bool "arm64-efi"
  83. depends on BR2_aarch64
  84. select BR2_TARGET_GRUB2_HAS_EFI_BOOT
  85. help
  86. Select this option if the platform you're targetting is an
  87. Aarch64 platform and you want to boot Grub 2 as an EFI
  88. application.
  89. if BR2_TARGET_GRUB2_HAS_LEGACY_BOOT
  90. comment "Options for the x86 legacy BIOS or ARM U-Boot support"
  91. config BR2_TARGET_GRUB2_BOOT_PARTITION
  92. string "boot partition"
  93. default "hd0,msdos1"
  94. help
  95. Specify the partition where the /boot/grub/grub.cfg file is
  96. located. Use 'hd0,msdos1' for the first partition of the
  97. first disk if using a legacy partition table, or 'hd0,gpt1'
  98. if using GPT partition table.
  99. config BR2_TARGET_GRUB2_BUILTIN_MODULES_PC
  100. string "builtin modules"
  101. default BR2_TARGET_GRUB2_BUILTIN_MODULES if BR2_TARGET_GRUB2_BUILTIN_MODULES != "" # legacy
  102. default "boot linux ext2 fat squash4 part_msdos part_gpt normal biosdisk" if BR2_TARGET_GRUB2_I386_PC
  103. default "linux ext2 fat part_msdos normal" if BR2_TARGET_GRUB2_ARM_UBOOT
  104. config BR2_TARGET_GRUB2_BUILTIN_CONFIG_PC
  105. string "builtin config"
  106. default BR2_TARGET_GRUB2_BUILTIN_CONFIG if BR2_TARGET_GRUB2_BUILTIN_CONFIG != "" # legacy
  107. help
  108. Path to a Grub 2 configuration file that will be embedded
  109. into the Grub image itself. This allows to set the root
  110. device and other configuration parameters, but however menu
  111. entries cannot be described in this embedded configuration.
  112. endif # BR2_TARGET_GRUB2_HAS_LEGACY_BOOT
  113. if BR2_TARGET_GRUB2_HAS_EFI_BOOT
  114. comment "Options for the EFI BIOS or ARM EFI support"
  115. config BR2_TARGET_GRUB2_BUILTIN_MODULES_EFI
  116. string "builtin modules"
  117. default BR2_TARGET_GRUB2_BUILTIN_MODULES if BR2_TARGET_GRUB2_BUILTIN_MODULES != "" # legacy
  118. default "boot linux ext2 fat squash4 part_msdos part_gpt normal efi_gop"
  119. config BR2_TARGET_GRUB2_BUILTIN_CONFIG_EFI
  120. string "builtin config"
  121. default BR2_TARGET_GRUB2_BUILTIN_CONFIG if BR2_TARGET_GRUB2_BUILTIN_CONFIG != "" # legacy
  122. help
  123. Path to a Grub 2 configuration file that will be embedded
  124. into the Grub image itself. This allows to set the root
  125. device and other configuration parameters, but however menu
  126. entries cannot be described in this embedded configuration.
  127. endif # BR2_TARGET_GRUB2_HAS_EFI_BOOT
  128. config BR2_TARGET_GRUB2_INSTALL_TOOLS
  129. bool "install tools"
  130. help
  131. Install support tools to interact with GNU GRUB Multiboot
  132. boot loader.
  133. This will also install the Grub 2 loadable modules to the
  134. target.
  135. endif # BR2_TARGET_GRUB2
  136. comment "grub2 needs a toolchain w/ wchar"
  137. depends on BR2_TARGET_GRUB2_ARCH_SUPPORTS
  138. depends on !BR2_USE_WCHAR