- comment "Image Options"
-
- source "target/linux/*/image/Config.in"
-
- config TARGET_ROOTFS_PARTSIZE
- int "Root filesystem partition size (in MB)"
- depends on X86_GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
- default 48
+ config GRUB_IMAGES
+ bool "Build GRUB images (Linux x86 or x86_64 host only)"
+ depends on TARGET_x86
+ depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
+ select PACKAGE_grub2
+ select PACKAGE_grub2-bios-setup
+ default y
+
+ config GRUB_EFI_IMAGES
+ bool "Build GRUB EFI images (Linux x86 or x86_64 host only)"
+ depends on TARGET_x86 || TARGET_armsr
+ depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
+ select PACKAGE_grub2 if TARGET_x86
+ select PACKAGE_grub2-efi if TARGET_x86
+ select PACKAGE_grub2-bios-setup if TARGET_x86
+ select PACKAGE_grub2-efi-arm if TARGET_armsr
+ select PACKAGE_kmod-fs-vfat
+ default y
+
+ config GRUB_CONSOLE
+ bool "Use Console Terminal (in addition to Serial)"
+ depends on GRUB_IMAGES || GRUB_EFI_IMAGES
+ default y
+
+ config GRUB_BAUDRATE
+ int "Serial port baud rate"
+ depends on GRUB_IMAGES || GRUB_EFI_IMAGES
+ default 38400 if TARGET_x86_generic
+ default 115200
+
+ config GRUB_FLOWCONTROL
+ bool "Use RTE/CTS on serial console"
+ depends on GRUB_IMAGES || GRUB_EFI_IMAGES
+ depends on TARGET_SERIAL != ""
+
+ config GRUB_BOOTOPTS
+ string "Extra kernel boot options"
+ depends on GRUB_IMAGES || GRUB_EFI_IMAGES