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