Config.in 4.8 KB

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