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_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
26 Select ramdisk compression.
28 config TARGET_INITRAMFS_COMPRESSION_NONE
31 config TARGET_INITRAMFS_COMPRESSION_GZIP
34 config TARGET_INITRAMFS_COMPRESSION_BZIP2
37 config TARGET_INITRAMFS_COMPRESSION_LZMA
40 config TARGET_INITRAMFS_COMPRESSION_LZO
43 config TARGET_INITRAMFS_COMPRESSION_LZ4
46 config TARGET_INITRAMFS_COMPRESSION_XZ
52 prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
55 Kernel uses specified external cpio as INITRAMFS_SOURCE.
57 config TARGET_INITRAMFS_FORCE
59 depends on TARGET_ROOTFS_INITRAMFS
62 Ignore the initramfs passed by the bootloader.
64 comment "Root filesystem archives"
66 config TARGET_ROOTFS_CPIOGZ
68 default y if USES_CPIOGZ
70 Build a compressed cpio archive of the root filesystem.
72 config TARGET_ROOTFS_TARGZ
74 default y if USES_TARGZ
76 Build a compressed tar archive of the root filesystem.
78 comment "Root filesystem images"
80 menuconfig TARGET_ROOTFS_EXT4FS
82 default y if USES_EXT4
84 Build an ext4 root filesystem.
86 config TARGET_EXT4_RESERVED_PCT
87 int "Percentage of reserved blocks in root filesystem"
88 depends on TARGET_ROOTFS_EXT4FS
91 Select the percentage of reserved blocks in the root filesystem.
94 prompt "Root filesystem block size"
95 default TARGET_EXT4_BLOCKSIZE_4K
96 depends on TARGET_ROOTFS_EXT4FS
98 Select the block size of the root filesystem.
100 config TARGET_EXT4_BLOCKSIZE_4K
103 config TARGET_EXT4_BLOCKSIZE_2K
106 config TARGET_EXT4_BLOCKSIZE_1K
110 config TARGET_EXT4_BLOCKSIZE
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
117 config TARGET_EXT4_JOURNAL
118 bool "Create a journaling filesystem"
119 depends on TARGET_ROOTFS_EXT4FS
122 Create an ext4 filesystem with a journal.
124 config TARGET_ROOTFS_JFFS2
126 depends on USES_JFFS2
128 Build a JFFS2 root filesystem.
130 config TARGET_ROOTFS_JFFS2_NAND
131 bool "jffs2 for NAND"
132 default y if USES_JFFS2_NAND
133 depends on USES_JFFS2_NAND
135 Build a JFFS2 root filesystem for NAND flash.
137 menuconfig TARGET_ROOTFS_SQUASHFS
139 default y if USES_SQUASHFS
141 Build a squashfs-lzma root filesystem.
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)
150 menuconfig TARGET_ROOTFS_UBIFS
152 default y if USES_UBIFS
153 depends on USES_UBIFS
155 Build a UBIFS root filesystem.
159 default TARGET_UBIFS_COMPRESSION_ZLIB
160 depends on TARGET_ROOTFS_UBIFS
162 Select compression type
164 config TARGET_UBIFS_COMPRESSION_NONE
167 config TARGET_UBIFS_COMPRESSION_LZO
170 config TARGET_UBIFS_COMPRESSION_ZLIB
174 config TARGET_UBIFS_FREE_SPACE_FIXUP
175 bool "free space fixup" if TARGET_ROOTFS_UBIFS
178 The filesystem free space has to be fixed up on first mount.
180 config TARGET_UBIFS_JOURNAL_SIZE
182 prompt "journal size" if TARGET_ROOTFS_UBIFS
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
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
197 select PACKAGE_grub2-efi
198 select PACKAGE_kmod-fs-vfat
202 bool "Use Console Terminal (in addition to Serial)"
203 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
207 string "Serial port device"
208 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
212 int "Serial port baud rate"
213 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
214 default 38400 if TARGET_x86_generic
217 config GRUB_FLOWCONTROL
218 bool "Use RTE/CTS on serial console"
219 depends on GRUB_SERIAL != ""
223 string "Extra kernel boot options"
224 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
226 If you don't know, just leave it blank.
229 string "Seconds to wait before booting the default entry"
230 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
233 If you don't know, 5 seconds is a reasonable default.
236 string "Title for the menu entry in GRUB"
237 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
240 This is the title of the GRUB menu entry.
241 If unspecified, it defaults to OpenWrt.
244 bool "Build LiveCD image (ISO)"
245 depends on TARGET_x86
246 depends on GRUB_IMAGES || GRUB_EFI_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
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
260 config TARGET_IMAGES_GZIP
262 depends on TARGET_ROOTFS_EXT4FS || TARGET_x86 || TARGET_armvirt || TARGET_malta
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 USES_BOOT_PART
272 default 8 if TARGET_apm821xx_sata
273 default 64 if TARGET_bcm27xx
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
281 Select the root filesystem partition size.
283 config TARGET_ROOTFS_PARTNAME
284 string "Root partition on target device"
285 depends on GRUB_IMAGES || GRUB_EFI_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.