1 # Copyright (C) 2006-2012 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 config HAVE_DOT_CONFIG
17 source "target/Config.in"
21 menuconfig TARGET_ROOTFS_INITRAMFS
23 default y if USES_INITRAMFS
25 Embed the rootfs into the kernel (initramfs)
29 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ar71xx
30 default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
31 default TARGET_INITRAMFS_COMPRESSION_NONE
32 depends on TARGET_ROOTFS_INITRAMFS
34 Select ramdisk compression.
36 config TARGET_INITRAMFS_COMPRESSION_NONE
39 config TARGET_INITRAMFS_COMPRESSION_GZIP
42 config TARGET_INITRAMFS_COMPRESSION_BZIP2
45 config TARGET_INITRAMFS_COMPRESSION_LZMA
48 config TARGET_INITRAMFS_COMPRESSION_LZO
51 config TARGET_INITRAMFS_COMPRESSION_LZ4
54 config TARGET_INITRAMFS_COMPRESSION_XZ
60 prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
63 Kernel uses specified external cpio as INITRAMFS_SOURCE
65 comment "Root filesystem archives"
67 config TARGET_ROOTFS_CPIOGZ
69 default y if USES_CPIOGZ
71 Build a compressed cpio archive of the the root filesystem
73 config TARGET_ROOTFS_TARGZ
75 default y if USES_TARGZ
77 Build a compressed tar archive of the the root filesystem
79 comment "Root filesystem images"
81 config TARGET_ROOTFS_EXT4FS
83 default y if USES_EXT4
85 Ext4 file system with some free space for uml images
87 config TARGET_ROOTFS_ISO
90 depends on TARGET_x86_generic
92 Create some bootable ISO image
94 config TARGET_ROOTFS_JFFS2
96 default y if USES_JFFS2
98 Build a jffs2 root filesystem
100 config TARGET_ROOTFS_JFFS2_NAND
101 bool "jffs2 for NAND"
102 default y if USES_JFFS2_NAND
103 depends on USES_JFFS2_NAND
105 Build a jffs2 root filesystem for NAND flash
107 config TARGET_ROOTFS_SQUASHFS
109 default y if USES_SQUASHFS
111 Build a squashfs-lzma root filesystem
113 menuconfig TARGET_ROOTFS_UBIFS
115 default y if USES_UBIFS
116 depends on USES_UBIFS
118 Build a ubifs root filesystem
122 default TARGET_UBIFS_COMPRESSION_NONE
123 depends on TARGET_ROOTFS_UBIFS
125 Select compression type
127 config TARGET_UBIFS_COMPRESSION_NONE
130 config TARGET_UBIFS_COMPRESSION_LZO
133 config TARGET_UBIFS_COMPRESSION_ZLIB
137 config TARGET_UBIFS_FREE_SPACE_FIXUP
138 bool "free space fixup" if TARGET_ROOTFS_UBIFS
141 The file-system free space has to be fixed up on first mount
143 config TARGET_UBIFS_JOURNAL_SIZE
145 prompt "journal size" if TARGET_ROOTFS_UBIFS
148 config TARGET_UBIFS_SQUASH_UIDS
149 bool "squash uids" if TARGET_ROOTFS_UBIFS
152 Squash owners making all files owned by root
154 comment "Image Options"
156 source "target/linux/*/image/Config.in"
158 config TARGET_ROOTFS_PARTSIZE
159 int "Root filesystem partition size (in MB)"
160 depends on X86_GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
163 Allows you to change the root filesystem partition size
165 config TARGET_ROOTFS_MAXINODE
166 int "Maximum number of inodes in root filesystem"
167 depends on TARGET_ROOTFS_EXT4FS
170 Allows you to change the maximum number of inodes in the root filesystem
172 config TARGET_ROOTFS_RESERVED_PCT
173 int "Percentage of reserved blocks in root filesystem"
174 depends on TARGET_ROOTFS_EXT4FS
177 Allows you to change the percentage of reserved blocks in the root filesystem
179 menuconfig TARGET_ROOTFS_INCLUDE_KERNEL
180 bool "Include kernel in root filesystem"
181 depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
182 default n if USES_UBIFS
184 Include the kernel image in the rootfs. Typically the image is placed
187 config TARGET_ROOTFS_INCLUDE_UIMAGE
188 bool "include uImage" if TARGET_ROOTFS_INCLUDE_KERNEL
191 This option might not apply to all targets. Make sure
192 to check target/linux/<your_target>/image/Makefile to
193 see if this option will have any effect.
195 config TARGET_ROOTFS_INCLUDE_ZIMAGE
196 bool "include zImage" if TARGET_ROOTFS_INCLUDE_KERNEL
199 This option might not apply to all targets. Make sure
200 to check target/linux/<your_target>/image/Makefile to
201 see if this option will have any effect.
203 config TARGET_ROOTFS_INCLUDE_FIT
204 bool "include FIT" if TARGET_ROOTFS_INCLUDE_KERNEL
207 This option might not apply to all targets. Make sure
208 to check target/linux/<your_target>/image/Makefile to
209 see if this option will have any effect.
211 config TARGET_ROOTFS_INCLUDE_DTB
212 bool "Include DTB in root filesystem"
213 depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
214 default n if USES_UBIFS
216 Include the device tree blob file(s) in the rootfs. Typically the DTBs
217 are placed below /boot.
221 menu "Global build settings"
224 bool "Select all packages by default"
227 comment "General build options"
229 config DISPLAY_SUPPORT
230 bool "Show packages that require graphics support (local or remote)"
233 config BUILD_PATENTED
235 bool "Compile with support for patented functionality"
237 When this option is disabled, software which provides patented functionality will not be built.
238 In case software provides optional support for patented functionality,
239 this optional support will get disabled for this package.
243 bool "Compile with full language support"
245 When this option is enabled, packages are built with the full versions of iconv and GNU gettext
246 instead of the default OpenWrt stubs. If uClibc is used, it is also built with locale support.
248 config BUILD_STATIC_TOOLS
250 bool "Attempt to link host utilities statically"
252 Linking host utilities like sed or firmware-utils statically increases the portability of the
253 generated ImageBuilder and SDK tarballs, however it may fail on some Linux distributions.
255 config SHADOW_PASSWORDS
257 prompt "Enable shadow password support"
260 Enable shadow password support.
264 prompt "Remove ipkg/opkg status data files in final images"
267 This removes all ipkg/opkg status data files from the target directory before building the root fs
269 config COLLECT_KERNEL_DEBUG
271 prompt "Collect kernel debug information"
272 select KERNEL_DEBUG_INFO
275 This collects debugging symbols from the kernel and all compiled modules.
276 Useful for release builds, so that kernel issues can be debugged offline later.
278 comment "Kernel build options"
280 source "Config-kernel.in"
282 comment "Package build options"
286 prompt "Compile packages with debugging info"
289 Adds -g3 to the CFLAGS
293 prompt "Enable IPv6 support in packages"
296 Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
298 config PKG_BUILD_PARALLEL
300 prompt "Compile certain packages parallelized"
303 This adds a -jX option to certain packages that are known to
304 behave well for parallel build. By default the package make processes
305 use the main jobserver, in which case this option only takes effect
306 when you add -jX to the make command.
308 If you are unsure, select N.
310 config PKG_BUILD_USE_JOBSERVER
312 prompt "Use top-level make jobserver for packages"
313 depends on PKG_BUILD_PARALLEL
316 This passes the main make process jobserver fds to package builds,
317 enabling full parallelization across different packages
319 Note that disabling this may overcommit CPU resources depending on the
320 -j level of the main make process, the number of package
321 submake jobs selected below and the number of actual CPUs present.
322 Example: If the main make is passed a -j4 and the submake -j
323 is also set to 4, we may end up with 16 parallel make processes
327 config PKG_BUILD_JOBS
329 prompt "Number of package submake jobs (2-512)"
332 depends on PKG_BUILD_PARALLEL && !PKG_BUILD_USE_JOBSERVER
334 The number of jobs (-jX) to pass to packages submake.
336 config PKG_DEFAULT_PARALLEL
338 prompt "Parallelize the default package build rule (May break build)"
339 depends on PKG_BUILD_PARALLEL
343 Always set the default package build rules to parallel build.
345 WARNING: This may break build or kill your cat, as it builds
346 packages with multiple jobs that are probably not tested in
347 a parallel build environment.
349 Only say Y, if you don't mind fixing broken packages.
350 Before reporting build bugs, set this to N and re-run the build.
352 comment "Stripping options"
355 prompt "Binary stripping method"
356 default USE_STRIP if EXTERNAL_TOOLCHAIN
357 default USE_STRIP if USE_GLIBC || USE_EGLIBC || USE_MUSL
360 Select the binary stripping method you wish to use.
365 This will install unstripped binaries (useful for native compiling/debugging)
370 This will install binaries stripped using strip from binutils
376 depends on !USE_GLIBC
377 depends on !USE_EGLIBC
379 This will install binaries stripped using sstrip
384 prompt "Strip arguments"
386 default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
387 default "--strip-all"
389 Specifies arguments passed to the strip command when stripping binaries
391 config STRIP_KERNEL_EXPORTS
392 bool "Strip unnecessary exports from the kernel image"
394 Reduces kernel size by stripping unused kernel exports from the kernel image
395 Note that this might make the kernel incompatible with any kernel modules that
396 were not selected at the time the kernel image was created
399 bool "Strip unnecessary functions from libraries"
401 Reduces libraries to only those functions that are necessary for using all
402 selected packages (including those selected as <M>)
403 Note that this will make the system libraries incompatible with most of the packages
404 that are not selected during the build process
407 prompt "Preferred standard C++ library"
408 default USE_LIBSTDCXX if USE_EGLIBC
411 Select the preferred standard C++ library for all packages that support this.
423 bool "Advanced configuration options (for developers)"
427 bool "Show broken platforms / packages" if DEVEL
430 config DOWNLOAD_FOLDER
431 string "Download folder" if DEVEL
435 string "Local mirror for source packages" if DEVEL
439 bool "Automatic rebuild of packages" if DEVEL
442 Automatically rebuild packages when their files change
445 string "Build suffix to append to the BUILD_DIR variable" if DEVEL
448 Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
450 config TARGET_ROOTFS_DIR
451 string "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
454 Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
455 Use this option to re-define the location of the target root file system directory.
458 bool "Use ccache" if DEVEL
461 Compiler cache; see http://ccache.samba.org/
463 config EXTERNAL_KERNEL_TREE
464 string "Use external kernel tree" if DEVEL
467 config KERNEL_GIT_CLONE_URI
468 string "Enter git repository to clone" if DEVEL
471 Enter the full git repository path i.e.:
472 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
473 This will create a git clone of the kernel in your build
476 config KERNEL_GIT_LOCAL_REPOSITORY
477 string "Enter path to local reference repository" if DEVEL
480 Enter a full pathname to a local reference git repository.
481 In this instance, the --refererence option of git clone will
482 be used thus creating a quick local clone of your repo.
485 bool "Enable log files during build process" if DEVEL
487 If enabled log files will be written to the ./log directory
489 config SRC_TREE_OVERRIDE
490 bool "Enable package source tree override" if DEVEL
492 If enabled, you can force a package to use a git tree as source
493 code instead of the normal tarball. Create a symlink 'git-src'
494 in the package directory, pointing to the .git tree that you want
495 to pull the source code from
497 config EXTRA_OPTIMIZATION
498 string "Additional compiler options" if DEVEL
499 default "-fno-caller-saves"
501 Extra Target-independent optimizations to use when building for the target.
503 menuconfig TARGET_OPTIONS
504 bool "Target Options" if DEVEL
506 config TARGET_OPTIMIZATION
507 string "Target Optimizations" if TARGET_OPTIONS
508 default DEFAULT_TARGET_OPTIMIZATION
510 Optimizations to use when building for the target host.
513 bool "Use software floating point by default" if TARGET_OPTIONS
515 depends on (arm || armeb || powerpc || mipsel || mips || mips64el || mips64) && !HAS_FPU
517 If your target CPU does not have a Floating Point Unit (FPU) or a
518 kernel FPU emulator, but you still wish to support floating point
519 functions, then everything will need to be compiled with soft floating
520 point support (-msoft-float).
522 Most people will answer N.
525 bool "Build packages with MIPS16 instructions" if TARGET_OPTIONS
526 depends on HAS_MIPS16
527 depends on !GCC_VERSION_4_6
530 If your target CPU does support the MIPS16 instruction set
531 and you want to use it for packages, enable this option.
532 MIPS16 produces smaller binaries thus reducing pressure on
535 Most people will answer N.
537 source "toolchain/Config.in"
539 source "target/imagebuilder/Config.in"
540 source "target/sdk/Config.in"
541 source "target/toolchain/Config.in"
543 source "tmp/.config-package.in"