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