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
136 comment "Image Options"
138 source "target/linux/*/image/Config.in"
140 config TARGET_ROOTFS_PARTSIZE
141 int "Root filesystem partition size (in MB)"
142 depends on X86_GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
145 Allows you to change the root filesystem partition size
147 config TARGET_ROOTFS_MAXINODE
148 int "Maximum number of inodes in root filesystem"
149 depends on TARGET_ROOTFS_EXT4FS
152 Allows you to change the maximum number of inodes in the root filesystem
154 config TARGET_ROOTFS_RESERVED_PCT
155 int "Percentage of reserved blocks in root filesystem"
156 depends on TARGET_ROOTFS_EXT4FS
159 Allows you to change the percentage of reserved blocks in the root filesystem
161 menuconfig TARGET_ROOTFS_INCLUDE_KERNEL
162 bool "Include kernel in root filesystem"
163 depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
166 Include the kernel image in the rootfs. Typically the image is placed
169 config TARGET_ROOTFS_INCLUDE_UIMAGE
170 bool "include uImage" if TARGET_ROOTFS_INCLUDE_KERNEL
173 This option might not apply to all targets. Make sure
174 to check target/linux/<your_target>/image/Makefile to
175 see if this option will have any effect.
177 config TARGET_ROOTFS_INCLUDE_ZIMAGE
178 bool "include zImage" if TARGET_ROOTFS_INCLUDE_KERNEL
181 This option might not apply to all targets. Make sure
182 to check target/linux/<your_target>/image/Makefile to
183 see if this option will have any effect.
185 config TARGET_ROOTFS_INCLUDE_FIT
186 bool "include FIT" if TARGET_ROOTFS_INCLUDE_KERNEL
189 This option might not apply to all targets. Make sure
190 to check target/linux/<your_target>/image/Makefile to
191 see if this option will have any effect.
193 config TARGET_ROOTFS_INCLUDE_DTB
194 bool "Include DTB in root filesystem"
195 depends on USES_DEVICETREE && (TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS)
198 Include the device tree blob file(s) in the rootfs. Typically the DTBs
199 are placed below /boot.