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_NONE
20 depends on TARGET_ROOTFS_INITRAMFS
22 Select ramdisk compression.
24 config TARGET_INITRAMFS_COMPRESSION_NONE
27 config TARGET_INITRAMFS_COMPRESSION_GZIP
30 config TARGET_INITRAMFS_COMPRESSION_BZIP2
33 config TARGET_INITRAMFS_COMPRESSION_LZMA
36 config TARGET_INITRAMFS_COMPRESSION_LZO
39 config TARGET_INITRAMFS_COMPRESSION_LZ4
42 config TARGET_INITRAMFS_COMPRESSION_XZ
48 prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
51 Kernel uses specified external cpio as INITRAMFS_SOURCE.
53 comment "Root filesystem archives"
55 config TARGET_ROOTFS_CPIOGZ
57 default y if USES_CPIOGZ
59 Build a compressed cpio archive of the root filesystem.
61 config TARGET_ROOTFS_TARGZ
63 default y if USES_TARGZ
65 Build a compressed tar archive of the root filesystem.
67 comment "Root filesystem images"
69 menuconfig TARGET_ROOTFS_EXT4FS
71 default y if USES_EXT4
73 Build an ext4 root filesystem.
75 config TARGET_EXT4_MAXINODE
76 int "Maximum number of inodes in root filesystem"
77 depends on TARGET_ROOTFS_EXT4FS
80 Select the maximum number of inodes in the root filesystem.
82 config TARGET_EXT4_RESERVED_PCT
83 int "Percentage of reserved blocks in root filesystem"
84 depends on TARGET_ROOTFS_EXT4FS
87 Select the percentage of reserved blocks in the root filesystem.
90 prompt "Root filesystem block size"
91 default TARGET_EXT4_BLOCKSIZE_4K
92 depends on TARGET_ROOTFS_EXT4FS
94 Select the block size of the root filesystem.
96 config TARGET_EXT4_BLOCKSIZE_4K
99 config TARGET_EXT4_BLOCKSIZE_2K
102 config TARGET_EXT4_BLOCKSIZE_1K
106 config TARGET_EXT4_BLOCKSIZE
108 default 4096 if TARGET_EXT4_BLOCKSIZE_4K
109 default 2048 if TARGET_EXT4_BLOCKSIZE_2K
110 default 1024 if TARGET_EXT4_BLOCKSIZE_1K
111 depends on TARGET_ROOTFS_EXT4FS
113 config TARGET_EXT4_JOURNAL
114 bool "Create a journaling filesystem"
115 depends on TARGET_ROOTFS_EXT4FS
118 Create an ext4 filesystem with a journal.
120 config TARGET_ROOTFS_ISO
123 depends on TARGET_x86_generic
125 Create a bootable ISO image.
127 config TARGET_ROOTFS_JFFS2
129 default y if USES_JFFS2
131 Build a JFFS2 root filesystem.
133 config TARGET_ROOTFS_JFFS2_NAND
134 bool "jffs2 for NAND"
135 default y if USES_JFFS2_NAND
136 depends on USES_JFFS2_NAND
138 Build a JFFS2 root filesystem for NAND flash.
140 menuconfig TARGET_ROOTFS_SQUASHFS
142 default y if USES_SQUASHFS
144 Build a squashfs-lzma root filesystem.
146 config TARGET_SQUASHFS_BLOCK_SIZE
147 int "Block size (in KiB)"
148 depends on TARGET_ROOTFS_SQUASHFS
149 default 64 if LOW_MEMORY_FOOTPRINT
152 menuconfig TARGET_ROOTFS_UBIFS
154 default y if USES_UBIFS
155 depends on USES_UBIFS
157 Build a UBIFS root filesystem.
161 default TARGET_UBIFS_COMPRESSION_ZLIB
162 depends on TARGET_ROOTFS_UBIFS
164 Select compression type
166 config TARGET_UBIFS_COMPRESSION_NONE
169 config TARGET_UBIFS_COMPRESSION_LZO
172 config TARGET_UBIFS_COMPRESSION_ZLIB
176 config TARGET_UBIFS_FREE_SPACE_FIXUP
177 bool "free space fixup" if TARGET_ROOTFS_UBIFS
180 The filesystem free space has to be fixed up on first mount.
182 config TARGET_UBIFS_JOURNAL_SIZE
184 prompt "journal size" if TARGET_ROOTFS_UBIFS
188 bool "Build GRUB images (Linux x86 or x86_64 host only)"
189 depends on TARGET_x86_64 || (TARGET_x86 && !(TARGET_x86_olpc || TARGET_x86_rdc))
190 depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_ISO || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
195 bool "Use Console Terminal (in addition to Serial)"
196 depends on GRUB_IMAGES
197 default n if (TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501 || TARGET_x86_geos || TARGET_x86_alix2)
201 string "Serial port device"
202 depends on GRUB_IMAGES
203 default "hvc0" if TARGET_x86_xen_domu
204 default "ttyS0" if ! TARGET_x86_xen_domu
207 int "Serial port baud rate"
208 depends on GRUB_IMAGES
209 default 19200 if TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501
210 default 38400 if TARGET_x86_alix2
211 default 115200 if TARGET_x86_geos || TARGET_x86_kvm_guest
215 string "Extra kernel boot options"
216 depends on GRUB_IMAGES
217 default "xencons=hvc" if TARGET_x86_xen_domu
219 If you don't know, just leave it blank.
222 string "Seconds to wait before booting the default entry"
223 depends on GRUB_IMAGES
226 If you don't know, 5 seconds is a reasonable default.
229 bool "Build VirtualBox image files (VDI)"
230 depends on TARGET_x86 || TARGET_x86_64
232 select TARGET_IMAGES_PAD
233 select PACKAGE_kmod-e1000
236 bool "Build VMware image files (VMDK)"
237 depends on TARGET_x86 || TARGET_x86_64
239 select TARGET_IMAGES_PAD
240 select PACKAGE_kmod-e1000
242 config TARGET_IMAGES_PAD
243 bool "Pad images to filesystem size (for JFFS2)"
244 depends on OLPC_BOOTSCRIPT_IMAGES || GRUB_IMAGES
246 config TARGET_IMAGES_GZIP
248 depends on TARGET_IMAGES_PAD || TARGET_ROOTFS_EXT4FS
251 comment "Image Options"
253 source "target/linux/*/image/Config.in"
255 config TARGET_KERNEL_PARTSIZE
256 int "Kernel partition size (in MB)"
257 depends on OLPC_BOOTSCRIPT_IMAGES || GRUB_IMAGES
260 config TARGET_ROOTFS_PARTSIZE
261 int "Root filesystem partition size (in MB)"
262 depends on GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
265 Select the root filesystem partition size.
267 config TARGET_ROOTFS_PARTNAME
268 string "Root partition on target device"
269 depends on OLPC_BOOTSCRIPT_IMAGES || GRUB_IMAGES
270 default "/dev/xvda2" if TARGET_x86_xen_domu
271 default "/dev/sda2" if TARGET_x86 && ! TARGET_x86_xen_domu
273 Override the root partition on the final device. If left empty,
274 it will be mounted by PARTUUID which makes the kernel find the
275 appropriate disk automatically.
278 menuconfig TARGET_ROOTFS_INCLUDE_KERNEL
279 bool "Include kernel in root filesystem"
280 depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
283 Include the kernel image in the rootfs. Typically, the image is placed
286 config TARGET_ROOTFS_INCLUDE_UIMAGE
287 bool "include uImage" if TARGET_ROOTFS_INCLUDE_KERNEL
290 This option might not apply to all targets. Make sure
291 to check target/linux/<your_target>/image/Makefile to
292 see if this option will have any effect.
294 config TARGET_ROOTFS_INCLUDE_ZIMAGE
295 bool "include zImage" if TARGET_ROOTFS_INCLUDE_KERNEL
298 This option might not apply to all targets. Make sure
299 to check target/linux/<your_target>/image/Makefile to
300 see if this option will have any effect.
302 config TARGET_ROOTFS_INCLUDE_FIT
303 bool "include FIT" if TARGET_ROOTFS_INCLUDE_KERNEL
306 This option might not apply to all targets. Make sure
307 to check target/linux/<your_target>/image/Makefile to
308 see if this option will have any effect.
310 config TARGET_ROOTFS_INCLUDE_DTB
311 bool "Include DTB in root filesystem"
312 depends on USES_DEVICETREE && (TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS)
315 Include the device tree blob file(s) in the rootfs. Typically the DTBs
316 are placed below /boot.