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
211 prompt "Enable IPv6 support in packages"
214 Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
216 comment "Kernel build options"
218 config KERNEL_KALLSYMS
219 bool "Compile the kernel with symbol table information"
222 This will give you more information in stack traces from kernel oopses
224 config KERNEL_PROFILING
225 bool "Compile the kernel with profiling enabled"
228 Enable the extended profiling support mechanisms used by profilers such
231 config KERNEL_DEBUG_FS
232 bool "Compile the kernel with Debug Filesystem enabled"
236 debugfs is a virtual file system that kernel developers use to put
237 debugging files into. Enable this option to be able to read and
238 write to these files.
243 bool "Advanced configuration options (for developers)"
248 prompt "Show broken platforms / packages" if DEVEL
251 config DOWNLOAD_FOLDER
253 prompt "Download folder" if DEVEL
258 prompt "Local mirror for source packages" if DEVEL
262 prompt "Automatic rebuild of packages" if DEVEL
265 Automatically rebuild packages when their files change
269 prompt "Build suffix to append to the BUILD_DIR variable" if DEVEL
272 Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
274 config TARGET_ROOTFS_DIR
276 prompt "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
279 Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
280 Use this option to re-define the location of the target root file system directory.
284 prompt "Use ccache" if DEVEL
287 Compiler cache; see http://ccache.samba.org/
289 config EXTERNAL_KERNEL_TREE
291 prompt "Use external kernel tree" if DEVEL
294 config KERNEL_GIT_CLONE_URI
296 prompt "Enter git repository to clone" if DEVEL
299 Enter the full git repository path i.e.:
300 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
301 This will create a git clone of the kernel in your build
304 config KERNEL_GIT_LOCAL_REPOSITORY
306 prompt "Enter path to local reference repository" if DEVEL
309 Enter a full pathname to a local reference git repository.
310 In this instance, the --refererence option of git clone will
311 be used thus creating a quick local clone of your repo.
314 menuconfig TARGET_OPTIONS
315 bool "Target Options" if DEVEL
317 config TARGET_OPTIMIZATION
319 prompt "Target Optimizations" if TARGET_OPTIONS
320 default DEFAULT_TARGET_OPTIMIZATION
322 Optimizations to use when building for the target host.
326 prompt "Use software floating point by default" if TARGET_OPTIONS
328 depends on (arm || armeb || powerpc || mipsel || mips) && !HAS_FPU
330 If your target CPU does not have a Floating Point Unit (FPU) or a
331 kernel FPU emulator, but you still wish to support floating point
332 functions, then everything will need to be compiled with soft floating
333 point support (-msoft-float).
335 Most people will answer N.
338 source "toolchain/Config.in"
340 source "target/imagebuilder/Config.in"
341 source "target/sdk/Config.in"
342 source "target/toolchain/Config.in"
344 source "tmp/.config-package.in"