Config.in 5.0 KB

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