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
27 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ar71xx
28 default TARGET_INITRAMFS_COMPRESSION_NONE
30 Select ramdisk compression.
32 config TARGET_INITRAMFS_COMPRESSION_NONE
35 config TARGET_INITRAMFS_COMPRESSION_GZIP
38 config TARGET_INITRAMFS_COMPRESSION_BZIP2
41 config TARGET_INITRAMFS_COMPRESSION_LZMA
44 config TARGET_INITRAMFS_COMPRESSION_LZO
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 config TARGET_ROOTFS_UBIFS
92 default y if USES_UBIFS
93 depends !TARGET_ROOTFS_INITRAMFS && USES_UBIFS
95 Build a ubifs root filesystem
97 comment "Image Options"
99 source "target/linux/*/image/Config.in"
101 config TARGET_ROOTFS_FSPART
102 int "Filesystem part size (in MB)"
103 depends X86_GRUB_IMAGES || TARGET_ROOTFS_EXT2FS || TARGET_rb532 || TARGET_olpc
106 Allows you to change the filesystem partition size
108 config TARGET_ROOTFS_MAXINODE
109 int "Maximum number of inodes in filesystem"
110 depends TARGET_ROOTFS_EXT2FS
113 Allows you to change the maximum number of inodes in the filesystem
117 menu "Global build settings"
120 bool "Select all packages by default"
123 comment "General build options"
127 prompt "Disable ipkg/opkg installation on the target"
130 This removes all ipkg data from the target directory before building the root fs
134 prompt "Enable large file (files > 2 GB) support"
137 Enable large file (files > 2 GB) support.
139 config SHADOW_PASSWORDS
141 prompt "Enable shadow password support"
144 Enable shadow password support.
147 prompt "Binary stripping method"
148 default USE_STRIP if EXTERNAL_TOOLCHAIN
149 default USE_STRIP if USE_GLIBC || USE_EGLIBC
152 Select the binary stripping method you wish to use.
157 This will install unstripped binaries (useful for native compiling/debugging)
162 This will install binaries stripped using strip from binutils
171 This will install binaries stripped using sstrip
177 prompt "Strip arguments"
179 default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
180 default "--strip-all"
182 Specifies arguments passed to the strip command when stripping binaries
185 bool "Strip unnecessary functions from libraries"
187 Reduces libraries to only those functions that are necessary for using all
188 selected packages (including those selected as <M>)
189 Note that this will make the system libraries incompatible with most of the packages
190 that are not selected during the build process
192 config STRIP_KERNEL_EXPORTS
194 bool "Strip unnecessary exports from the kernel image"
196 Reduces kernel size by stripping unused kernel exports from the kernel image
197 Note that this might make the kernel incompatible with any kernel modules that
198 were not selected at the time the kernel image was created
200 comment "Package build options"
204 prompt "Compile packages with debugging info"
207 Adds -g3 to the CFLAGS
210 bool "Install debugging binaries into a staging directory"
213 This will install all compiled package binaries into build_dir/target-*/debug-*/,
214 useful for cross-debugging via gdb/gdbserver
218 prompt "Enable IPv6 support in packages"
221 Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
223 comment "Kernel build options"
225 config KERNEL_KALLSYMS
226 bool "Compile the kernel with symbol table information"
229 This will give you more information in stack traces from kernel oopses
231 config KERNEL_PROFILING
232 bool "Compile the kernel with profiling enabled"
235 Enable the extended profiling support mechanisms used by profilers such
238 config KERNEL_DEBUG_FS
239 bool "Compile the kernel with Debug Filesystem enabled"
243 debugfs is a virtual file system that kernel developers use to put
244 debugging files into. Enable this option to be able to read and
245 write to these files.
250 bool "Advanced configuration options (for developers)"
255 prompt "Show broken platforms / packages" if DEVEL
258 config DOWNLOAD_FOLDER
260 prompt "Download folder" if DEVEL
265 prompt "Local mirror for source packages" if DEVEL
269 prompt "Automatic rebuild of packages" if DEVEL
272 Automatically rebuild packages when their files change
276 prompt "Build suffix to append to the BUILD_DIR variable" if DEVEL
279 Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
281 config TARGET_ROOTFS_DIR
283 prompt "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
286 Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
287 Use this option to re-define the location of the target root file system directory.
291 prompt "Use ccache" if DEVEL
294 Compiler cache; see http://ccache.samba.org/
296 config EXTERNAL_KERNEL_TREE
298 prompt "Use external kernel tree" if DEVEL
301 config KERNEL_GIT_CLONE_URI
303 prompt "Enter git repository to clone" if DEVEL
306 Enter the full git repository path i.e.:
307 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
308 This will create a git clone of the kernel in your build
311 config KERNEL_GIT_LOCAL_REPOSITORY
313 prompt "Enter path to local reference repository" if DEVEL
316 Enter a full pathname to a local reference git repository.
317 In this instance, the --refererence option of git clone will
318 be used thus creating a quick local clone of your repo.
321 menuconfig TARGET_OPTIONS
322 bool "Target Options" if DEVEL
324 config TARGET_OPTIMIZATION
326 prompt "Target Optimizations" if TARGET_OPTIONS
327 default DEFAULT_TARGET_OPTIMIZATION
329 Optimizations to use when building for the target host.
333 prompt "Use software floating point by default" if TARGET_OPTIONS
335 depends on (arm || armeb || powerpc || mipsel || mips) && !HAS_FPU
337 If your target CPU does not have a Floating Point Unit (FPU) or a
338 kernel FPU emulator, but you still wish to support floating point
339 functions, then everything will need to be compiled with soft floating
340 point support (-msoft-float).
342 Most people will answer N.
345 source "toolchain/Config.in"
347 source "target/imagebuilder/Config.in"
348 source "target/sdk/Config.in"
349 source "target/toolchain/Config.in"
351 source "tmp/.config-package.in"