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
30 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ar71xx
31 default TARGET_INITRAMFS_COMPRESSION_NONE
33 Select ramdisk compression.
35 config TARGET_INITRAMFS_COMPRESSION_NONE
38 config TARGET_INITRAMFS_COMPRESSION_GZIP
41 config TARGET_INITRAMFS_COMPRESSION_BZIP2
44 config TARGET_INITRAMFS_COMPRESSION_LZMA
47 config TARGET_INITRAMFS_COMPRESSION_LZO
51 config TARGET_ROOTFS_JFFS2
53 default y if USES_JFFS2
54 depends !TARGET_ROOTFS_INITRAMFS
56 Build a jffs2 root filesystem
58 config TARGET_ROOTFS_SQUASHFS
60 default y if USES_SQUASHFS
61 depends !TARGET_ROOTFS_INITRAMFS
63 Build a squashfs-lzma root filesystem
65 config TARGET_ROOTFS_TGZ
68 depends !TARGET_ROOTFS_INITRAMFS
70 Build a compressed tar archive of the the root filesystem
72 config TARGET_ROOTFS_CPIOGZ
74 default y if USES_CPIOGZ
75 depends !TARGET_ROOTFS_INITRAMFS
77 Build a compressed cpio archive of the the root filesystem
79 config TARGET_ROOTFS_EXT2FS
81 default y if USES_EXT2
82 depends !TARGET_ROOTFS_INITRAMFS
84 Ext2 file system with some free space for uml images
86 config TARGET_ROOTFS_ISO
89 depends TARGET_ROOTFS_INITRAMFS && TARGET_x86
91 Create some bootable ISO image
93 comment "Image Options"
95 source "target/linux/*/image/Config.in"
97 config TARGET_ROOTFS_FSPART
98 int "Filesystem part size (in MB)"
99 depends X86_GRUB_IMAGES || TARGET_ROOTFS_EXT2FS || TARGET_rb532 || TARGET_olpc
102 Allows you to change the filesystem partition size
104 config TARGET_ROOTFS_MAXINODE
105 int "Maximum number of inodes in filesystem"
106 depends TARGET_ROOTFS_EXT2FS
109 Allows you to change the maximum number of inodes in the filesystem
113 menu "Global build settings"
116 bool "Select all packages by default"
119 comment "General build options"
123 prompt "Disable ipkg/opkg installation on the target"
126 This removes all ipkg data from the target directory before building the root fs
130 prompt "Enable large file (files > 2 GB) support"
133 Enable large file (files > 2 GB) support.
135 config SHADOW_PASSWORDS
137 prompt "Enable shadow password support"
140 Enable shadow password support.
143 prompt "Binary stripping method"
144 default USE_STRIP if EXTERNAL_TOOLCHAIN
145 default USE_STRIP if USE_GLIBC || USE_EGLIBC
148 Select the binary stripping method you wish to use.
153 This will install unstripped binaries (useful for native compiling/debugging)
158 This will install binaries stripped using strip from binutils
167 This will install binaries stripped using sstrip
172 bool "Strip unnecessary functions from libraries"
174 Reduces libraries to only those functions that are necessary for using all
175 selected packages (including those selected as <M>)
176 Note that this will make the system libraries incompatible with most of the packages
177 that are not selected during the build process
179 config STRIP_KERNEL_EXPORTS
181 bool "Strip unnecessary exports from the kernel image"
183 Reduces kernel size by stripping unused kernel exports from the kernel image
184 Note that this might make the kernel incompatible with any kernel modules that
185 were not selected at the time the kernel image was created
187 comment "Package build options"
191 prompt "Compile packages with debugging info"
194 Adds -g3 to the CFLAGS
197 bool "Install debugging binaries into a staging directory"
200 This will install all compiled package binaries into build_dir/target-*/debug-*/,
201 useful for cross-debugging via gdb/gdbserver
205 prompt "Enable IPv6 support in packages"
208 Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
210 comment "Kernel build options"
212 config KERNEL_KALLSYMS
213 bool "Compile the kernel with symbol table information"
216 This will give you more information in stack traces from kernel oopses
218 config KERNEL_PROFILING
219 bool "Compile the kernel with profiling enabled"
222 Enable the extended profiling support mechanisms used by profilers such
225 config KERNEL_DEBUG_FS
226 bool "Compile the kernel with Debug Filesystem enabled"
230 debugfs is a virtual file system that kernel developers use to put
231 debugging files into. Enable this option to be able to read and
232 write to these files.
237 bool "Advanced configuration options (for developers)"
242 prompt "Show broken platforms / packages" if DEVEL
245 config DOWNLOAD_FOLDER
247 prompt "Download folder" if DEVEL
252 prompt "Local mirror for source packages" if DEVEL
256 prompt "Automatic rebuild of packages" if DEVEL
259 Automatically rebuild packages when their files change
263 prompt "Build suffix to append to the BUILD_DIR variable" if DEVEL
266 Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
268 config TARGET_ROOTFS_DIR
270 prompt "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
273 Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
274 Use this option to re-define the location of the target root file system directory.
278 prompt "Use ccache" if DEVEL
281 Compiler cache; see http://ccache.samba.org/
283 config EXTERNAL_KERNEL_TREE
285 prompt "Use external kernel tree" if DEVEL
288 config KERNEL_GIT_CLONE_URI
290 prompt "Enter git repository to clone" if DEVEL
293 Enter the full git repository path i.e.:
294 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
295 This will create a git clone of the kernel in your build
298 config KERNEL_GIT_LOCAL_REPOSITORY
300 prompt "Enter path to local reference repository" if DEVEL
303 Enter a full pathname to a local reference git repository.
304 In this instance, the --refererence option of git clone will
305 be used thus creating a quick local clone of your repo.
308 menuconfig TARGET_OPTIONS
309 bool "Target Options" if DEVEL
311 config TARGET_OPTIMIZATION
313 prompt "Target Optimizations" if TARGET_OPTIONS
314 default DEFAULT_TARGET_OPTIMIZATION
316 Optimizations to use when building for the target host.
320 prompt "Use software floating point by default" if TARGET_OPTIONS
322 depends on (arm || armeb || powerpc || mipsel || mips) && !HAS_FPU
324 If your target CPU does not have a Floating Point Unit (FPU) or a
325 kernel FPU emulator, but you still wish to support floating point
326 functions, then everything will need to be compiled with soft floating
327 point support (-msoft-float).
329 Most people will answer N.
332 source "toolchain/Config.in"
334 source "target/imagebuilder/Config.in"
335 source "target/sdk/Config.in"
336 source "target/toolchain/Config.in"
338 source "tmp/.config-package.in"