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 config TARGET_INITRAMFS_FORCE
57 depends on TARGET_ROOTFS_INITRAMFS
60 Ignore the initramfs passed by the bootloader.
62 comment "Root filesystem archives"
64 config TARGET_ROOTFS_CPIOGZ
66 default y if USES_CPIOGZ
68 Build a compressed cpio archive of the root filesystem.
70 config TARGET_ROOTFS_TARGZ
72 default y if USES_TARGZ
74 Build a compressed tar archive of the root filesystem.
76 comment "Root filesystem images"
78 menuconfig TARGET_ROOTFS_EXT4FS
80 default y if USES_EXT4
82 Build an ext4 root filesystem.
84 config TARGET_EXT4_RESERVED_PCT
85 int "Percentage of reserved blocks in root filesystem"
86 depends on TARGET_ROOTFS_EXT4FS
89 Select the percentage of reserved blocks in the root filesystem.
92 prompt "Root filesystem block size"
93 default TARGET_EXT4_BLOCKSIZE_4K
94 depends on TARGET_ROOTFS_EXT4FS
96 Select the block size of the root filesystem.
98 config TARGET_EXT4_BLOCKSIZE_4K
101 config TARGET_EXT4_BLOCKSIZE_2K
104 config TARGET_EXT4_BLOCKSIZE_1K
108 config TARGET_EXT4_BLOCKSIZE
110 default 4096 if TARGET_EXT4_BLOCKSIZE_4K
111 default 2048 if TARGET_EXT4_BLOCKSIZE_2K
112 default 1024 if TARGET_EXT4_BLOCKSIZE_1K
113 depends on TARGET_ROOTFS_EXT4FS
115 config TARGET_EXT4_JOURNAL
116 bool "Create a journaling filesystem"
117 depends on TARGET_ROOTFS_EXT4FS
120 Create an ext4 filesystem with a journal.
122 config TARGET_ROOTFS_ISO
125 depends on TARGET_x86_generic
127 Create a bootable ISO image.
129 config TARGET_ROOTFS_JFFS2
131 depends on USES_JFFS2
133 Build a JFFS2 root filesystem.
135 config TARGET_ROOTFS_JFFS2_NAND
136 bool "jffs2 for NAND"
137 default y if USES_JFFS2_NAND
138 depends on USES_JFFS2_NAND
140 Build a JFFS2 root filesystem for NAND flash.
142 menuconfig TARGET_ROOTFS_SQUASHFS
144 default y if USES_SQUASHFS
146 Build a squashfs-lzma root filesystem.
148 config TARGET_SQUASHFS_BLOCK_SIZE
149 int "Block size (in KiB)"
150 depends on TARGET_ROOTFS_SQUASHFS
151 default 64 if LOW_MEMORY_FOOTPRINT
152 default 1024 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT)
155 menuconfig TARGET_ROOTFS_UBIFS
157 default y if USES_UBIFS
158 depends on USES_UBIFS
160 Build a UBIFS root filesystem.
164 default TARGET_UBIFS_COMPRESSION_ZLIB
165 depends on TARGET_ROOTFS_UBIFS
167 Select compression type
169 config TARGET_UBIFS_COMPRESSION_NONE
172 config TARGET_UBIFS_COMPRESSION_LZO
175 config TARGET_UBIFS_COMPRESSION_ZLIB
179 config TARGET_UBIFS_FREE_SPACE_FIXUP
180 bool "free space fixup" if TARGET_ROOTFS_UBIFS
183 The filesystem free space has to be fixed up on first mount.
185 config TARGET_UBIFS_JOURNAL_SIZE
187 prompt "journal size" if TARGET_ROOTFS_UBIFS
191 bool "Build GRUB images (Linux x86 or x86_64 host only)"
192 depends on TARGET_x86
193 depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_ISO || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
198 bool "Use Console Terminal (in addition to Serial)"
199 depends on GRUB_IMAGES
200 default n if (TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501 || TARGET_x86_geos || TARGET_x86_alix2)
204 string "Serial port device"
205 depends on GRUB_IMAGES
206 default "hvc0" if TARGET_x86_xen_domu
207 default "ttyS0" if ! TARGET_x86_xen_domu
210 int "Serial port baud rate"
211 depends on GRUB_IMAGES
212 default 38400 if TARGET_x86_generic
215 config GRUB_FLOWCONTROL
216 bool "Use RTE/CTS on serial console"
217 depends on GRUB_SERIAL != ""
221 string "Extra kernel boot options"
222 depends on GRUB_IMAGES
223 default "xencons=hvc" if TARGET_x86_xen_domu
225 If you don't know, just leave it blank.
228 string "Seconds to wait before booting the default entry"
229 depends on GRUB_IMAGES
232 If you don't know, 5 seconds is a reasonable default.
235 string "Title for the menu entry in GRUB"
236 depends on GRUB_IMAGES
239 This is the title of the GRUB menu entry.
240 If unspecified, it defaults to OpenWrt.
243 bool "Build VirtualBox image files (VDI)"
244 depends on TARGET_x86 || TARGET_x86_64
246 select TARGET_IMAGES_PAD
247 select PACKAGE_kmod-e1000
250 bool "Build VMware image files (VMDK)"
251 depends on TARGET_x86 || TARGET_x86_64
253 select TARGET_IMAGES_PAD
254 select PACKAGE_kmod-e1000
256 config TARGET_IMAGES_PAD
257 bool "Pad images to filesystem size (for JFFS2)"
258 depends on GRUB_IMAGES
260 config TARGET_IMAGES_GZIP
262 depends on TARGET_IMAGES_PAD || TARGET_ROOTFS_EXT4FS || TARGET_x86
265 comment "Image Options"
267 source "target/linux/*/image/Config.in"
269 config TARGET_KERNEL_PARTSIZE
270 int "Kernel partition size (in MB)"
271 depends on GRUB_IMAGES || USES_BOOT_PART
272 default 8 if TARGET_apm821xx_sata
273 default 20 if TARGET_brcm2708
276 config TARGET_ROOTFS_PARTSIZE
277 int "Root filesystem partition size (in MB)"
278 depends on GRUB_IMAGES || USES_ROOTFS_PART || TARGET_ROOTFS_EXT4FS || TARGET_mvebu || TARGET_omap || TARGET_rb532 || TARGET_sunxi || TARGET_uml
281 Select the root filesystem partition size.
283 config TARGET_ROOTFS_PARTNAME
284 string "Root partition on target device"
285 depends on GRUB_IMAGES
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.