build: use SPDX license tags
[openwrt/staging/chunkeey.git] / config / Config-images.in
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # Copyright (C) 2006-2013 OpenWrt.org
4
5 menu "Target Images"
6
7 menuconfig TARGET_ROOTFS_INITRAMFS
8 bool "ramdisk"
9 default y if USES_INITRAMFS
10 help
11 Embed the root filesystem into the kernel (initramfs).
12
13 choice
14 prompt "Compression"
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
22 help
23 Select ramdisk compression.
24
25 config TARGET_INITRAMFS_COMPRESSION_NONE
26 bool "none"
27
28 config TARGET_INITRAMFS_COMPRESSION_GZIP
29 bool "gzip"
30
31 config TARGET_INITRAMFS_COMPRESSION_BZIP2
32 bool "bzip2"
33
34 config TARGET_INITRAMFS_COMPRESSION_LZMA
35 bool "lzma"
36
37 config TARGET_INITRAMFS_COMPRESSION_LZO
38 bool "lzo"
39
40 config TARGET_INITRAMFS_COMPRESSION_LZ4
41 bool "lz4"
42
43 config TARGET_INITRAMFS_COMPRESSION_XZ
44 bool "xz"
45 endchoice
46
47 config EXTERNAL_CPIO
48 string
49 prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
50 default ""
51 help
52 Kernel uses specified external cpio as INITRAMFS_SOURCE.
53
54 config TARGET_INITRAMFS_FORCE
55 bool "Force"
56 depends on TARGET_ROOTFS_INITRAMFS
57 default n
58 help
59 Ignore the initramfs passed by the bootloader.
60
61 comment "Root filesystem archives"
62
63 config TARGET_ROOTFS_CPIOGZ
64 bool "cpio.gz"
65 default y if USES_CPIOGZ
66 help
67 Build a compressed cpio archive of the root filesystem.
68
69 config TARGET_ROOTFS_TARGZ
70 bool "tar.gz"
71 default y if USES_TARGZ
72 help
73 Build a compressed tar archive of the root filesystem.
74
75 comment "Root filesystem images"
76
77 menuconfig TARGET_ROOTFS_EXT4FS
78 bool "ext4"
79 default y if USES_EXT4
80 help
81 Build an ext4 root filesystem.
82
83 config TARGET_EXT4_RESERVED_PCT
84 int "Percentage of reserved blocks in root filesystem"
85 depends on TARGET_ROOTFS_EXT4FS
86 default 0
87 help
88 Select the percentage of reserved blocks in the root filesystem.
89
90 choice
91 prompt "Root filesystem block size"
92 default TARGET_EXT4_BLOCKSIZE_4K
93 depends on TARGET_ROOTFS_EXT4FS
94 help
95 Select the block size of the root filesystem.
96
97 config TARGET_EXT4_BLOCKSIZE_4K
98 bool "4k"
99
100 config TARGET_EXT4_BLOCKSIZE_2K
101 bool "2k"
102
103 config TARGET_EXT4_BLOCKSIZE_1K
104 bool "1k"
105 endchoice
106
107 config TARGET_EXT4_BLOCKSIZE
108 int
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
113
114 config TARGET_EXT4_JOURNAL
115 bool "Create a journaling filesystem"
116 depends on TARGET_ROOTFS_EXT4FS
117 default n
118 help
119 Create an ext4 filesystem with a journal.
120
121 config TARGET_ROOTFS_JFFS2
122 bool "jffs2"
123 depends on USES_JFFS2
124 help
125 Build a JFFS2 root filesystem.
126
127 config TARGET_ROOTFS_JFFS2_NAND
128 bool "jffs2 for NAND"
129 default y if USES_JFFS2_NAND
130 depends on USES_JFFS2_NAND
131 help
132 Build a JFFS2 root filesystem for NAND flash.
133
134 menuconfig TARGET_ROOTFS_SQUASHFS
135 bool "squashfs"
136 default y if USES_SQUASHFS
137 help
138 Build a squashfs-lzma root filesystem.
139
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)
145 default 256
146
147 menuconfig TARGET_ROOTFS_UBIFS
148 bool "ubifs"
149 default y if USES_UBIFS
150 depends on USES_UBIFS
151 help
152 Build a UBIFS root filesystem.
153
154 choice
155 prompt "compression"
156 default TARGET_UBIFS_COMPRESSION_ZLIB
157 depends on TARGET_ROOTFS_UBIFS
158 help
159 Select compression type
160
161 config TARGET_UBIFS_COMPRESSION_NONE
162 bool "none"
163
164 config TARGET_UBIFS_COMPRESSION_LZO
165 bool "lzo"
166
167 config TARGET_UBIFS_COMPRESSION_ZLIB
168 bool "zlib"
169 endchoice
170
171 config TARGET_UBIFS_FREE_SPACE_FIXUP
172 bool "free space fixup" if TARGET_ROOTFS_UBIFS
173 default y
174 help
175 The filesystem free space has to be fixed up on first mount.
176
177 config TARGET_UBIFS_JOURNAL_SIZE
178 string
179 prompt "journal size" if TARGET_ROOTFS_UBIFS
180 default ""
181
182 config GRUB_IMAGES
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
186 select PACKAGE_grub2
187 default y
188
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
193 select PACKAGE_grub2
194 select PACKAGE_grub2-efi
195 select PACKAGE_kmod-fs-vfat
196 default y
197
198 config GRUB_CONSOLE
199 bool "Use Console Terminal (in addition to Serial)"
200 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
201 default y
202
203 config GRUB_SERIAL
204 string "Serial port device"
205 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
206 default "ttyS0"
207
208 config GRUB_BAUDRATE
209 int "Serial port baud rate"
210 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
211 default 38400 if TARGET_x86_generic
212 default 115200
213
214 config GRUB_FLOWCONTROL
215 bool "Use RTE/CTS on serial console"
216 depends on GRUB_SERIAL != ""
217 default n
218
219 config GRUB_BOOTOPTS
220 string "Extra kernel boot options"
221 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
222 help
223 If you don't know, just leave it blank.
224
225 config GRUB_TIMEOUT
226 string "Seconds to wait before booting the default entry"
227 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
228 default "5"
229 help
230 If you don't know, 5 seconds is a reasonable default.
231
232 config GRUB_TITLE
233 string "Title for the menu entry in GRUB"
234 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
235 default "OpenWrt"
236 help
237 This is the title of the GRUB menu entry.
238 If unspecified, it defaults to OpenWrt.
239
240 config ISO_IMAGES
241 bool "Build LiveCD image (ISO)"
242 depends on TARGET_x86
243 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
244
245 config VDI_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
250
251 config VMDK_IMAGES
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
256
257 config TARGET_IMAGES_GZIP
258 bool "GZip images"
259 depends on TARGET_ROOTFS_EXT4FS || TARGET_x86 || TARGET_armvirt || TARGET_malta
260 default y
261
262 comment "Image Options"
263
264 source "target/linux/*/image/Config.in"
265
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
271 default 16
272
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
276 default 104
277 help
278 Select the root filesystem partition size.
279
280 config TARGET_ROOTFS_PARTNAME
281 string "Root partition on target device"
282 depends on GRUB_IMAGES || GRUB_EFI_IMAGES
283 help
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.
287
288 endmenu