x86: add support for building grub2 images
[openwrt.git] / target / linux / x86 / image / Config.in
1 config X86_ETHERBOOT_IMAGES
2         bool "Build Etherboot image"
3         depends TARGET_x86 && TARGET_x86_thincan_DBE61
4         default y
5         help
6           Builds network bootable image for ThinCan DBE61 (Etherboot BIOS)
7
8 config X86_ETHERBOOT_BOOTOPTS
9         string "Extra kernel boot options"
10         depends X86_ETHERBOOT_IMAGES
11         default "ip=dhcp nbdport=2000 " if TARGET_ROOTFS_SQUASHFS
12         default "ip=dhcp root=/dev/nfs nfsroot=192.168.0.1:/srv/dbe61"
13         help
14           Kernel arguments to pass to the kernel eg. NFS root location etc.
15
16 config X86_GRUB_IMAGES
17         bool "Build GRUB images (Linux x86 or x86_64 host only)"
18         depends TARGET_x86 && !TARGET_x86_olpc
19         depends TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_ISO || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
20         select PACKAGE_grub if !X86_USE_GRUB2
21         default y
22
23 config X86_USE_GRUB2
24         bool "Use grub2"
25         depends X86_GRUB_IMAGES
26         select PACKAGE_grub2
27
28 config X86_GRUB_CONSOLE
29         bool "Use Console Terminal (in addition to Serial)"
30         depends X86_GRUB_IMAGES
31         default n if (TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501 || TARGET_x86_geos || TARGET_x86_alix2)
32         default y
33
34 config X86_GRUB_SERIAL
35         string "Serial port device"
36         depends X86_GRUB_IMAGES
37         default "hvc0" if TARGET_x86_xen_domu
38         default "ttyS0" if ! TARGET_x86_xen_domu
39
40 config X86_GRUB_BAUDRATE
41         int "Serial port baud rate"
42         depends X86_GRUB_IMAGES
43         default 19200 if TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501
44         default 38400 if TARGET_x86_alix2
45         default 115200 if TARGET_x86_geos || TARGET_x86_kvm_guest
46         default 38400
47
48 config X86_GRUB_BOOTOPTS
49         string "Extra kernel boot options"
50         depends X86_GRUB_IMAGES
51         default "xencons=hvc" if TARGET_x86_xen_domu
52         help
53           If you don't know, just leave it blank.
54
55 config X86_GRUB_TIMEOUT
56         string "Seconds to wait before booting the default entry"
57         depends X86_GRUB_IMAGES
58         default "5"
59         help
60           If you don't know, 5 seconds is a reasonable default.
61
62 config X86_VDI_IMAGES
63         bool "Build VirtualBox image files (VDI)"
64         depends X86_GRUB_IMAGES
65         depends TARGET_x86
66         depends TARGET_ROOTFS_EXT4FS
67         select PACKAGE_kmod-pcnet32
68
69 config X86_VMDK_IMAGES
70         bool "Build VMware image files (VMDK)"
71         depends X86_GRUB_IMAGES
72         depends TARGET_x86
73         depends TARGET_ROOTFS_EXT4FS
74         select PACKAGE_kmod-e1000
75
76
77 config OLPC_BOOTSCRIPT_IMAGES
78         bool "Build images with bootscript"
79         depends TARGET_x86_olpc
80         depends TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_ISO || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
81         default TARGET_x86_olpc
82
83
84 config TARGET_IMAGES_PAD
85         bool "Pad images to filesystem size (for JFFS2)"
86         depends OLPC_BOOTSCRIPT_IMAGES || X86_GRUB_IMAGES
87
88 config TARGET_IMAGES_GZIP
89         bool "GZip images"
90         depends TARGET_IMAGES_PAD || TARGET_ROOTFS_EXT4FS
91         default y
92
93 config TARGET_KERNEL_PARTSIZE
94         int "Kernel partition size (in MB)"
95         depends OLPC_BOOTSCRIPT_IMAGES || X86_GRUB_IMAGES
96         default 4
97
98 config TARGET_ROOTFS_PARTNAME
99         string "Root partition on target device"
100         depends OLPC_BOOTSCRIPT_IMAGES || X86_GRUB_IMAGES
101         default "/dev/vda2" if TARGET_x86_kvm_guest
102         default "/dev/xvda2" if TARGET_x86_xen_domu
103         default "/dev/sda2" if ! (TARGET_x86_kvm_guest || TARGET_x86_xen_domu)
104         help
105           The root partition on the final device.  If you don't know,
106           you probably want the default (/dev/sda2).