1 # Copyright (C) 2006-2013 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
9 menuconfig TARGET_ROOTFS_INITRAMFS
11 default y if USES_INITRAMFS
13 Embed the root filesystem into the kernel (initramfs).
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_LZMA if TARGET_mpc85xx
21 default TARGET_INITRAMFS_COMPRESSION_NONE
22 depends on TARGET_ROOTFS_INITRAMFS
24 Select ramdisk compression.
26 config TARGET_INITRAMFS_COMPRESSION_NONE
29 config TARGET_INITRAMFS_COMPRESSION_GZIP
32 config TARGET_INITRAMFS_COMPRESSION_BZIP2
35 config TARGET_INITRAMFS_COMPRESSION_LZMA
38 config TARGET_INITRAMFS_COMPRESSION_LZO
41 config TARGET_INITRAMFS_COMPRESSION_LZ4
44 config TARGET_INITRAMFS_COMPRESSION_XZ
50 prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
53 Kernel uses specified external cpio as INITRAMFS_SOURCE.
55 comment "Root filesystem archives"
57 config TARGET_ROOTFS_CPIOGZ
59 default y if USES_CPIOGZ
61 Build a compressed cpio archive of the root filesystem.
63 config TARGET_ROOTFS_TARGZ
65 default y if USES_TARGZ
67 Build a compressed tar archive of the root filesystem.
69 comment "Root filesystem images"
71 menuconfig TARGET_ROOTFS_EXT4FS
73 default y if USES_EXT4
75 Build an ext4 root filesystem.
77 config TARGET_EXT4_RESERVED_PCT
78 int "Percentage of reserved blocks in root filesystem"
79 depends on TARGET_ROOTFS_EXT4FS
82 Select the percentage of reserved blocks in the root filesystem.
85 prompt "Root filesystem block size"
86 default TARGET_EXT4_BLOCKSIZE_4K
87 depends on TARGET_ROOTFS_EXT4FS
89 Select the block size of the root filesystem.
91 config TARGET_EXT4_BLOCKSIZE_4K
94 config TARGET_EXT4_BLOCKSIZE_2K
97 config TARGET_EXT4_BLOCKSIZE_1K
101 config TARGET_EXT4_BLOCKSIZE
103 default 4096 if TARGET_EXT4_BLOCKSIZE_4K
104 default 2048 if TARGET_EXT4_BLOCKSIZE_2K
105 default 1024 if TARGET_EXT4_BLOCKSIZE_1K
106 depends on TARGET_ROOTFS_EXT4FS
108 config TARGET_EXT4_JOURNAL
109 bool "Create a journaling filesystem"
110 depends on TARGET_ROOTFS_EXT4FS
113 Create an ext4 filesystem with a journal.
115 config TARGET_ROOTFS_ISO
118 depends on TARGET_x86_generic
120 Create a bootable ISO image.
122 config TARGET_ROOTFS_JFFS2
124 depends on USES_JFFS2
126 Build a JFFS2 root filesystem.
128 config TARGET_ROOTFS_JFFS2_NAND
129 bool "jffs2 for NAND"
130 default y if USES_JFFS2_NAND
131 depends on USES_JFFS2_NAND
133 Build a JFFS2 root filesystem for NAND flash.
135 menuconfig TARGET_ROOTFS_SQUASHFS
137 default y if USES_SQUASHFS
139 Build a squashfs-lzma root filesystem.
141 config TARGET_SQUASHFS_BLOCK_SIZE
142 int "Block size (in KiB)"
143 depends on TARGET_ROOTFS_SQUASHFS
144 default 64 if LOW_MEMORY_FOOTPRINT
147 menuconfig TARGET_ROOTFS_UBIFS
149 default y if USES_UBIFS
150 depends on USES_UBIFS
152 Build a UBIFS root filesystem.
156 default TARGET_UBIFS_COMPRESSION_ZLIB
157 depends on TARGET_ROOTFS_UBIFS
159 Select compression type
161 config TARGET_UBIFS_COMPRESSION_NONE
164 config TARGET_UBIFS_COMPRESSION_LZO
167 config TARGET_UBIFS_COMPRESSION_ZLIB
171 config TARGET_UBIFS_FREE_SPACE_FIXUP
172 bool "free space fixup" if TARGET_ROOTFS_UBIFS
175 The filesystem free space has to be fixed up on first mount.
177 config TARGET_UBIFS_JOURNAL_SIZE
179 prompt "journal size" if TARGET_ROOTFS_UBIFS
183 bool "Build GRUB images (Linux x86 or x86_64 host only)"
184 depends on TARGET_x86
185 depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_ISO || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
190 bool "Use Console Terminal (in addition to Serial)"
191 depends on GRUB_IMAGES
192 default n if (TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501 || TARGET_x86_geos || TARGET_x86_alix2)
196 string "Serial port device"
197 depends on GRUB_IMAGES
198 default "hvc0" if TARGET_x86_xen_domu
199 default "ttyS0" if ! TARGET_x86_xen_domu
202 int "Serial port baud rate"
203 depends on GRUB_IMAGES
204 default 38400 if TARGET_x86_generic
207 config GRUB_FLOWCONTROL
208 bool "Use RTE/CTS on serial console"
209 depends on GRUB_SERIAL != ""
213 string "Extra kernel boot options"
214 depends on GRUB_IMAGES
215 default "xencons=hvc" if TARGET_x86_xen_domu
217 If you don't know, just leave it blank.
220 string "Seconds to wait before booting the default entry"
221 depends on GRUB_IMAGES
224 If you don't know, 5 seconds is a reasonable default.
227 bool "Build VirtualBox image files (VDI)"
228 depends on TARGET_x86 || TARGET_x86_64
230 select TARGET_IMAGES_PAD
231 select PACKAGE_kmod-e1000
234 bool "Build VMware image files (VMDK)"
235 depends on TARGET_x86 || TARGET_x86_64
237 select TARGET_IMAGES_PAD
238 select PACKAGE_kmod-e1000
240 config TARGET_IMAGES_PAD
241 bool "Pad images to filesystem size (for JFFS2)"
242 depends on GRUB_IMAGES
244 config TARGET_IMAGES_GZIP
246 depends on TARGET_IMAGES_PAD || TARGET_ROOTFS_EXT4FS || TARGET_x86
249 comment "Image Options"
251 source "target/linux/*/image/Config.in"
253 config TARGET_KERNEL_PARTSIZE
254 int "Kernel partition size (in MB)"
255 depends on GRUB_IMAGES
258 config TARGET_ROOTFS_PARTSIZE
259 int "Root filesystem partition size (in MB)"
260 depends on GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532 || TARGET_mvebu || TARGET_uml
263 Select the root filesystem partition size.
265 config TARGET_ROOTFS_PARTNAME
266 string "Root partition on target device"
267 depends on GRUB_IMAGES
269 Override the root partition on the final device. If left empty,
270 it will be mounted by PARTUUID which makes the kernel find the
271 appropriate disk automatically.