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_XZ
57 prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
60 Kernel uses specified external cpio as INITRAMFS_SOURCE
62 comment "Root filesystem archives"
64 config TARGET_ROOTFS_CPIOGZ
66 default y if USES_CPIOGZ
68 Build a compressed cpio archive of the the root filesystem
70 config TARGET_ROOTFS_TARGZ
72 default y if USES_TARGZ
74 Build a compressed tar archive of the the root filesystem
76 comment "Root filesystem images"
78 config TARGET_ROOTFS_EXT4FS
80 default y if USES_EXT4
82 Ext4 file system with some free space for uml images
84 config TARGET_ROOTFS_ISO
87 depends on TARGET_x86_generic
89 Create some bootable ISO image
91 config TARGET_ROOTFS_JFFS2
93 default y if USES_JFFS2
95 Build a jffs2 root filesystem
97 config TARGET_ROOTFS_JFFS2_NAND
99 default y if USES_JFFS2_NAND
100 depends on USES_JFFS2_NAND
102 Build a jffs2 root filesystem for NAND flash
104 config TARGET_ROOTFS_SQUASHFS
106 default y if USES_SQUASHFS
108 Build a squashfs-lzma root filesystem
110 menuconfig TARGET_ROOTFS_UBIFS
112 default y if USES_UBIFS
113 depends on USES_UBIFS
115 Build a ubifs root filesystem
119 default TARGET_UBIFS_COMPRESSION_NONE
120 depends on TARGET_ROOTFS_UBIFS
122 Select compression type
124 config TARGET_UBIFS_COMPRESSION_NONE
127 config TARGET_UBIFS_COMPRESSION_LZO
130 config TARGET_UBIFS_COMPRESSION_ZLIB
134 config TARGET_UBIFS_FREE_SPACE_FIXUP
135 bool "free space fixup" if TARGET_ROOTFS_UBIFS
138 The file-system free space has to be fixed up on first mount
140 config TARGET_UBIFS_JOURNAL_SIZE
142 prompt "journal size" if TARGET_ROOTFS_UBIFS
145 config TARGET_UBIFS_SQUASH_UIDS
146 bool "squash uids" if TARGET_ROOTFS_UBIFS
149 Squash owners making all files owned by root
151 comment "Image Options"
153 source "target/linux/*/image/Config.in"
155 config TARGET_ROOTFS_PARTSIZE
156 int "Root filesystem partition size (in MB)"
157 depends on X86_GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
160 Allows you to change the root filesystem partition size
162 config TARGET_ROOTFS_MAXINODE
163 int "Maximum number of inodes in root filesystem"
164 depends on TARGET_ROOTFS_EXT4FS
167 Allows you to change the maximum number of inodes in the root filesystem
169 config TARGET_ROOTFS_RESERVED_PCT
170 int "Percentage of reserved blocks in root filesystem"
171 depends on TARGET_ROOTFS_EXT4FS
174 Allows you to change the percentage of reserved blocks in the root filesystem
176 menuconfig TARGET_ROOTFS_INCLUDE_KERNEL
177 bool "Include kernel in root filesystem"
178 depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
179 default n if USES_UBIFS
181 Include the kernel image in the rootfs. Typically the image is placed
184 config TARGET_ROOTFS_INCLUDE_UIMAGE
185 bool "include uImage" if TARGET_ROOTFS_INCLUDE_KERNEL
188 This option might not apply to all targets. Make sure
189 to check target/linux/<your_target>/image/Makefile to
190 see if this option will have any effect.
192 config TARGET_ROOTFS_INCLUDE_ZIMAGE
193 bool "include zImage" if TARGET_ROOTFS_INCLUDE_KERNEL
196 This option might not apply to all targets. Make sure
197 to check target/linux/<your_target>/image/Makefile to
198 see if this option will have any effect.
200 config TARGET_ROOTFS_INCLUDE_FIT
201 bool "include FIT" if TARGET_ROOTFS_INCLUDE_KERNEL
204 This option might not apply to all targets. Make sure
205 to check target/linux/<your_target>/image/Makefile to
206 see if this option will have any effect.
208 config TARGET_ROOTFS_INCLUDE_DTB
209 bool "Include DTB in root filesystem"
210 depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
211 default n if USES_UBIFS
213 Include the device tree blob file(s) in the rootfs. Typically the DTBs
214 are placed below /boot.
218 menu "Global build settings"
221 bool "Select all packages by default"
224 comment "General build options"
226 config DISPLAY_SUPPORT
227 bool "Show packages that require graphics support (local or remote)"
230 config BUILD_PATENTED
232 bool "Compile with support for patented functionality"
234 When this option is disabled, software which provides patented functionality will not be built.
235 In case software provides optional support for patented functionality,
236 this optional support will get disabled for this package.
240 bool "Compile with full language support"
242 When this option is enabled, packages are built with the full versions of iconv and GNU gettext
243 instead of the default OpenWrt stubs. If uClibc is used, it is also built with locale support.
245 config BUILD_STATIC_TOOLS
247 bool "Attempt to link host utilities statically"
249 Linking host utilities like sed or firmware-utils statically increases the portability of the
250 generated ImageBuilder and SDK tarballs, however it may fail on some Linux distributions.
252 config SHADOW_PASSWORDS
254 prompt "Enable shadow password support"
257 Enable shadow password support.
261 prompt "Remove ipkg/opkg status data files in final images"
264 This removes all ipkg/opkg status data files from the target directory before building the root fs
266 config COLLECT_KERNEL_DEBUG
268 prompt "Collect kernel debug information"
269 select KERNEL_DEBUG_INFO
272 This collects debugging symbols from the kernel and all compiled modules.
273 Useful for release builds, so that kernel issues can be debugged offline later.
275 comment "Kernel build options"
277 source "Config-kernel.in"
279 comment "Package build options"
283 prompt "Compile packages with debugging info"
286 Adds -g3 to the CFLAGS
290 prompt "Enable IPv6 support in packages"
293 Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
295 config PKG_BUILD_PARALLEL
297 prompt "Compile certain packages parallelized"
300 This adds a -jX option to certain packages that are known to
301 behave well for parallel build. By default the package make processes
302 use the main jobserver, in which case this option only takes effect
303 when you add -jX to the make command.
305 If you are unsure, select N.
307 config PKG_BUILD_USE_JOBSERVER
309 prompt "Use top-level make jobserver for packages"
310 depends on PKG_BUILD_PARALLEL
313 This passes the main make process jobserver fds to package builds,
314 enabling full parallelization across different packages
316 Note that disabling this may overcommit CPU resources depending on the
317 -j level of the main make process, the number of package
318 submake jobs selected below and the number of actual CPUs present.
319 Example: If the main make is passed a -j4 and the submake -j
320 is also set to 4, we may end up with 16 parallel make processes
324 config PKG_BUILD_JOBS
326 prompt "Number of package submake jobs (2-512)"
329 depends on PKG_BUILD_PARALLEL && !PKG_BUILD_USE_JOBSERVER
331 The number of jobs (-jX) to pass to packages submake.
333 config PKG_DEFAULT_PARALLEL
335 prompt "Parallelize the default package build rule (May break build)"
336 depends on PKG_BUILD_PARALLEL
340 Always set the default package build rules to parallel build.
342 WARNING: This may break build or kill your cat, as it builds
343 packages with multiple jobs that are probably not tested in
344 a parallel build environment.
346 Only say Y, if you don't mind fixing broken packages.
347 Before reporting build bugs, set this to N and re-run the build.
349 comment "Stripping options"
352 prompt "Binary stripping method"
353 default USE_STRIP if EXTERNAL_TOOLCHAIN
354 default USE_STRIP if USE_GLIBC || USE_EGLIBC || USE_MUSL
357 Select the binary stripping method you wish to use.
362 This will install unstripped binaries (useful for native compiling/debugging)
367 This will install binaries stripped using strip from binutils
373 depends on !USE_GLIBC
374 depends on !USE_EGLIBC
376 This will install binaries stripped using sstrip
381 prompt "Strip arguments"
383 default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
384 default "--strip-all"
386 Specifies arguments passed to the strip command when stripping binaries
388 config STRIP_KERNEL_EXPORTS
389 bool "Strip unnecessary exports from the kernel image"
391 Reduces kernel size by stripping unused kernel exports from the kernel image
392 Note that this might make the kernel incompatible with any kernel modules that
393 were not selected at the time the kernel image was created
396 bool "Strip unnecessary functions from libraries"
398 Reduces libraries to only those functions that are necessary for using all
399 selected packages (including those selected as <M>)
400 Note that this will make the system libraries incompatible with most of the packages
401 that are not selected during the build process
404 prompt "Preferred standard C++ library"
405 default USE_LIBSTDCXX if USE_EGLIBC
408 Select the preferred standard C++ library for all packages that support this.
420 bool "Advanced configuration options (for developers)"
424 bool "Show broken platforms / packages" if DEVEL
427 config DOWNLOAD_FOLDER
428 string "Download folder" if DEVEL
432 string "Local mirror for source packages" if DEVEL
436 bool "Automatic rebuild of packages" if DEVEL
439 Automatically rebuild packages when their files change
442 string "Build suffix to append to the BUILD_DIR variable" if DEVEL
445 Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
447 config TARGET_ROOTFS_DIR
448 string "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
451 Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
452 Use this option to re-define the location of the target root file system directory.
455 bool "Use ccache" if DEVEL
458 Compiler cache; see http://ccache.samba.org/
460 config EXTERNAL_KERNEL_TREE
461 string "Use external kernel tree" if DEVEL
464 config KERNEL_GIT_CLONE_URI
465 string "Enter git repository to clone" if DEVEL
468 Enter the full git repository path i.e.:
469 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
470 This will create a git clone of the kernel in your build
473 config KERNEL_GIT_LOCAL_REPOSITORY
474 string "Enter path to local reference repository" if DEVEL
477 Enter a full pathname to a local reference git repository.
478 In this instance, the --refererence option of git clone will
479 be used thus creating a quick local clone of your repo.
482 bool "Enable log files during build process" if DEVEL
484 If enabled log files will be written to the ./log directory
486 config SRC_TREE_OVERRIDE
487 bool "Enable package source tree override" if DEVEL
489 If enabled, you can force a package to use a git tree as source
490 code instead of the normal tarball. Create a symlink 'git-src'
491 in the package directory, pointing to the .git tree that you want
492 to pull the source code from
494 config EXTRA_OPTIMIZATION
495 string "Additional compiler options" if DEVEL
496 default "-fno-caller-saves"
498 Extra Target-independent optimizations to use when building for the target.
500 menuconfig TARGET_OPTIONS
501 bool "Target Options" if DEVEL
503 config TARGET_OPTIMIZATION
504 string "Target Optimizations" if TARGET_OPTIONS
505 default DEFAULT_TARGET_OPTIMIZATION
507 Optimizations to use when building for the target host.
510 bool "Use software floating point by default" if TARGET_OPTIONS
512 depends on (arm || armeb || powerpc || mipsel || mips || mips64el || mips64) && !HAS_FPU
514 If your target CPU does not have a Floating Point Unit (FPU) or a
515 kernel FPU emulator, but you still wish to support floating point
516 functions, then everything will need to be compiled with soft floating
517 point support (-msoft-float).
519 Most people will answer N.
522 bool "Build packages with MIPS16 instructions" if TARGET_OPTIONS
523 depends on HAS_MIPS16
524 depends on !GCC_VERSION_4_6
527 If your target CPU does support the MIPS16 instruction set
528 and you want to use it for packages, enable this option.
529 MIPS16 produces smaller binaries thus reducing pressure on
532 Most people will answer N.
534 source "toolchain/Config.in"
536 source "target/imagebuilder/Config.in"
537 source "target/sdk/Config.in"
538 source "target/toolchain/Config.in"
540 source "tmp/.config-package.in"