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
28 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ar71xx
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
66 depends !TARGET_ROOTFS_INITRAMFS
68 Build a compressed tar archive of the the root filesystem
70 config TARGET_ROOTFS_CPIOGZ
72 default y if USES_CPIOGZ
73 depends !TARGET_ROOTFS_INITRAMFS
75 Build a compressed cpio archive of the the root filesystem
77 config TARGET_ROOTFS_EXT2FS
79 default y if USES_EXT2
80 depends !TARGET_ROOTFS_INITRAMFS
82 Ext2 file system with some free space for uml images
84 config TARGET_ROOTFS_ISO
87 depends TARGET_ROOTFS_INITRAMFS && TARGET_x86
89 Create some bootable ISO image
91 comment "Image Options"
93 source "target/linux/*/image/Config.in"
95 config TARGET_ROOTFS_FSPART
96 int "Filesystem part size (in MB)"
97 depends X86_GRUB_IMAGES || TARGET_ROOTFS_EXT2FS || TARGET_rb532 || TARGET_olpc
100 Allows you to change the filesystem partition size
102 config TARGET_ROOTFS_MAXINODE
103 int "Maximum number of inodes in filesystem"
104 depends TARGET_ROOTFS_EXT2FS
107 Allows you to change the maximum number of inodes in the filesystem
111 menu "Global build settings"
114 bool "Select all packages by default"
117 comment "General build options"
121 prompt "Disable ipkg/opkg installation on the target"
124 This removes all ipkg data from the target directory before building the root fs
128 prompt "Enable large file (files > 2 GB) support"
131 Enable large file (files > 2 GB) support.
133 config SHADOW_PASSWORDS
135 prompt "Enable shadow password support"
138 Enable shadow password support.
141 prompt "Binary stripping method"
142 default USE_STRIP if EXTERNAL_TOOLCHAIN
143 default USE_STRIP if USE_GLIBC || USE_EGLIBC
146 Select the binary stripping method you wish to use.
151 This will install unstripped binaries (useful for native compiling/debugging)
156 This will install binaries stripped using strip from binutils
165 This will install binaries stripped using sstrip
170 bool "Strip unnecessary functions from libraries"
172 Reduces libraries to only those functions that are necessary for using all
173 selected packages (including those selected as <M>)
174 Note that this will make the system libraries incompatible with most of the packages
175 that are not selected during the build process
177 config STRIP_KERNEL_EXPORTS
179 bool "Strip unnecessary exports from the kernel image"
181 Reduces kernel size by stripping unused kernel exports from the kernel image
182 Note that this might make the kernel incompatible with any kernel modules that
183 were not selected at the time the kernel image was created
185 comment "Package build options"
189 prompt "Compile packages with debugging info"
192 Adds -g3 to the CFLAGS
195 bool "Install debugging binaries into a staging directory"
198 This will install all compiled package binaries into build_dir/target-*/debug-*/,
199 useful for cross-debugging via gdb/gdbserver
203 prompt "Enable IPv6 support in packages"
206 Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
208 comment "Kernel build options"
210 config KERNEL_KALLSYMS
211 bool "Compile the kernel with symbol table information"
214 This will give you more information in stack traces from kernel oopses
216 config KERNEL_PROFILING
217 bool "Compile the kernel with profiling enabled"
220 Enable the extended profiling support mechanisms used by profilers such
223 config KERNEL_DEBUG_FS
224 bool "Compile the kernel with Debug Filesystem enabled"
228 debugfs is a virtual file system that kernel developers use to put
229 debugging files into. Enable this option to be able to read and
230 write to these files.
235 bool "Advanced configuration options (for developers)"
240 prompt "Show broken platforms / packages" if DEVEL
243 config DOWNLOAD_FOLDER
245 prompt "Download folder" if DEVEL
250 prompt "Local mirror for source packages" if DEVEL
254 prompt "Automatic rebuild of packages" if DEVEL
257 Automatically rebuild packages when their files change
261 prompt "Build suffix to append to the BUILD_DIR variable" if DEVEL
264 Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
266 config TARGET_ROOTFS_DIR
268 prompt "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
271 Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
272 Use this option to re-define the location of the target root file system directory.
276 prompt "Use ccache" if DEVEL
279 Compiler cache; see http://ccache.samba.org/
281 config EXTERNAL_KERNEL_TREE
283 prompt "Use external kernel tree" if DEVEL
286 config KERNEL_GIT_CLONE_URI
288 prompt "Enter git repository to clone" if DEVEL
291 Enter the full git repository path i.e.:
292 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
293 This will create a git clone of the kernel in your build
296 config KERNEL_GIT_LOCAL_REPOSITORY
298 prompt "Enter path to local reference repository" if DEVEL
301 Enter a full pathname to a local reference git repository.
302 In this instance, the --refererence option of git clone will
303 be used thus creating a quick local clone of your repo.
306 menuconfig TARGET_OPTIONS
307 bool "Target Options" if DEVEL
309 config TARGET_OPTIMIZATION
311 prompt "Target Optimizations" if TARGET_OPTIONS
312 default DEFAULT_TARGET_OPTIMIZATION
314 Optimizations to use when building for the target host.
318 prompt "Use software floating point by default" if TARGET_OPTIONS
320 depends on (arm || armeb || powerpc || mipsel || mips) && !HAS_FPU
322 If your target CPU does not have a Floating Point Unit (FPU) or a
323 kernel FPU emulator, but you still wish to support floating point
324 functions, then everything will need to be compiled with soft floating
325 point support (-msoft-float).
327 Most people will answer N.
330 source "toolchain/Config.in"
332 source "target/imagebuilder/Config.in"
333 source "target/sdk/Config.in"
334 source "target/toolchain/Config.in"
336 source "tmp/.config-package.in"