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_ath79_mikrotik
19 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_lantiq
20 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_mpc85xx
21 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
22 default TARGET_INITRAMFS_COMPRESSION_NONE
23 depends on TARGET_ROOTFS_INITRAMFS
25 Select ramdisk compression.
27 config TARGET_INITRAMFS_COMPRESSION_NONE
30 config TARGET_INITRAMFS_COMPRESSION_GZIP
33 config TARGET_INITRAMFS_COMPRESSION_BZIP2
36 config TARGET_INITRAMFS_COMPRESSION_LZMA
39 config TARGET_INITRAMFS_COMPRESSION_LZO
42 config TARGET_INITRAMFS_COMPRESSION_LZ4
45 config TARGET_INITRAMFS_COMPRESSION_XZ
51 prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
54 Kernel uses specified external cpio as INITRAMFS_SOURCE.
56 config TARGET_INITRAMFS_FORCE
58 depends on TARGET_ROOTFS_INITRAMFS
61 Ignore the initramfs passed by the bootloader.
63 comment "Root filesystem archives"
65 config TARGET_ROOTFS_CPIOGZ
67 default y if USES_CPIOGZ
69 Build a compressed cpio archive of the root filesystem.
71 config TARGET_ROOTFS_TARGZ
73 default y if USES_TARGZ
75 Build a compressed tar archive of the root filesystem.
77 comment "Root filesystem images"
79 menuconfig TARGET_ROOTFS_EXT4FS
81 default y if USES_EXT4
83 Build an ext4 root filesystem.
85 config TARGET_EXT4_RESERVED_PCT
86 int "Percentage of reserved blocks in root filesystem"
87 depends on TARGET_ROOTFS_EXT4FS
90 Select the percentage of reserved blocks in the root filesystem.
93 prompt "Root filesystem block size"
94 default TARGET_EXT4_BLOCKSIZE_4K
95 depends on TARGET_ROOTFS_EXT4FS
97 Select the block size of the root filesystem.
99 config TARGET_EXT4_BLOCKSIZE_4K
102 config TARGET_EXT4_BLOCKSIZE_2K
105 config TARGET_EXT4_BLOCKSIZE_1K
109 config TARGET_EXT4_BLOCKSIZE
111 default 4096 if TARGET_EXT4_BLOCKSIZE_4K
112 default 2048 if TARGET_EXT4_BLOCKSIZE_2K
113 default 1024 if TARGET_EXT4_BLOCKSIZE_1K
114 depends on TARGET_ROOTFS_EXT4FS
116 config TARGET_EXT4_JOURNAL
117 bool "Create a journaling filesystem"
118 depends on TARGET_ROOTFS_EXT4FS
121 Create an ext4 filesystem with a journal.
123 config TARGET_ROOTFS_JFFS2
125 depends on USES_JFFS2
127 Build a JFFS2 root filesystem.
129 config TARGET_ROOTFS_JFFS2_NAND
130 bool "jffs2 for NAND"
131 default y if USES_JFFS2_NAND
132 depends on USES_JFFS2_NAND
134 Build a JFFS2 root filesystem for NAND flash.
136 menuconfig TARGET_ROOTFS_SQUASHFS
138 default y if USES_SQUASHFS
140 Build a squashfs-lzma root filesystem.
142 config TARGET_SQUASHFS_BLOCK_SIZE
143 int "Block size (in KiB)"
144 depends on TARGET_ROOTFS_SQUASHFS
145 default 64 if LOW_MEMORY_FOOTPRINT
146 default 1024 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT)
149 menuconfig TARGET_ROOTFS_UBIFS
151 default y if USES_UBIFS
152 depends on USES_UBIFS
154 Build a UBIFS root filesystem.
158 default TARGET_UBIFS_COMPRESSION_ZLIB
159 depends on TARGET_ROOTFS_UBIFS
161 Select compression type
163 config TARGET_UBIFS_COMPRESSION_NONE
166 config TARGET_UBIFS_COMPRESSION_LZO
169 config TARGET_UBIFS_COMPRESSION_ZLIB
173 config TARGET_UBIFS_FREE_SPACE_FIXUP
174 bool "free space fixup" if TARGET_ROOTFS_UBIFS
177 The filesystem free space has to be fixed up on first mount.
179 config TARGET_UBIFS_JOURNAL_SIZE
181 prompt "journal size" if TARGET_ROOTFS_UBIFS
185 bool "Build GRUB images (Linux x86 or x86_64 host only)"
186 depends on TARGET_x86
187 depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
191 config GRUB_EFI_IMAGES
192 bool "Build GRUB EFI images (Linux x86 or x86_64 host only)"
193 depends on TARGET_x86
194 depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
196 select PACKAGE_grub2-efi
197 select PACKAGE_kmod-fs-vfat
201 bool "Use Console Terminal (in addition to Serial)"
202 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
206 string "Serial port device"
207 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
211 int "Serial port baud rate"
212 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
213 default 38400 if TARGET_x86_generic
216 config GRUB_FLOWCONTROL
217 bool "Use RTE/CTS on serial console"
218 depends on GRUB_SERIAL != ""
222 string "Extra kernel boot options"
223 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
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 || GRUB_EFI_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 || GRUB_EFI_IMAGES
239 This is the title of the GRUB menu entry.
240 If unspecified, it defaults to OpenWrt.
243 bool "Build LiveCD image (ISO)"
244 depends on TARGET_x86
245 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
248 bool "Build VirtualBox image files (VDI)"
249 depends on TARGET_x86
250 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
251 select PACKAGE_kmod-e1000
254 bool "Build VMware image files (VMDK)"
255 depends on TARGET_x86
256 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
257 select PACKAGE_kmod-e1000
259 config TARGET_IMAGES_GZIP
261 depends on TARGET_ROOTFS_EXT4FS || TARGET_x86 || TARGET_armvirt || TARGET_malta
264 comment "Image Options"
266 source "target/linux/*/image/Config.in"
268 config TARGET_KERNEL_PARTSIZE
269 int "Kernel partition size (in MB)"
270 depends on USES_BOOT_PART
271 default 8 if TARGET_apm821xx_sata
272 default 64 if TARGET_bcm27xx
275 config TARGET_ROOTFS_PARTSIZE
276 int "Root filesystem partition size (in MB)"
277 depends on USES_ROOTFS_PART || TARGET_ROOTFS_EXT4FS || TARGET_omap || TARGET_sunxi || TARGET_uml
280 Select the root filesystem partition size.
282 config TARGET_ROOTFS_PARTNAME
283 string "Root partition on target device"
284 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
286 Override the root partition on the final device. If left empty,
287 it will be mounted by PARTUUID which makes the kernel find the
288 appropriate disk automatically.