x86: add support for building grub2 images
[openwrt/svn-archive/archive.git] / target / linux / x86 / image / Config.in
index fba5da7ad1758c3a35d9d4dec144c2f29e4928f2..08880e5803351b21e13b59e93a39c325fb0e1489 100644 (file)
@@ -17,27 +17,32 @@ config X86_GRUB_IMAGES
        bool "Build GRUB images (Linux x86 or x86_64 host only)"
        depends TARGET_x86 && !TARGET_x86_olpc
        depends TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_ISO || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
-       select PACKAGE_grub
+       select PACKAGE_grub if !X86_USE_GRUB2
        default y
 
+config X86_USE_GRUB2
+       bool "Use grub2"
+       depends X86_GRUB_IMAGES
+       select PACKAGE_grub2
+
 config X86_GRUB_CONSOLE
        bool "Use Console Terminal (in addition to Serial)"
        depends X86_GRUB_IMAGES
-       default n if (TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501 || TARGET_x86_geos)
+       default n if (TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501 || TARGET_x86_geos || TARGET_x86_alix2)
        default y
 
 config X86_GRUB_SERIAL
        string "Serial port device"
        depends X86_GRUB_IMAGES
-       default "hvc0" if (TARGET_x86_kvm_guest || TARGET_x86_xen_domu)
-       default "ttyS0" if ! (TARGET_x86_kvm_guest || TARGET_x86_xen_domu)
+       default "hvc0" if TARGET_x86_xen_domu
+       default "ttyS0" if ! TARGET_x86_xen_domu
 
 config X86_GRUB_BAUDRATE
        int "Serial port baud rate"
        depends X86_GRUB_IMAGES
        default 19200 if TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501
        default 38400 if TARGET_x86_alix2
-       default 115200 if TARGET_x86_geos
+       default 115200 if TARGET_x86_geos || TARGET_x86_kvm_guest
        default 38400
 
 config X86_GRUB_BOOTOPTS
@@ -73,6 +78,7 @@ config OLPC_BOOTSCRIPT_IMAGES
        bool "Build images with bootscript"
        depends TARGET_x86_olpc
        depends TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_ISO || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
+       default TARGET_x86_olpc
 
 
 config TARGET_IMAGES_PAD