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
48 config TARGET_ROOTFS_JFFS2
50 default y if USES_JFFS2
51 depends !TARGET_ROOTFS_INITRAMFS
53 Build a jffs2 root filesystem
55 config TARGET_ROOTFS_SQUASHFS
57 default y if USES_SQUASHFS
58 depends !TARGET_ROOTFS_INITRAMFS
60 Build a squashfs-lzma root filesystem
62 config TARGET_ROOTFS_TGZ
65 depends !TARGET_ROOTFS_INITRAMFS
67 Build a compressed tar archive of the the root filesystem
69 config TARGET_ROOTFS_CPIOGZ
71 default y if USES_CPIOGZ
72 depends !TARGET_ROOTFS_INITRAMFS
74 Build a compressed cpio archive of the the root filesystem
76 config TARGET_ROOTFS_EXT2FS
78 default y if USES_EXT2
79 depends !TARGET_ROOTFS_INITRAMFS
81 Ext2 file system with some free space for uml images
83 config TARGET_ROOTFS_ISO
86 depends TARGET_ROOTFS_INITRAMFS && TARGET_x86
88 Create some bootable ISO image
90 comment "Image Options"
92 source "target/linux/*/image/Config.in"
94 config TARGET_ROOTFS_FSPART
95 int "Filesystem part size (in MB)"
96 depends X86_GRUB_IMAGES || TARGET_ROOTFS_EXT2FS || TARGET_rb532 || TARGET_olpc
99 Allows you to change the filesystem partition size
101 config TARGET_ROOTFS_MAXINODE
102 int "Maximum number of inodes in filesystem"
103 depends TARGET_ROOTFS_EXT2FS
106 Allows you to change the maximum number of inodes in the filesystem
110 menu "Global build settings"
113 bool "Select all packages by default"
116 comment "General build options"
120 prompt "Disable ipkg/opkg installation on the target"
123 This removes all ipkg data from the target directory before building the root fs
127 prompt "Enable large file (files > 2 GB) support"
130 Enable large file (files > 2 GB) support.
132 config SHADOW_PASSWORDS
134 prompt "Enable shadow password support"
137 Enable shadow password support.
140 prompt "Binary stripping method"
141 default USE_STRIP if EXTERNAL_TOOLCHAIN
142 default USE_STRIP if USE_GLIBC || USE_EGLIBC
145 Select the binary stripping method you wish to use.
150 This will install unstripped binaries (useful for native compiling/debugging)
155 This will install binaries stripped using strip from binutils
163 This will install binaries stripped using sstrip
168 bool "Strip unnecessary functions from libraries"
170 Reduces libraries to only those functions that are necessary for using all
171 selected packages (including those selected as <M>)
172 Note that this will make the system libraries incompatible with most of the packages
173 that are not selected during the build process
175 config STRIP_KERNEL_EXPORTS
177 bool "Strip unnecessary exports from the kernel image"
179 Reduces kernel size by stripping unused kernel exports from the kernel image
180 Note that this might make the kernel incompatible with any kernel modules that
181 were not selected at the time the kernel image was created
183 comment "Package build options"
187 prompt "Compile packages with debugging info"
190 Disables stripping and adds -g3 to the CFLAGS
193 bool "Install debugging binaries into a staging directory"
196 This will install all compiled package binaries into build_dir/target-*/debug-*/,
197 useful for cross-debugging via gdb/gdbserver
201 prompt "Enable IPv6 support in packages"
204 Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
206 comment "Kernel build options"
208 config KERNEL_KALLSYMS
209 bool "Compile the kernel with symbol table information"
212 This will give you more information in stack traces from kernel oopses
214 config KERNEL_PROFILING
215 bool "Compile the kernel with profiling enabled"
218 Enable the extended profiling support mechanisms used by profilers such
221 config KERNEL_DEBUG_FS
222 bool "Compile the kernel with Debug Filesystem enabled"
226 debugfs is a virtual file system that kernel developers use to put
227 debugging files into. Enable this option to be able to read and
228 write to these files.
233 bool "Advanced configuration options (for developers)"
238 prompt "Show broken platforms / packages" if DEVEL
241 config DOWNLOAD_FOLDER
243 prompt "Download folder" if DEVEL
248 prompt "Local mirror for source packages" if DEVEL
252 prompt "Automatic rebuild of packages" if DEVEL
255 Automatically rebuild packages when their files change
259 prompt "Build suffix to append to the BUILD_DIR variable" if DEVEL
262 Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
264 config TARGET_ROOTFS_DIR
266 prompt "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
269 Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
270 Use this option to re-define the location of the target root file system directory.
274 prompt "Use ccache" if DEVEL
277 Compiler cache; see http://ccache.samba.org/
279 config EXTERNAL_KERNEL_TREE
281 prompt "Use external kernel tree" if DEVEL
284 config KERNEL_GIT_CLONE_URI
286 prompt "Enter git repository to clone" if DEVEL
289 Enter the full git repository path i.e.:
290 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
291 This will create a git clone of the kernel in your build
294 config KERNEL_GIT_LOCAL_REPOSITORY
296 prompt "Enter path to local reference repository" if DEVEL
299 Enter a full pathname to a local reference git repository.
300 In this instance, the --refererence option of git clone will
301 be used thus creating a quick local clone of your repo.
304 menuconfig TARGET_OPTIONS
305 bool "Target Options" if DEVEL
307 config TARGET_OPTIMIZATION
309 prompt "Target Optimizations" if TARGET_OPTIONS
310 default DEFAULT_TARGET_OPTIMIZATION
312 Optimizations to use when building for the target host.
316 prompt "Use software floating point by default" if TARGET_OPTIONS
318 depends on (arm || armeb || powerpc || mipsel || mips) && !HAS_FPU
320 If your target CPU does not have a Floating Point Unit (FPU) or a
321 kernel FPU emulator, but you still wish to support floating point
322 functions, then everything will need to be compiled with soft floating
323 point support (-msoft-float).
325 Most people will answer N.
328 source "toolchain/Config.in"
330 source "target/imagebuilder/Config.in"
331 source "target/sdk/Config.in"
333 source "tmp/.config-package.in"