a744fc7317b44aa6661bdf58e077f370644d824d
[openwrt/openwrt.git] / config / Config-images.in
1 # Copyright (C) 2006-2013 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6
7 menu "Target Images"
8
9 menuconfig TARGET_ROOTFS_INITRAMFS
10 bool "ramdisk"
11 default y if USES_INITRAMFS
12 help
13 Embed the rootfs into the kernel (initramfs)
14
15 choice
16 prompt "Compression"
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
21 help
22 Select ramdisk compression.
23
24 config TARGET_INITRAMFS_COMPRESSION_NONE
25 bool "none"
26
27 config TARGET_INITRAMFS_COMPRESSION_GZIP
28 bool "gzip"
29
30 config TARGET_INITRAMFS_COMPRESSION_BZIP2
31 bool "bzip2"
32
33 config TARGET_INITRAMFS_COMPRESSION_LZMA
34 bool "lzma"
35
36 config TARGET_INITRAMFS_COMPRESSION_LZO
37 bool "lzo"
38
39 config TARGET_INITRAMFS_COMPRESSION_LZ4
40 bool "lz4"
41
42 config TARGET_INITRAMFS_COMPRESSION_XZ
43 bool "xz"
44 endchoice
45
46 config EXTERNAL_CPIO
47 string
48 prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
49 default ""
50 help
51 Kernel uses specified external cpio as INITRAMFS_SOURCE
52
53 comment "Root filesystem archives"
54
55 config TARGET_ROOTFS_CPIOGZ
56 bool "cpio.gz"
57 default y if USES_CPIOGZ
58 help
59 Build a compressed cpio archive of the the root filesystem
60
61 config TARGET_ROOTFS_TARGZ
62 bool "tar.gz"
63 default y if USES_TARGZ
64 help
65 Build a compressed tar archive of the the root filesystem
66
67 comment "Root filesystem images"
68
69 config TARGET_ROOTFS_EXT4FS
70 bool "ext4"
71 default y if USES_EXT4
72 help
73 Ext4 file system with some free space for uml images
74
75 config TARGET_ROOTFS_ISO
76 bool "iso"
77 default n
78 depends on TARGET_x86_generic
79 help
80 Create some bootable ISO image
81
82 config TARGET_ROOTFS_JFFS2
83 bool "jffs2"
84 default y if USES_JFFS2
85 help
86 Build a jffs2 root filesystem
87
88 config TARGET_ROOTFS_JFFS2_NAND
89 bool "jffs2 for NAND"
90 default y if USES_JFFS2_NAND
91 depends on USES_JFFS2_NAND
92 help
93 Build a jffs2 root filesystem for NAND flash
94
95 config TARGET_ROOTFS_SQUASHFS
96 bool "squashfs"
97 default y if USES_SQUASHFS
98 help
99 Build a squashfs-lzma root filesystem
100
101 menuconfig TARGET_ROOTFS_UBIFS
102 bool "ubifs"
103 default y if USES_UBIFS
104 depends on USES_UBIFS
105 help
106 Build a ubifs root filesystem
107
108 choice
109 prompt "compression"
110 default TARGET_UBIFS_COMPRESSION_NONE
111 depends on TARGET_ROOTFS_UBIFS
112 help
113 Select compression type
114
115 config TARGET_UBIFS_COMPRESSION_NONE
116 bool "none"
117
118 config TARGET_UBIFS_COMPRESSION_LZO
119 bool "lzo"
120
121 config TARGET_UBIFS_COMPRESSION_ZLIB
122 bool "zlib"
123 endchoice
124
125 config TARGET_UBIFS_FREE_SPACE_FIXUP
126 bool "free space fixup" if TARGET_ROOTFS_UBIFS
127 default y
128 help
129 The file-system free space has to be fixed up on first mount
130
131 config TARGET_UBIFS_JOURNAL_SIZE
132 string
133 prompt "journal size" if TARGET_ROOTFS_UBIFS
134 default ""
135
136 comment "Image Options"
137
138 source "target/linux/*/image/Config.in"
139
140 config TARGET_ROOTFS_PARTSIZE
141 int "Root filesystem partition size (in MB)"
142 depends on X86_GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
143 default 48
144 help
145 Allows you to change the root filesystem partition size
146
147 config TARGET_ROOTFS_MAXINODE
148 int "Maximum number of inodes in root filesystem"
149 depends on TARGET_ROOTFS_EXT4FS
150 default 6000
151 help
152 Allows you to change the maximum number of inodes in the root filesystem
153
154 config TARGET_ROOTFS_RESERVED_PCT
155 int "Percentage of reserved blocks in root filesystem"
156 depends on TARGET_ROOTFS_EXT4FS
157 default 0
158 help
159 Allows you to change the percentage of reserved blocks in the root filesystem
160
161 menuconfig TARGET_ROOTFS_INCLUDE_KERNEL
162 bool "Include kernel in root filesystem"
163 depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
164 default n
165 help
166 Include the kernel image in the rootfs. Typically the image is placed
167 below /boot.
168
169 config TARGET_ROOTFS_INCLUDE_UIMAGE
170 bool "include uImage" if TARGET_ROOTFS_INCLUDE_KERNEL
171 default y
172 help
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.
176
177 config TARGET_ROOTFS_INCLUDE_ZIMAGE
178 bool "include zImage" if TARGET_ROOTFS_INCLUDE_KERNEL
179 default y
180 help
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.
184
185 config TARGET_ROOTFS_INCLUDE_FIT
186 bool "include FIT" if TARGET_ROOTFS_INCLUDE_KERNEL
187 default y
188 help
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.
192
193 config TARGET_ROOTFS_INCLUDE_DTB
194 bool "Include DTB in root filesystem"
195 depends on USES_DEVICETREE && (TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS)
196 default n
197 help
198 Include the device tree blob file(s) in the rootfs. Typically the DTBs
199 are placed below /boot.
200
201 endmenu