f8c3ad4016d3a74a629eb794e99b2af013fb8140
[openwrt/openwrt.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 root filesystem into the kernel (initramfs).
14
15 choice
16 prompt "Compression"
17 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_apm821xx
18 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ar71xx
19 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_lantiq
20 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_mpc85xx
21 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
22 default TARGET_INITRAMFS_COMPRESSION_NONE
23 depends on TARGET_ROOTFS_INITRAMFS
24 help
25 Select ramdisk compression.
26
27 config TARGET_INITRAMFS_COMPRESSION_NONE
28 bool "none"
29
30 config TARGET_INITRAMFS_COMPRESSION_GZIP
31 bool "gzip"
32
33 config TARGET_INITRAMFS_COMPRESSION_BZIP2
34 bool "bzip2"
35
36 config TARGET_INITRAMFS_COMPRESSION_LZMA
37 bool "lzma"
38
39 config TARGET_INITRAMFS_COMPRESSION_LZO
40 bool "lzo"
41
42 config TARGET_INITRAMFS_COMPRESSION_LZ4
43 bool "lz4"
44
45 config TARGET_INITRAMFS_COMPRESSION_XZ
46 bool "xz"
47 endchoice
48
49 config EXTERNAL_CPIO
50 string
51 prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
52 default ""
53 help
54 Kernel uses specified external cpio as INITRAMFS_SOURCE.
55
56 config TARGET_INITRAMFS_FORCE
57 bool "Force"
58 depends on TARGET_ROOTFS_INITRAMFS
59 default n
60 help
61 Ignore the initramfs passed by the bootloader.
62
63 comment "Root filesystem archives"
64
65 config TARGET_ROOTFS_CPIOGZ
66 bool "cpio.gz"
67 default y if USES_CPIOGZ
68 help
69 Build a compressed cpio archive of the root filesystem.
70
71 config TARGET_ROOTFS_TARGZ
72 bool "tar.gz"
73 default y if USES_TARGZ
74 help
75 Build a compressed tar archive of the root filesystem.
76
77 comment "Root filesystem images"
78
79 menuconfig TARGET_ROOTFS_EXT4FS
80 bool "ext4"
81 default y if USES_EXT4
82 help
83 Build an ext4 root filesystem.
84
85 config TARGET_EXT4_RESERVED_PCT
86 int "Percentage of reserved blocks in root filesystem"
87 depends on TARGET_ROOTFS_EXT4FS
88 default 0
89 help
90 Select the percentage of reserved blocks in the root filesystem.
91
92 choice
93 prompt "Root filesystem block size"
94 default TARGET_EXT4_BLOCKSIZE_4K
95 depends on TARGET_ROOTFS_EXT4FS
96 help
97 Select the block size of the root filesystem.
98
99 config TARGET_EXT4_BLOCKSIZE_4K
100 bool "4k"
101
102 config TARGET_EXT4_BLOCKSIZE_2K
103 bool "2k"
104
105 config TARGET_EXT4_BLOCKSIZE_1K
106 bool "1k"
107 endchoice
108
109 config TARGET_EXT4_BLOCKSIZE
110 int
111 default 4096 if TARGET_EXT4_BLOCKSIZE_4K
112 default 2048 if TARGET_EXT4_BLOCKSIZE_2K
113 default 1024 if TARGET_EXT4_BLOCKSIZE_1K
114 depends on TARGET_ROOTFS_EXT4FS
115
116 config TARGET_EXT4_JOURNAL
117 bool "Create a journaling filesystem"
118 depends on TARGET_ROOTFS_EXT4FS
119 default n
120 help
121 Create an ext4 filesystem with a journal.
122
123 config TARGET_ROOTFS_ISO
124 bool "iso"
125 default n
126 depends on TARGET_x86_generic
127 help
128 Create a bootable ISO image.
129
130 config TARGET_ROOTFS_JFFS2
131 bool "jffs2"
132 depends on USES_JFFS2
133 help
134 Build a JFFS2 root filesystem.
135
136 config TARGET_ROOTFS_JFFS2_NAND
137 bool "jffs2 for NAND"
138 default y if USES_JFFS2_NAND
139 depends on USES_JFFS2_NAND
140 help
141 Build a JFFS2 root filesystem for NAND flash.
142
143 menuconfig TARGET_ROOTFS_SQUASHFS
144 bool "squashfs"
145 default y if USES_SQUASHFS
146 help
147 Build a squashfs-lzma root filesystem.
148
149 config TARGET_SQUASHFS_BLOCK_SIZE
150 int "Block size (in KiB)"
151 depends on TARGET_ROOTFS_SQUASHFS
152 default 64 if LOW_MEMORY_FOOTPRINT
153 default 1024 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT)
154 default 256
155
156 menuconfig TARGET_ROOTFS_UBIFS
157 bool "ubifs"
158 default y if USES_UBIFS
159 depends on USES_UBIFS
160 help
161 Build a UBIFS root filesystem.
162
163 choice
164 prompt "compression"
165 default TARGET_UBIFS_COMPRESSION_ZLIB
166 depends on TARGET_ROOTFS_UBIFS
167 help
168 Select compression type
169
170 config TARGET_UBIFS_COMPRESSION_NONE
171 bool "none"
172
173 config TARGET_UBIFS_COMPRESSION_LZO
174 bool "lzo"
175
176 config TARGET_UBIFS_COMPRESSION_ZLIB
177 bool "zlib"
178 endchoice
179
180 config TARGET_UBIFS_FREE_SPACE_FIXUP
181 bool "free space fixup" if TARGET_ROOTFS_UBIFS
182 default y
183 help
184 The filesystem free space has to be fixed up on first mount.
185
186 config TARGET_UBIFS_JOURNAL_SIZE
187 string
188 prompt "journal size" if TARGET_ROOTFS_UBIFS
189 default ""
190
191 config GRUB_IMAGES
192 bool "Build GRUB images (Linux x86 or x86_64 host only)"
193 depends on TARGET_x86
194 depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_ISO || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
195 select PACKAGE_grub2
196 default y
197
198 config GRUB_CONSOLE
199 bool "Use Console Terminal (in addition to Serial)"
200 depends on GRUB_IMAGES
201 default y
202
203 config GRUB_SERIAL
204 string "Serial port device"
205 depends on GRUB_IMAGES
206 default "ttyS0"
207
208 config GRUB_BAUDRATE
209 int "Serial port baud rate"
210 depends on GRUB_IMAGES
211 default 38400 if TARGET_x86_generic
212 default 115200
213
214 config GRUB_FLOWCONTROL
215 bool "Use RTE/CTS on serial console"
216 depends on GRUB_SERIAL != ""
217 default n
218
219 config GRUB_BOOTOPTS
220 string "Extra kernel boot options"
221 depends on GRUB_IMAGES
222 help
223 If you don't know, just leave it blank.
224
225 config GRUB_TIMEOUT
226 string "Seconds to wait before booting the default entry"
227 depends on GRUB_IMAGES
228 default "5"
229 help
230 If you don't know, 5 seconds is a reasonable default.
231
232 config GRUB_TITLE
233 string "Title for the menu entry in GRUB"
234 depends on GRUB_IMAGES
235 default "OpenWrt"
236 help
237 This is the title of the GRUB menu entry.
238 If unspecified, it defaults to OpenWrt.
239
240 config VDI_IMAGES
241 bool "Build VirtualBox image files (VDI)"
242 depends on TARGET_x86
243 select GRUB_IMAGES
244 select PACKAGE_kmod-e1000
245
246 config VMDK_IMAGES
247 bool "Build VMware image files (VMDK)"
248 depends on TARGET_x86
249 select GRUB_IMAGES
250 select PACKAGE_kmod-e1000
251
252 config TARGET_IMAGES_GZIP
253 bool "GZip images"
254 depends on TARGET_ROOTFS_EXT4FS || TARGET_x86
255 default y
256
257 comment "Image Options"
258
259 source "target/linux/*/image/Config.in"
260
261 config TARGET_KERNEL_PARTSIZE
262 int "Kernel partition size (in MB)"
263 depends on GRUB_IMAGES || USES_BOOT_PART
264 default 8 if TARGET_apm821xx_sata
265 default 20 if TARGET_brcm2708
266 default 16
267
268 config TARGET_ROOTFS_PARTSIZE
269 int "Root filesystem partition size (in MB)"
270 depends on GRUB_IMAGES || USES_ROOTFS_PART || TARGET_ROOTFS_EXT4FS || TARGET_omap || TARGET_rb532 || TARGET_sunxi || TARGET_uml
271 default 128
272 help
273 Select the root filesystem partition size.
274
275 config TARGET_ROOTFS_PARTNAME
276 string "Root partition on target device"
277 depends on GRUB_IMAGES
278 help
279 Override the root partition on the final device. If left empty,
280 it will be mounted by PARTUUID which makes the kernel find the
281 appropriate disk automatically.
282
283 endmenu