1 # SPDX-License-Identifier: GPL-2.0-only
3 # Copyright (C) 2006-2013 OpenWrt.org
7 menuconfig TARGET_ROOTFS_INITRAMFS
9 default y if USES_INITRAMFS
11 Embed the root filesystem into the kernel (initramfs).
15 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_apm821xx
16 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ath79_mikrotik
17 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_lantiq
18 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_mpc85xx
19 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
20 default TARGET_INITRAMFS_COMPRESSION_NONE
21 depends on TARGET_ROOTFS_INITRAMFS
23 Select ramdisk compression.
25 config TARGET_INITRAMFS_COMPRESSION_NONE
28 config TARGET_INITRAMFS_COMPRESSION_GZIP
31 config TARGET_INITRAMFS_COMPRESSION_BZIP2
34 config TARGET_INITRAMFS_COMPRESSION_LZMA
37 config TARGET_INITRAMFS_COMPRESSION_LZO
40 config TARGET_INITRAMFS_COMPRESSION_LZ4
43 config TARGET_INITRAMFS_COMPRESSION_XZ
49 prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
52 Kernel uses specified external cpio as INITRAMFS_SOURCE.
54 config TARGET_INITRAMFS_FORCE
56 depends on TARGET_ROOTFS_INITRAMFS
59 Ignore the initramfs passed by the bootloader.
61 comment "Root filesystem archives"
63 config TARGET_ROOTFS_CPIOGZ
65 default y if USES_CPIOGZ
67 Build a compressed cpio archive of the root filesystem.
69 config TARGET_ROOTFS_TARGZ
71 default y if USES_TARGZ
73 Build a compressed tar archive of the root filesystem.
75 comment "Root filesystem images"
77 menuconfig TARGET_ROOTFS_EXT4FS
79 default y if USES_EXT4
81 Build an ext4 root filesystem.
83 config TARGET_EXT4_RESERVED_PCT
84 int "Percentage of reserved blocks in root filesystem"
85 depends on TARGET_ROOTFS_EXT4FS
88 Select the percentage of reserved blocks in the root filesystem.
91 prompt "Root filesystem block size"
92 default TARGET_EXT4_BLOCKSIZE_4K
93 depends on TARGET_ROOTFS_EXT4FS
95 Select the block size of the root filesystem.
97 config TARGET_EXT4_BLOCKSIZE_4K
100 config TARGET_EXT4_BLOCKSIZE_2K
103 config TARGET_EXT4_BLOCKSIZE_1K
107 config TARGET_EXT4_BLOCKSIZE
109 default 4096 if TARGET_EXT4_BLOCKSIZE_4K
110 default 2048 if TARGET_EXT4_BLOCKSIZE_2K
111 default 1024 if TARGET_EXT4_BLOCKSIZE_1K
112 depends on TARGET_ROOTFS_EXT4FS
114 config TARGET_EXT4_JOURNAL
115 bool "Create a journaling filesystem"
116 depends on TARGET_ROOTFS_EXT4FS
119 Create an ext4 filesystem with a journal.
121 config TARGET_ROOTFS_JFFS2
123 depends on USES_JFFS2
125 Build a JFFS2 root filesystem.
127 config TARGET_ROOTFS_JFFS2_NAND
128 bool "jffs2 for NAND"
129 default y if USES_JFFS2_NAND
130 depends on USES_JFFS2_NAND
132 Build a JFFS2 root filesystem for NAND flash.
134 menuconfig TARGET_ROOTFS_SQUASHFS
136 default y if USES_SQUASHFS
138 Build a squashfs-lzma root filesystem.
140 config TARGET_SQUASHFS_BLOCK_SIZE
141 int "Block size (in KiB)"
142 depends on TARGET_ROOTFS_SQUASHFS
143 default 64 if LOW_MEMORY_FOOTPRINT
144 default 1024 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT)
147 menuconfig TARGET_ROOTFS_UBIFS
149 default y if USES_UBIFS
150 depends on USES_UBIFS
152 Build a UBIFS root filesystem.
156 default TARGET_UBIFS_COMPRESSION_ZLIB
157 depends on TARGET_ROOTFS_UBIFS
159 Select compression type
161 config TARGET_UBIFS_COMPRESSION_NONE
164 config TARGET_UBIFS_COMPRESSION_LZO
167 config TARGET_UBIFS_COMPRESSION_ZLIB
171 config TARGET_UBIFS_FREE_SPACE_FIXUP
172 bool "free space fixup" if TARGET_ROOTFS_UBIFS
175 The filesystem free space has to be fixed up on first mount.
177 config TARGET_UBIFS_JOURNAL_SIZE
179 prompt "journal size" if TARGET_ROOTFS_UBIFS
183 bool "Build GRUB images (Linux x86 or x86_64 host only)"
184 depends on TARGET_x86
185 depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
189 config GRUB_EFI_IMAGES
190 bool "Build GRUB EFI images (Linux x86 or x86_64 host only)"
191 depends on TARGET_x86
192 depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
194 select PACKAGE_grub2-efi
195 select PACKAGE_kmod-fs-vfat
199 bool "Use Console Terminal (in addition to Serial)"
200 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
204 string "Serial port device"
205 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
209 int "Serial port baud rate"
210 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
211 default 38400 if TARGET_x86_generic
214 config GRUB_FLOWCONTROL
215 bool "Use RTE/CTS on serial console"
216 depends on GRUB_SERIAL != ""
220 string "Extra kernel boot options"
221 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
223 If you don't know, just leave it blank.
226 string "Seconds to wait before booting the default entry"
227 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
230 If you don't know, 5 seconds is a reasonable default.
233 string "Title for the menu entry in GRUB"
234 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
237 This is the title of the GRUB menu entry.
238 If unspecified, it defaults to OpenWrt.
241 bool "Build LiveCD image (ISO)"
242 depends on TARGET_x86
243 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
246 bool "Build VirtualBox image files (VDI)"
247 depends on TARGET_x86
248 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
249 select PACKAGE_kmod-e1000
252 bool "Build VMware image files (VMDK)"
253 depends on TARGET_x86
254 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
255 select PACKAGE_kmod-e1000
257 config TARGET_IMAGES_GZIP
259 depends on TARGET_ROOTFS_EXT4FS || TARGET_x86 || TARGET_armvirt || TARGET_malta
262 comment "Image Options"
264 source "target/linux/*/image/Config.in"
266 config TARGET_KERNEL_PARTSIZE
267 int "Kernel partition size (in MB)"
268 depends on USES_BOOT_PART
269 default 8 if TARGET_apm821xx_sata
270 default 64 if TARGET_bcm27xx
273 config TARGET_ROOTFS_PARTSIZE
274 int "Root filesystem partition size (in MB)"
275 depends on USES_ROOTFS_PART || TARGET_ROOTFS_EXT4FS || TARGET_omap || TARGET_sunxi || TARGET_uml
278 Select the root filesystem partition size.
280 config TARGET_ROOTFS_PARTNAME
281 string "Root partition on target device"
282 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
284 Override the root partition on the final device. If left empty,
285 it will be mounted by PARTUUID which makes the kernel find the
286 appropriate disk automatically.