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 rootfs 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 the root filesystem
61 config TARGET_ROOTFS_TARGZ
63 default y if USES_TARGZ
65 Build a compressed tar archive of the the root filesystem
67 comment "Root filesystem images"
69 config TARGET_ROOTFS_EXT4FS
71 default y if USES_EXT4
73 Ext4 file system with some free space for uml images
75 config TARGET_ROOTFS_ISO
78 depends on TARGET_x86_generic
80 Create some bootable ISO image
82 config TARGET_ROOTFS_JFFS2
84 default y if USES_JFFS2
86 Build a jffs2 root filesystem
88 config TARGET_ROOTFS_JFFS2_NAND
90 default y if USES_JFFS2_NAND
91 depends on USES_JFFS2_NAND
93 Build a jffs2 root filesystem for NAND flash
95 config TARGET_ROOTFS_SQUASHFS
97 default y if USES_SQUASHFS
99 Build a squashfs-lzma root filesystem
101 menuconfig TARGET_ROOTFS_UBIFS
103 default y if USES_UBIFS
104 depends on USES_UBIFS
106 Build a ubifs root filesystem
110 default TARGET_UBIFS_COMPRESSION_NONE
111 depends on TARGET_ROOTFS_UBIFS
113 Select compression type
115 config TARGET_UBIFS_COMPRESSION_NONE
118 config TARGET_UBIFS_COMPRESSION_LZO
121 config TARGET_UBIFS_COMPRESSION_ZLIB
125 config TARGET_UBIFS_FREE_SPACE_FIXUP
126 bool "free space fixup" if TARGET_ROOTFS_UBIFS
129 The file-system free space has to be fixed up on first mount
131 config TARGET_UBIFS_JOURNAL_SIZE
133 prompt "journal size" if TARGET_ROOTFS_UBIFS
137 bool "Build GRUB images (Linux x86 or x86_64 host only)"
138 depends on TARGET_x86_64 || (TARGET_x86 && !(TARGET_x86_olpc || TARGET_x86_rdc))
139 depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_ISO || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
144 bool "Use Console Terminal (in addition to Serial)"
145 depends on GRUB_IMAGES
146 default n if (TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501 || TARGET_x86_geos || TARGET_x86_alix2)
150 string "Serial port device"
151 depends on GRUB_IMAGES
152 default "hvc0" if TARGET_x86_xen_domu
153 default "ttyS0" if ! TARGET_x86_xen_domu
156 int "Serial port baud rate"
157 depends on GRUB_IMAGES
158 default 19200 if TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501
159 default 38400 if TARGET_x86_alix2
160 default 115200 if TARGET_x86_geos || TARGET_x86_kvm_guest
164 string "Extra kernel boot options"
165 depends on GRUB_IMAGES
166 default "xencons=hvc" if TARGET_x86_xen_domu
168 If you don't know, just leave it blank.
171 string "Seconds to wait before booting the default entry"
172 depends on GRUB_IMAGES
175 If you don't know, 5 seconds is a reasonable default.
178 bool "Build VirtualBox image files (VDI)"
179 depends on TARGET_x86 || TARGET_x86_64
181 select TARGET_ROOTFS_EXT4FS
182 select PACKAGE_kmod-e1000
185 bool "Build VMware image files (VMDK)"
186 depends on TARGET_x86 || TARGET_x86_64
188 select TARGET_ROOTFS_EXT4FS
189 select PACKAGE_kmod-e1000
191 config TARGET_IMAGES_PAD
192 bool "Pad images to filesystem size (for JFFS2)"
193 depends on OLPC_BOOTSCRIPT_IMAGES || GRUB_IMAGES
195 config TARGET_IMAGES_GZIP
197 depends on TARGET_IMAGES_PAD || TARGET_ROOTFS_EXT4FS
200 comment "Image Options"
202 source "target/linux/*/image/Config.in"
204 config TARGET_KERNEL_PARTSIZE
205 int "Kernel partition size (in MB)"
206 depends on OLPC_BOOTSCRIPT_IMAGES || GRUB_IMAGES
209 config TARGET_ROOTFS_PARTSIZE
210 int "Root filesystem partition size (in MB)"
211 depends on GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
214 Allows you to change the root filesystem partition size
216 config TARGET_ROOTFS_PARTNAME
217 string "Root partition on target device"
218 depends on OLPC_BOOTSCRIPT_IMAGES || GRUB_IMAGES
219 default "/dev/vda2" if TARGET_x86_kvm_guest
220 default "/dev/xvda2" if TARGET_x86_xen_domu
221 default "/dev/sda2" if ! (TARGET_x86_kvm_guest || TARGET_x86_xen_domu)
223 The root partition on the final device. If you don't know,
224 you probably want the default (/dev/sda2).
226 config TARGET_ROOTFS_MAXINODE
227 int "Maximum number of inodes in root filesystem"
228 depends on TARGET_ROOTFS_EXT4FS
231 Allows you to change the maximum number of inodes in the root filesystem
233 config TARGET_ROOTFS_RESERVED_PCT
234 int "Percentage of reserved blocks in root filesystem"
235 depends on TARGET_ROOTFS_EXT4FS
238 Allows you to change the percentage of reserved blocks in the root filesystem
240 menuconfig TARGET_ROOTFS_INCLUDE_KERNEL
241 bool "Include kernel in root filesystem"
242 depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
245 Include the kernel image in the rootfs. Typically the image is placed
248 config TARGET_ROOTFS_INCLUDE_UIMAGE
249 bool "include uImage" if TARGET_ROOTFS_INCLUDE_KERNEL
252 This option might not apply to all targets. Make sure
253 to check target/linux/<your_target>/image/Makefile to
254 see if this option will have any effect.
256 config TARGET_ROOTFS_INCLUDE_ZIMAGE
257 bool "include zImage" if TARGET_ROOTFS_INCLUDE_KERNEL
260 This option might not apply to all targets. Make sure
261 to check target/linux/<your_target>/image/Makefile to
262 see if this option will have any effect.
264 config TARGET_ROOTFS_INCLUDE_FIT
265 bool "include FIT" if TARGET_ROOTFS_INCLUDE_KERNEL
268 This option might not apply to all targets. Make sure
269 to check target/linux/<your_target>/image/Makefile to
270 see if this option will have any effect.
272 config TARGET_ROOTFS_INCLUDE_DTB
273 bool "Include DTB in root filesystem"
274 depends on USES_DEVICETREE && (TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS)
277 Include the device tree blob file(s) in the rootfs. Typically the DTBs
278 are placed below /boot.