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
166 This will install binaries stripped using sstrip
171 bool "Strip unnecessary functions from libraries"
173 Reduces libraries to only those functions that are necessary for using all
174 selected packages (including those selected as <M>)
175 Note that this will make the system libraries incompatible with most of the packages
176 that are not selected during the build process
178 config STRIP_KERNEL_EXPORTS
180 bool "Strip unnecessary exports from the kernel image"
182 Reduces kernel size by stripping unused kernel exports from the kernel image
183 Note that this might make the kernel incompatible with any kernel modules that
184 were not selected at the time the kernel image was created
186 comment "Package build options"
190 prompt "Compile packages with debugging info"
193 Disables stripping and adds -g3 to the CFLAGS
196 bool "Install debugging binaries into a staging directory"
199 This will install all compiled package binaries into build_dir/target-*/debug-*/,
200 useful for cross-debugging via gdb/gdbserver
204 prompt "Enable IPv6 support in packages"
207 Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
209 comment "Kernel build options"
211 config KERNEL_KALLSYMS
212 bool "Compile the kernel with symbol table information"
215 This will give you more information in stack traces from kernel oopses
217 config KERNEL_PROFILING
218 bool "Compile the kernel with profiling enabled"
221 Enable the extended profiling support mechanisms used by profilers such
224 config KERNEL_DEBUG_FS
225 bool "Compile the kernel with Debug Filesystem enabled"
229 debugfs is a virtual file system that kernel developers use to put
230 debugging files into. Enable this option to be able to read and
231 write to these files.
236 bool "Advanced configuration options (for developers)"
241 prompt "Show broken platforms / packages" if DEVEL
244 config DOWNLOAD_FOLDER
246 prompt "Download folder" if DEVEL
251 prompt "Local mirror for source packages" if DEVEL
255 prompt "Automatic rebuild of packages" if DEVEL
258 Automatically rebuild packages when their files change
262 prompt "Build suffix to append to the BUILD_DIR variable" if DEVEL
265 Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
267 config TARGET_ROOTFS_DIR
269 prompt "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
272 Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
273 Use this option to re-define the location of the target root file system directory.
277 prompt "Use ccache" if DEVEL
280 Compiler cache; see http://ccache.samba.org/
282 config EXTERNAL_KERNEL_TREE
284 prompt "Use external kernel tree" if DEVEL
287 config KERNEL_GIT_CLONE_URI
289 prompt "Enter git repository to clone" if DEVEL
292 Enter the full git repository path i.e.:
293 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
294 This will create a git clone of the kernel in your build
297 config KERNEL_GIT_LOCAL_REPOSITORY
299 prompt "Enter path to local reference repository" if DEVEL
302 Enter a full pathname to a local reference git repository.
303 In this instance, the --refererence option of git clone will
304 be used thus creating a quick local clone of your repo.
307 menuconfig TARGET_OPTIONS
308 bool "Target Options" if DEVEL
310 config TARGET_OPTIMIZATION
312 prompt "Target Optimizations" if TARGET_OPTIONS
313 default DEFAULT_TARGET_OPTIMIZATION
315 Optimizations to use when building for the target host.
319 prompt "Use software floating point by default" if TARGET_OPTIONS
321 depends on (arm || armeb || powerpc || mipsel || mips) && !HAS_FPU
323 If your target CPU does not have a Floating Point Unit (FPU) or a
324 kernel FPU emulator, but you still wish to support floating point
325 functions, then everything will need to be compiled with soft floating
326 point support (-msoft-float).
328 Most people will answer N.
331 source "toolchain/Config.in"
333 source "target/imagebuilder/Config.in"
334 source "target/sdk/Config.in"
335 source "target/toolchain/Config.in"
337 source "tmp/.config-package.in"