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)
159 This will install binaries stripped using strip from binutils
168 This will install binaries stripped using sstrip
173 bool "Strip unnecessary functions from libraries"
175 Reduces libraries to only those functions that are necessary for using all
176 selected packages (including those selected as <M>)
177 Note that this will make the system libraries incompatible with most of the packages
178 that are not selected during the build process
180 config STRIP_KERNEL_EXPORTS
182 bool "Strip unnecessary exports from the kernel image"
184 Reduces kernel size by stripping unused kernel exports from the kernel image
185 Note that this might make the kernel incompatible with any kernel modules that
186 were not selected at the time the kernel image was created
188 comment "Package build options"
192 prompt "Compile packages with debugging info"
195 Disables stripping and adds -g3 to the CFLAGS
198 bool "Install debugging binaries into a staging directory"
201 This will install all compiled package binaries into build_dir/target-*/debug-*/,
202 useful for cross-debugging via gdb/gdbserver
206 prompt "Enable IPv6 support in packages"
209 Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
211 comment "Kernel build options"
213 config KERNEL_KALLSYMS
214 bool "Compile the kernel with symbol table information"
217 This will give you more information in stack traces from kernel oopses
219 config KERNEL_PROFILING
220 bool "Compile the kernel with profiling enabled"
223 Enable the extended profiling support mechanisms used by profilers such
226 config KERNEL_DEBUG_FS
227 bool "Compile the kernel with Debug Filesystem enabled"
231 debugfs is a virtual file system that kernel developers use to put
232 debugging files into. Enable this option to be able to read and
233 write to these files.
238 bool "Advanced configuration options (for developers)"
243 prompt "Show broken platforms / packages" if DEVEL
246 config DOWNLOAD_FOLDER
248 prompt "Download folder" if DEVEL
253 prompt "Local mirror for source packages" if DEVEL
257 prompt "Automatic rebuild of packages" if DEVEL
260 Automatically rebuild packages when their files change
264 prompt "Build suffix to append to the BUILD_DIR variable" if DEVEL
267 Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
269 config TARGET_ROOTFS_DIR
271 prompt "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
274 Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
275 Use this option to re-define the location of the target root file system directory.
279 prompt "Use ccache" if DEVEL
282 Compiler cache; see http://ccache.samba.org/
284 config EXTERNAL_KERNEL_TREE
286 prompt "Use external kernel tree" if DEVEL
289 config KERNEL_GIT_CLONE_URI
291 prompt "Enter git repository to clone" if DEVEL
294 Enter the full git repository path i.e.:
295 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
296 This will create a git clone of the kernel in your build
299 config KERNEL_GIT_LOCAL_REPOSITORY
301 prompt "Enter path to local reference repository" if DEVEL
304 Enter a full pathname to a local reference git repository.
305 In this instance, the --refererence option of git clone will
306 be used thus creating a quick local clone of your repo.
309 menuconfig TARGET_OPTIONS
310 bool "Target Options" if DEVEL
312 config TARGET_OPTIMIZATION
314 prompt "Target Optimizations" if TARGET_OPTIONS
315 default DEFAULT_TARGET_OPTIMIZATION
317 Optimizations to use when building for the target host.
321 prompt "Use software floating point by default" if TARGET_OPTIONS
323 depends on (arm || armeb || powerpc || mipsel || mips) && !HAS_FPU
325 If your target CPU does not have a Floating Point Unit (FPU) or a
326 kernel FPU emulator, but you still wish to support floating point
327 functions, then everything will need to be compiled with soft floating
328 point support (-msoft-float).
330 Most people will answer N.
333 source "toolchain/Config.in"
335 source "target/imagebuilder/Config.in"
336 source "target/sdk/Config.in"
337 source "target/toolchain/Config.in"
339 source "tmp/.config-package.in"