1 # Copyright (C) 2006-2009 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
7 mainmenu "OpenWrt Configuration"
13 source "target/Config.in"
16 config TARGET_ROOTFS_INITRAMFS
18 default y if USES_INITRAMFS
21 Embed the rootfs into the kernel (initramfs)
24 prompt "ramdisk compression"
25 depends TARGET_ROOTFS_INITRAMFS
27 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ar71xx
28 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
29 default TARGET_INITRAMFS_COMPRESSION_NONE
31 Select ramdisk compression.
33 config TARGET_INITRAMFS_COMPRESSION_NONE
36 config TARGET_INITRAMFS_COMPRESSION_GZIP
39 config TARGET_INITRAMFS_COMPRESSION_BZIP2
42 config TARGET_INITRAMFS_COMPRESSION_LZMA
45 config TARGET_INITRAMFS_COMPRESSION_LZO
49 config TARGET_ROOTFS_JFFS2
51 default y if USES_JFFS2
52 depends !TARGET_ROOTFS_INITRAMFS
54 Build a jffs2 root filesystem
56 config TARGET_ROOTFS_SQUASHFS
58 default y if USES_SQUASHFS
59 depends !TARGET_ROOTFS_INITRAMFS
61 Build a squashfs-lzma root filesystem
63 config TARGET_ROOTFS_TGZ
67 Build a compressed tar archive of the the root filesystem
69 config TARGET_ROOTFS_CPIOGZ
71 default y if USES_CPIOGZ
73 Build a compressed cpio archive of the the root filesystem
75 config TARGET_ROOTFS_EXT2FS
77 default y if USES_EXT2
78 depends !TARGET_ROOTFS_INITRAMFS
80 Ext2 file system with some free space for uml images
82 config TARGET_ROOTFS_ISO
85 depends TARGET_ROOTFS_INITRAMFS && TARGET_x86
87 Create some bootable ISO image
89 config TARGET_ROOTFS_UBIFS
91 default y if USES_UBIFS
92 depends !TARGET_ROOTFS_INITRAMFS && USES_UBIFS
94 Build a ubifs root filesystem
96 comment "Image Options"
98 source "target/linux/*/image/Config.in"
100 config TARGET_ROOTFS_FSPART
101 int "Filesystem part size (in MB)"
102 depends X86_GRUB_IMAGES || TARGET_ROOTFS_EXT2FS || TARGET_rb532 || TARGET_olpc
105 Allows you to change the filesystem partition size
107 config TARGET_ROOTFS_MAXINODE
108 int "Maximum number of inodes in filesystem"
109 depends TARGET_ROOTFS_EXT2FS
112 Allows you to change the maximum number of inodes in the filesystem
116 menu "Global build settings"
119 bool "Select all packages by default"
122 comment "General build options"
126 prompt "Disable ipkg/opkg installation on the target"
129 This removes all ipkg data from the target directory before building the root fs
133 prompt "Enable large file (files > 2 GB) support"
136 Enable large file (files > 2 GB) support.
138 config SHADOW_PASSWORDS
140 prompt "Enable shadow password support"
143 Enable shadow password support.
146 prompt "Binary stripping method"
147 default USE_STRIP if EXTERNAL_TOOLCHAIN
148 default USE_STRIP if USE_GLIBC || USE_EGLIBC
151 Select the binary stripping method you wish to use.
156 This will install unstripped binaries (useful for native compiling/debugging)
161 This will install binaries stripped using strip from binutils
170 This will install binaries stripped using sstrip
173 config BUILD_PATENTED
175 bool "Compile with support for patented functionality"
177 When this option is disabled, software which provides patented functionality will not be built.
178 In case software provides optional support for patented functionality,
179 this optional support will get disabled for this package.
183 prompt "Strip arguments"
185 default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
186 default "--strip-all"
188 Specifies arguments passed to the strip command when stripping binaries
191 bool "Strip unnecessary functions from libraries"
193 Reduces libraries to only those functions that are necessary for using all
194 selected packages (including those selected as <M>)
195 Note that this will make the system libraries incompatible with most of the packages
196 that are not selected during the build process
198 config STRIP_KERNEL_EXPORTS
200 bool "Strip unnecessary exports from the kernel image"
202 Reduces kernel size by stripping unused kernel exports from the kernel image
203 Note that this might make the kernel incompatible with any kernel modules that
204 were not selected at the time the kernel image was created
206 comment "Package build options"
210 prompt "Compile packages with debugging info"
213 Adds -g3 to the CFLAGS
217 prompt "Enable IPv6 support in packages"
220 Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
222 comment "Kernel build options"
224 config KERNEL_KALLSYMS
225 bool "Compile the kernel with symbol table information"
228 This will give you more information in stack traces from kernel oopses
230 config KERNEL_PROFILING
231 bool "Compile the kernel with profiling enabled"
234 Enable the extended profiling support mechanisms used by profilers such
237 config KERNEL_DEBUG_FS
238 bool "Compile the kernel with Debug Filesystem enabled"
242 debugfs is a virtual file system that kernel developers use to put
243 debugging files into. Enable this option to be able to read and
244 write to these files.
249 bool "Advanced configuration options (for developers)"
254 prompt "Show broken platforms / packages" if DEVEL
257 config DOWNLOAD_FOLDER
259 prompt "Download folder" if DEVEL
264 prompt "Local mirror for source packages" if DEVEL
268 prompt "Automatic rebuild of packages" if DEVEL
271 Automatically rebuild packages when their files change
275 prompt "Build suffix to append to the BUILD_DIR variable" if DEVEL
278 Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
280 config TARGET_ROOTFS_DIR
282 prompt "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
285 Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
286 Use this option to re-define the location of the target root file system directory.
290 prompt "Use ccache" if DEVEL
293 Compiler cache; see http://ccache.samba.org/
295 config EXTERNAL_KERNEL_TREE
297 prompt "Use external kernel tree" if DEVEL
300 config KERNEL_GIT_CLONE_URI
302 prompt "Enter git repository to clone" if DEVEL
305 Enter the full git repository path i.e.:
306 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
307 This will create a git clone of the kernel in your build
310 config KERNEL_GIT_LOCAL_REPOSITORY
312 prompt "Enter path to local reference repository" if DEVEL
315 Enter a full pathname to a local reference git repository.
316 In this instance, the --refererence option of git clone will
317 be used thus creating a quick local clone of your repo.
320 menuconfig TARGET_OPTIONS
321 bool "Target Options" if DEVEL
323 config TARGET_OPTIMIZATION
325 prompt "Target Optimizations" if TARGET_OPTIONS
326 default DEFAULT_TARGET_OPTIMIZATION
328 Optimizations to use when building for the target host.
332 prompt "Use software floating point by default" if TARGET_OPTIONS
334 depends on (arm || armeb || powerpc || mipsel || mips) && !HAS_FPU
336 If your target CPU does not have a Floating Point Unit (FPU) or a
337 kernel FPU emulator, but you still wish to support floating point
338 functions, then everything will need to be compiled with soft floating
339 point support (-msoft-float).
341 Most people will answer N.
344 source "toolchain/Config.in"
346 source "target/imagebuilder/Config.in"
347 source "target/sdk/Config.in"
348 source "target/toolchain/Config.in"
350 source "tmp/.config-package.in"