Config.in 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. config BR2_TARGET_GRUB2_ARCH_SUPPORTS
  2. bool
  3. default y if BR2_i386
  4. default y if BR2_x86_64
  5. config BR2_TARGET_GRUB2
  6. bool "grub2"
  7. depends on BR2_TARGET_GRUB2_ARCH_SUPPORTS
  8. depends on BR2_USE_WCHAR
  9. help
  10. GNU GRUB is a Multiboot boot loader. It was derived from
  11. GRUB, the GRand Unified Bootloader, which was originally
  12. designed and implemented by Erich Stefan Boleyn. GRUB 2 has
  13. replaced what was formerly known as GRUB (i.e. version
  14. 0.9x), which has, in turn, become GRUB Legacy.
  15. Amongst others, GRUB2 offers EFI support, which GRUB Legacy
  16. doesn't provide.
  17. For additional notes on using Grub 2 with Buildroot, see
  18. boot/grub2/readme.txt
  19. http://www.gnu.org/software/grub/
  20. if BR2_TARGET_GRUB2
  21. choice
  22. prompt "Platform"
  23. config BR2_TARGET_GRUB2_I386_PC
  24. bool "i386-pc"
  25. help
  26. Select this option if the platform you're targetting is a
  27. x86 or x86-64 legacy BIOS based platform.
  28. config BR2_TARGET_GRUB2_I386_EFI
  29. bool "i386-efi"
  30. help
  31. Select this option if the platform you're targetting has a
  32. 32 bits EFI BIOS. Note that some x86-64 platforms use a 32
  33. bits EFI BIOS, and this option should be used in this case.
  34. config BR2_TARGET_GRUB2_X86_64_EFI
  35. bool "x86-64-efi"
  36. depends on BR2_ARCH_IS_64
  37. help
  38. Select this option if the platform you're targetting has a
  39. 64 bits EFI BIOS.
  40. endchoice
  41. if BR2_TARGET_GRUB2_I386_PC
  42. config BR2_TARGET_GRUB2_BOOT_PARTITION
  43. string "boot partition"
  44. default "hd0,msdos1"
  45. help
  46. Specify the partition where the /boot/grub/grub.cfg file is
  47. located. Use 'hd0,msdos1' for the first partition of the
  48. first disk if using a legacy partition table, or 'hd0,gpt1'
  49. if using GPT partition table.
  50. endif # BR2_TARGET_GRUB2_I386_PC
  51. config BR2_TARGET_GRUB2_BUILTIN_MODULES
  52. string "builtin modules"
  53. default "boot linux ext2 fat squash4 part_msdos part_gpt normal biosdisk" if BR2_TARGET_GRUB2_I386_PC
  54. default "boot linux ext2 fat squash4 part_msdos part_gpt normal efi_gop" \
  55. if BR2_TARGET_GRUB2_I386_EFI || BR2_TARGET_GRUB2_X86_64_EFI
  56. config BR2_TARGET_GRUB2_BUILTIN_CONFIG
  57. string "builtin config"
  58. help
  59. Path to a Grub 2 configuration file that will be embedded
  60. into the Grub image itself. This allows to set the root
  61. device and other configuration parameters, but however menu
  62. entries cannot be described in this embedded configuration.
  63. endif # BR2_TARGET_GRUB2
  64. comment "grub2 needs a toolchain w/ wchar"
  65. depends on BR2_TARGET_GRUB2_ARCH_SUPPORTS
  66. depends on !BR2_USE_WCHAR