49569006e90b92deed6298abfc54876e1719e592
[openwrt/staging/chunkeey.git] / config / Config-images.in
1 # Copyright (C) 2006-2013 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6
7 menu "Target Images"
8
9 menuconfig TARGET_ROOTFS_INITRAMFS
10 bool "ramdisk"
11 default y if USES_INITRAMFS
12 help
13 Embed the rootfs into the kernel (initramfs)
14
15 choice
16 prompt "Compression"
17 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ar71xx
18 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
19 default TARGET_INITRAMFS_COMPRESSION_NONE
20 depends on TARGET_ROOTFS_INITRAMFS
21 help
22 Select ramdisk compression.
23
24 config TARGET_INITRAMFS_COMPRESSION_NONE
25 bool "none"
26
27 config TARGET_INITRAMFS_COMPRESSION_GZIP
28 bool "gzip"
29
30 config TARGET_INITRAMFS_COMPRESSION_BZIP2
31 bool "bzip2"
32
33 config TARGET_INITRAMFS_COMPRESSION_LZMA
34 bool "lzma"
35
36 config TARGET_INITRAMFS_COMPRESSION_LZO
37 bool "lzo"
38
39 config TARGET_INITRAMFS_COMPRESSION_LZ4
40 bool "lz4"
41
42 config TARGET_INITRAMFS_COMPRESSION_XZ
43 bool "xz"
44 endchoice
45
46 config EXTERNAL_CPIO
47 string
48 prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
49 default ""
50 help
51 Kernel uses specified external cpio as INITRAMFS_SOURCE
52
53 comment "Root filesystem archives"
54
55 config TARGET_ROOTFS_CPIOGZ
56 bool "cpio.gz"
57 default y if USES_CPIOGZ
58 help
59 Build a compressed cpio archive of the the root filesystem
60
61 config TARGET_ROOTFS_TARGZ
62 bool "tar.gz"
63 default y if USES_TARGZ
64 help
65 Build a compressed tar archive of the the root filesystem
66
67 comment "Root filesystem images"
68
69 menuconfig TARGET_ROOTFS_EXT4FS
70 bool "ext4"
71 default y if USES_EXT4
72 help
73 Build a ext4 root filesystem
74
75 config TARGET_ROOTFS_MAXINODE
76 int "Maximum number of inodes in root filesystem"
77 depends on TARGET_ROOTFS_EXT4FS
78 default 6000
79 help
80 Allows you to change the maximum number of inodes in the root filesystem
81
82 config TARGET_ROOTFS_RESERVED_PCT
83 int "Percentage of reserved blocks in root filesystem"
84 depends on TARGET_ROOTFS_EXT4FS
85 default 0
86 help
87 Allows you to change the percentage of reserved blocks in the root filesystem
88
89 config TARGET_ROOTFS_ISO
90 bool "iso"
91 default n
92 depends on TARGET_x86_generic
93 help
94 Create some bootable ISO image
95
96 config TARGET_ROOTFS_JFFS2
97 bool "jffs2"
98 default y if USES_JFFS2
99 help
100 Build a jffs2 root filesystem
101
102 config TARGET_ROOTFS_JFFS2_NAND
103 bool "jffs2 for NAND"
104 default y if USES_JFFS2_NAND
105 depends on USES_JFFS2_NAND
106 help
107 Build a jffs2 root filesystem for NAND flash
108
109 config TARGET_ROOTFS_SQUASHFS
110 bool "squashfs"
111 default y if USES_SQUASHFS
112 help
113 Build a squashfs-lzma root filesystem
114
115 menuconfig TARGET_ROOTFS_UBIFS
116 bool "ubifs"
117 default y if USES_UBIFS
118 depends on USES_UBIFS
119 help
120 Build a ubifs root filesystem
121
122 choice
123 prompt "compression"
124 default TARGET_UBIFS_COMPRESSION_NONE
125 depends on TARGET_ROOTFS_UBIFS
126 help
127 Select compression type
128
129 config TARGET_UBIFS_COMPRESSION_NONE
130 bool "none"
131
132 config TARGET_UBIFS_COMPRESSION_LZO
133 bool "lzo"
134
135 config TARGET_UBIFS_COMPRESSION_ZLIB
136 bool "zlib"
137 endchoice
138
139 config TARGET_UBIFS_FREE_SPACE_FIXUP
140 bool "free space fixup" if TARGET_ROOTFS_UBIFS
141 default y
142 help
143 The file-system free space has to be fixed up on first mount
144
145 config TARGET_UBIFS_JOURNAL_SIZE
146 string
147 prompt "journal size" if TARGET_ROOTFS_UBIFS
148 default ""
149
150 config GRUB_IMAGES
151 bool "Build GRUB images (Linux x86 or x86_64 host only)"
152 depends on TARGET_x86_64 || (TARGET_x86 && !(TARGET_x86_olpc || TARGET_x86_rdc))
153 depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_ISO || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
154 select PACKAGE_grub2
155 default y
156
157 config GRUB_CONSOLE
158 bool "Use Console Terminal (in addition to Serial)"
159 depends on GRUB_IMAGES
160 default n if (TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501 || TARGET_x86_geos || TARGET_x86_alix2)
161 default y
162
163 config GRUB_SERIAL
164 string "Serial port device"
165 depends on GRUB_IMAGES
166 default "hvc0" if TARGET_x86_xen_domu
167 default "ttyS0" if ! TARGET_x86_xen_domu
168
169 config GRUB_BAUDRATE
170 int "Serial port baud rate"
171 depends on GRUB_IMAGES
172 default 19200 if TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501
173 default 38400 if TARGET_x86_alix2
174 default 115200 if TARGET_x86_geos || TARGET_x86_kvm_guest
175 default 38400
176
177 config GRUB_BOOTOPTS
178 string "Extra kernel boot options"
179 depends on GRUB_IMAGES
180 default "xencons=hvc" if TARGET_x86_xen_domu
181 help
182 If you don't know, just leave it blank.
183
184 config GRUB_TIMEOUT
185 string "Seconds to wait before booting the default entry"
186 depends on GRUB_IMAGES
187 default "5"
188 help
189 If you don't know, 5 seconds is a reasonable default.
190
191 config VDI_IMAGES
192 bool "Build VirtualBox image files (VDI)"
193 depends on TARGET_x86 || TARGET_x86_64
194 select GRUB_IMAGES
195 select TARGET_ROOTFS_EXT4FS
196 select PACKAGE_kmod-e1000
197
198 config VMDK_IMAGES
199 bool "Build VMware image files (VMDK)"
200 depends on TARGET_x86 || TARGET_x86_64
201 select GRUB_IMAGES
202 select TARGET_ROOTFS_EXT4FS
203 select PACKAGE_kmod-e1000
204
205 config TARGET_IMAGES_PAD
206 bool "Pad images to filesystem size (for JFFS2)"
207 depends on OLPC_BOOTSCRIPT_IMAGES || GRUB_IMAGES
208
209 config TARGET_IMAGES_GZIP
210 bool "GZip images"
211 depends on TARGET_IMAGES_PAD || TARGET_ROOTFS_EXT4FS
212 default y
213
214 comment "Image Options"
215
216 source "target/linux/*/image/Config.in"
217
218 config TARGET_KERNEL_PARTSIZE
219 int "Kernel partition size (in MB)"
220 depends on OLPC_BOOTSCRIPT_IMAGES || GRUB_IMAGES
221 default 4
222
223 config TARGET_ROOTFS_PARTSIZE
224 int "Root filesystem partition size (in MB)"
225 depends on GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
226 default 48
227 help
228 Allows you to change the root filesystem partition size
229
230 config TARGET_ROOTFS_PARTNAME
231 string "Root partition on target device"
232 depends on OLPC_BOOTSCRIPT_IMAGES || GRUB_IMAGES
233 default "/dev/xvda2" if TARGET_x86_xen_domu
234 default "/dev/sda2" if ! TARGET_x86_xen_domu
235 help
236 The root partition on the final device. If you don't know,
237 you probably want the default (/dev/sda2).
238
239
240 menuconfig TARGET_ROOTFS_INCLUDE_KERNEL
241 bool "Include kernel in root filesystem"
242 depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
243 default n
244 help
245 Include the kernel image in the rootfs. Typically the image is placed
246 below /boot.
247
248 config TARGET_ROOTFS_INCLUDE_UIMAGE
249 bool "include uImage" if TARGET_ROOTFS_INCLUDE_KERNEL
250 default y
251 help
252 This option might not apply to all targets. Make sure
253 to check target/linux/<your_target>/image/Makefile to
254 see if this option will have any effect.
255
256 config TARGET_ROOTFS_INCLUDE_ZIMAGE
257 bool "include zImage" if TARGET_ROOTFS_INCLUDE_KERNEL
258 default y
259 help
260 This option might not apply to all targets. Make sure
261 to check target/linux/<your_target>/image/Makefile to
262 see if this option will have any effect.
263
264 config TARGET_ROOTFS_INCLUDE_FIT
265 bool "include FIT" if TARGET_ROOTFS_INCLUDE_KERNEL
266 default y
267 help
268 This option might not apply to all targets. Make sure
269 to check target/linux/<your_target>/image/Makefile to
270 see if this option will have any effect.
271
272 config TARGET_ROOTFS_INCLUDE_DTB
273 bool "Include DTB in root filesystem"
274 depends on USES_DEVICETREE && (TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS)
275 default n
276 help
277 Include the device tree blob file(s) in the rootfs. Typically the DTBs
278 are placed below /boot.
279
280 endmenu