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 config TARGET_ROOTFS_UBIFS
112 default y if USES_UBIFS
113 depends on USES_UBIFS
115 Build a ubifs root filesystem
117 comment "Image Options"
119 source "target/linux/*/image/Config.in"
121 config TARGET_ROOTFS_PARTSIZE
122 int "Root filesystem partition size (in MB)"
123 depends on X86_GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
126 Allows you to change the root filesystem partition size
128 config TARGET_ROOTFS_MAXINODE
129 int "Maximum number of inodes in root filesystem"
130 depends on TARGET_ROOTFS_EXT4FS
133 Allows you to change the maximum number of inodes in the root filesystem
135 config TARGET_ROOTFS_RESERVED_PCT
136 int "Percentage of reserved blocks in root filesystem"
137 depends on TARGET_ROOTFS_EXT4FS
140 Allows you to change the percentage of reserved blocks in the root filesystem
142 config TARGET_ROOTFS_INCLUDE_KERNEL
143 bool "include kernel in rootfs"
144 depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
145 default n if USES_UBIFS
147 Include the kernel image in the rootfs
149 config TARGET_ROOTFS_INCLUDE_DTB
150 bool "include dtb in rootfs"
151 depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
152 default n if USES_UBIFS
154 Include the device tree blob file in the rootfs
158 menu "Global build settings"
161 bool "Select all packages by default"
164 comment "General build options"
166 config DISPLAY_SUPPORT
167 bool "Show packages that require graphics support (local or remote)"
170 config BUILD_PATENTED
172 bool "Compile with support for patented functionality"
174 When this option is disabled, software which provides patented functionality will not be built.
175 In case software provides optional support for patented functionality,
176 this optional support will get disabled for this package.
180 bool "Compile with full language support"
182 When this option is enabled, packages are built with the full versions of iconv and GNU gettext
183 instead of the default OpenWrt stubs. If uClibc is used, it is also built with locale support.
185 config BUILD_STATIC_TOOLS
187 bool "Attempt to link host utilities statically"
189 Linking host utilities like sed or firmware-utils statically increases the portability of the
190 generated ImageBuilder and SDK tarballs, however it may fail on some Linux distributions.
192 config SHADOW_PASSWORDS
194 prompt "Enable shadow password support"
197 Enable shadow password support.
201 prompt "Remove ipkg/opkg status data files in final images"
204 This removes all ipkg/opkg status data files from the target directory before building the root fs
206 config COLLECT_KERNEL_DEBUG
208 prompt "Collect kernel debug information"
209 select KERNEL_DEBUG_INFO
212 This collects debugging symbols from the kernel and all compiled modules.
213 Useful for release builds, so that kernel issues can be debugged offline later.
215 comment "Kernel build options"
217 config KERNEL_DEBUG_FS
218 bool "Compile the kernel with Debug FileSystem enabled"
221 debugfs is a virtual file system that kernel developers use to put
222 debugging files into. Enable this option to be able to read and
223 write to these files.
225 config KERNEL_PERF_EVENTS
229 config KERNEL_PROFILING
230 bool "Compile the kernel with profiling enabled"
232 select KERNEL_PERF_EVENTS
234 Enable the extended profiling support mechanisms used by profilers such
237 config KERNEL_KALLSYMS
238 bool "Compile the kernel with symbol table information"
241 This will give you more information in stack traces from kernel oopses
244 bool "Compile the kernel with tracing support"
247 config KERNEL_FTRACE_SYSCALLS
248 bool "Trace system calls"
249 depends on KERNEL_FTRACE
252 config KERNEL_ENABLE_DEFAULT_TRACERS
253 bool "Trace process context switches and events"
254 depends on KERNEL_FTRACE
257 config KERNEL_DEBUG_KERNEL
261 config KERNEL_DEBUG_INFO
262 bool "Compile the kernel with debug information"
264 select KERNEL_DEBUG_KERNEL
266 This will compile your kernel and modules with debug information.
268 config KERNEL_DEBUG_LL_UART_NONE
273 config KERNEL_DEBUG_LL
277 select KERNEL_DEBUG_LL_UART_NONE
279 ARM low level debugging
281 config KERNEL_EARLY_PRINTK
282 bool "Compile the kernel with early printk"
285 select KERNEL_DEBUG_KERNEL
286 select KERNEL_DEBUG_LL if arm
288 Compile the kernel with early printk support.
289 This is only useful for debugging purposes to send messages
290 over the serial console in early boot.
291 Enable this to debug early boot problems.
294 bool "Compile the kernel with asynchronous IO support"
297 config KERNEL_DIRECT_IO
298 bool "Compile the kernel with direct IO support"
301 config KERNEL_MAGIC_SYSRQ
302 bool "Compile the kernel with SysRq support"
305 config KERNEL_COREDUMP
308 config KERNEL_ELF_CORE
309 bool "Enable process core dump support"
310 select KERNEL_COREDUMP
313 config KERNEL_PROVE_LOCKING
314 bool "Enable kernel lock checking"
315 select KERNEL_DEBUG_KERNEL
318 config KERNEL_PRINTK_TIME
319 bool "Enable printk timestamps"
326 bool "Enable kexec support"
329 bool "Enable rfkill support"
330 default RFKILL_SUPPORT
333 # CGROUP support symbols
336 config KERNEL_CGROUPS
337 bool "Enable kernel cgroups"
342 config KERNEL_CGROUP_DEBUG
343 bool "Example debug cgroup subsystem"
346 This option enables a simple cgroup subsystem that
347 exports useful debugging information about the cgroups
350 config KERNEL_FREEZER
352 default y if KERNEL_CGROUP_FREEZER
354 config KERNEL_CGROUP_FREEZER
355 bool "Freezer cgroup subsystem"
358 Provides a way to freeze and unfreeze all tasks in a
361 config KERNEL_CGROUP_DEVICE
362 bool "Device controller for cgroups"
365 Provides a cgroup implementing whitelists for devices which
366 a process in the cgroup can mknod or open.
368 config KERNEL_CPUSETS
369 bool "Cpuset support"
372 This option will let you create and manage CPUSETs which
373 allow dynamically partitioning a system into sets of CPUs and
374 Memory Nodes and assigning tasks to run only within those sets.
375 This is primarily useful on large SMP or NUMA systems.
377 config KERNEL_PROC_PID_CPUSET
378 bool "Include legacy /proc/<pid>/cpuset file"
380 depends on KERNEL_CPUSETS
382 config KERNEL_CGROUP_CPUACCT
383 bool "Simple CPU accounting cgroup subsystem"
386 Provides a simple Resource Controller for monitoring the
387 total CPU consumed by the tasks in a cgroup.
389 config KERNEL_RESOURCE_COUNTERS
390 bool "Resource counters"
393 This option enables controller independent resource accounting
394 infrastructure that works with cgroups.
396 config KERNEL_MM_OWNER
398 default y if KERNEL_MEMCG
401 bool "Memory Resource Controller for Control Groups"
403 depends on KERNEL_RESOURCE_COUNTERS
405 Provides a memory resource controller that manages both anonymous
406 memory and page cache. (See Documentation/cgroups/memory.txt)
408 Note that setting this option increases fixed memory overhead
409 associated with each page of memory in the system. By this,
410 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
411 usage tracking struct at boot. Total amount of this is printed out
414 Only enable when you're ok with these trade offs and really
415 sure you need the memory resource controller. Even when you enable
416 this, you can set "cgroup_disable=memory" at your boot option to
417 disable memory resource controller and you can avoid overheads.
418 (and lose benefits of memory resource controller)
420 This config option also selects MM_OWNER config option, which
421 could in turn add some fork/exit overhead.
423 config KERNEL_MEMCG_SWAP
424 bool "Memory Resource Controller Swap Extension"
426 depends on KERNEL_MEMCG
428 Add swap management feature to memory resource controller. When you
429 enable this, you can limit mem+swap usage per cgroup. In other words,
430 when you disable this, memory resource controller has no cares to
431 usage of swap...a process can exhaust all of the swap. This extension
432 is useful when you want to avoid exhaustion swap but this itself
433 adds more overheads and consumes memory for remembering information.
434 Especially if you use 32bit system or small memory system, please
435 be careful about enabling this. When memory resource controller
436 is disabled by boot option, this will be automatically disabled and
437 there will be no overhead from this. Even when you set this config=y,
438 if boot option "swapaccount=0" is set, swap will not be accounted.
439 Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
440 size is 4096bytes, 512k per 1Gbytes of swap.
442 config KERNEL_MEMCG_SWAP_ENABLED
443 bool "Memory Resource Controller Swap Extension enabled by default"
445 depends on KERNEL_MEMCG_SWAP
447 Memory Resource Controller Swap Extension comes with its price in
448 a bigger memory consumption. General purpose distribution kernels
449 which want to enable the feature but keep it disabled by default
450 and let the user enable it by swapaccount boot command line
451 parameter should have this option unselected.
452 For those who want to have the feature enabled by default should
453 select this option (if, for some reason, they need to disable it
454 then swapaccount=0 does the trick).
457 config KERNEL_MEMCG_KMEM
458 bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)"
460 depends on KERNEL_MEMCG
462 The Kernel Memory extension for Memory Resource Controller can limit
463 the amount of memory used by kernel objects in the system. Those are
464 fundamentally different from the entities handled by the standard
465 Memory Controller, which are page-based, and can be swapped. Users of
466 the kmem extension can use it to guarantee that no group of processes
467 will ever exhaust kernel resources alone.
469 config KERNEL_CGROUP_PERF
470 bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
472 select KERNEL_PERF_EVENTS
474 This option extends the per-cpu mode to restrict monitoring to
475 threads which belong to the cgroup specified and run on the
478 menuconfig KERNEL_CGROUP_SCHED
479 bool "Group CPU scheduler"
482 This feature lets CPU scheduler recognize task groups and control CPU
483 bandwidth allocation to such task groups. It uses cgroups to group
486 if KERNEL_CGROUP_SCHED
488 config KERNEL_FAIR_GROUP_SCHED
489 bool "Group scheduling for SCHED_OTHER"
492 config KERNEL_CFS_BANDWIDTH
493 bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
495 depends on KERNEL_FAIR_GROUP_SCHED
497 This option allows users to define CPU bandwidth rates (limits) for
498 tasks running within the fair group scheduler. Groups with no limit
499 set are considered to be unconstrained and will run with no
501 See tip/Documentation/scheduler/sched-bwc.txt for more information.
503 config KERNEL_RT_GROUP_SCHED
504 bool "Group scheduling for SCHED_RR/FIFO"
507 This feature lets you explicitly allocate real CPU bandwidth
508 to task groups. If enabled, it will also make it impossible to
509 schedule realtime tasks for non-root users until you allocate
510 realtime bandwidth for them.
514 config KERNEL_BLK_CGROUP
515 bool "Block IO controller"
518 Generic block IO controller cgroup interface. This is the common
519 cgroup interface which should be used by various IO controlling
522 Currently, CFQ IO scheduler uses it to recognize task groups and
523 control disk bandwidth allocation (proportional time slice allocation)
524 to such task groups. It is also used by bio throttling logic in
525 block layer to implement upper limit in IO rates on a device.
527 This option only enables generic Block IO controller infrastructure.
528 One needs to also enable actual IO controlling logic/policy. For
529 enabling proportional weight division of disk bandwidth in CFQ, set
530 CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
531 CONFIG_BLK_DEV_THROTTLING=y.
533 config KERNEL_DEBUG_BLK_CGROUP
534 bool "Enable Block IO controller debugging"
536 depends on KERNEL_BLK_CGROUP
538 Enable some debugging help. Currently it exports additional stat
539 files in a cgroup which can be useful for debugging.
541 config KERNEL_NET_CLS_CGROUP
542 bool "Control Group Classifier"
545 config KERNEL_NETPRIO_CGROUP
546 bool "Network priority cgroup"
552 # Namespace support symbols
555 config KERNEL_NAMESPACES
556 bool "Enable kernel namespaces"
565 In this namespace tasks see different info provided
566 with the uname() system call
572 In this namespace tasks work with IPC ids which correspond to
573 different IPC objects in different namespaces.
575 config KERNEL_USER_NS
576 bool "User namespace (EXPERIMENTAL)"
579 This allows containers, i.e. vservers, to use user namespaces
580 to provide different user info for different servers.
583 bool "PID Namespaces"
586 Support process id namespaces. This allows having multiple
587 processes with the same pid as long as they are in different
588 pid namespaces. This is a building block of containers.
591 bool "Network namespace"
594 Allow user space to create what appear to be multiple instances
595 of the network stack.
600 # LXC related symbols
603 config KERNEL_LXC_MISC
604 bool "Enable miscellaneous LXC related options"
609 config KERNEL_DEVPTS_MULTIPLE_INSTANCES
610 bool "Support multiple instances of devpts"
613 Enable support for multiple instances of devpts filesystem.
614 If you want to have isolated PTY namespaces (eg: in containers),
615 say Y here. Otherwise, say N. If enabled, each mount of devpts
616 filesystem with the '-o newinstance' option will create an
617 independent PTY namespace.
619 config KERNEL_POSIX_MQUEUE
620 bool "POSIX Message Queues"
623 POSIX variant of message queues is a part of IPC. In POSIX message
624 queues every message has a priority which decides about succession
625 of receiving it by a process. If you want to compile and run
626 programs written e.g. for Solaris with use of its POSIX message
627 queues (functions mq_*) say Y here.
629 POSIX message queues are visible as a filesystem called 'mqueue'
630 and can be mounted somewhere if you want to do filesystem
631 operations on message queues.
635 comment "Package build options"
639 prompt "Compile packages with debugging info"
642 Adds -g3 to the CFLAGS
646 prompt "Enable IPv6 support in packages"
649 Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
651 config PKG_BUILD_PARALLEL
653 prompt "Compile certain packages parallelized"
656 This adds a -jX option to certain packages that are known to
657 behave well for parallel build. By default the package make processes
658 use the main jobserver, in which case this option only takes effect
659 when you add -jX to the make command.
661 If you are unsure, select N.
663 config PKG_BUILD_USE_JOBSERVER
665 prompt "Use top-level make jobserver for packages"
666 depends on PKG_BUILD_PARALLEL
669 This passes the main make process jobserver fds to package builds,
670 enabling full parallelization across different packages
672 Note that disabling this may overcommit CPU resources depending on the
673 -j level of the main make process, the number of package
674 submake jobs selected below and the number of actual CPUs present.
675 Example: If the main make is passed a -j4 and the submake -j
676 is also set to 4, we may end up with 16 parallel make processes
680 config PKG_BUILD_JOBS
682 prompt "Number of package submake jobs (2-512)"
685 depends on PKG_BUILD_PARALLEL && !PKG_BUILD_USE_JOBSERVER
687 The number of jobs (-jX) to pass to packages submake.
689 config PKG_DEFAULT_PARALLEL
691 prompt "Parallelize the default package build rule (May break build)"
692 depends on PKG_BUILD_PARALLEL
696 Always set the default package build rules to parallel build.
698 WARNING: This may break build or kill your cat, as it builds
699 packages with multiple jobs that are probably not tested in
700 a parallel build environment.
702 Only say Y, if you don't mind fixing broken packages.
703 Before reporting build bugs, set this to N and re-run the build.
705 comment "Stripping options"
708 prompt "Binary stripping method"
709 default USE_STRIP if EXTERNAL_TOOLCHAIN
710 default USE_STRIP if USE_GLIBC || USE_EGLIBC || USE_MUSL
713 Select the binary stripping method you wish to use.
718 This will install unstripped binaries (useful for native compiling/debugging)
723 This will install binaries stripped using strip from binutils
729 depends on !USE_GLIBC
730 depends on !USE_EGLIBC
732 This will install binaries stripped using sstrip
737 prompt "Strip arguments"
739 default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
740 default "--strip-all"
742 Specifies arguments passed to the strip command when stripping binaries
744 config STRIP_KERNEL_EXPORTS
745 bool "Strip unnecessary exports from the kernel image"
747 Reduces kernel size by stripping unused kernel exports from the kernel image
748 Note that this might make the kernel incompatible with any kernel modules that
749 were not selected at the time the kernel image was created
752 bool "Strip unnecessary functions from libraries"
754 Reduces libraries to only those functions that are necessary for using all
755 selected packages (including those selected as <M>)
756 Note that this will make the system libraries incompatible with most of the packages
757 that are not selected during the build process
760 prompt "Preferred standard C++ library"
761 default USE_LIBSTDCXX if USE_EGLIBC
764 Select the preferred standard C++ library for all packages that support this.
776 bool "Advanced configuration options (for developers)"
780 bool "Show broken platforms / packages" if DEVEL
783 config DOWNLOAD_FOLDER
784 string "Download folder" if DEVEL
788 string "Local mirror for source packages" if DEVEL
792 bool "Automatic rebuild of packages" if DEVEL
795 Automatically rebuild packages when their files change
798 string "Build suffix to append to the BUILD_DIR variable" if DEVEL
801 Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
803 config TARGET_ROOTFS_DIR
804 string "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
807 Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
808 Use this option to re-define the location of the target root file system directory.
811 bool "Use ccache" if DEVEL
814 Compiler cache; see http://ccache.samba.org/
816 config EXTERNAL_KERNEL_TREE
817 string "Use external kernel tree" if DEVEL
820 config KERNEL_GIT_CLONE_URI
821 string "Enter git repository to clone" if DEVEL
824 Enter the full git repository path i.e.:
825 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
826 This will create a git clone of the kernel in your build
829 config KERNEL_GIT_LOCAL_REPOSITORY
830 string "Enter path to local reference repository" if DEVEL
833 Enter a full pathname to a local reference git repository.
834 In this instance, the --refererence option of git clone will
835 be used thus creating a quick local clone of your repo.
838 bool "Enable log files during build process" if DEVEL
840 If enabled log files will be written to the ./log directory
842 config SRC_TREE_OVERRIDE
843 bool "Enable package source tree override" if DEVEL
845 If enabled, you can force a package to use a git tree as source
846 code instead of the normal tarball. Create a symlink 'git-src'
847 in the package directory, pointing to the .git tree that you want
848 to pull the source code from
850 config EXTRA_OPTIMIZATION
851 string "Additional compiler options" if DEVEL
852 default "-fno-caller-saves"
854 Extra Target-independent optimizations to use when building for the target.
856 menuconfig TARGET_OPTIONS
857 bool "Target Options" if DEVEL
859 config TARGET_OPTIMIZATION
860 string "Target Optimizations" if TARGET_OPTIONS
861 default DEFAULT_TARGET_OPTIMIZATION
863 Optimizations to use when building for the target host.
866 bool "Use software floating point by default" if TARGET_OPTIONS
868 depends on (arm || armeb || powerpc || mipsel || mips || mips64el || mips64) && !HAS_FPU
870 If your target CPU does not have a Floating Point Unit (FPU) or a
871 kernel FPU emulator, but you still wish to support floating point
872 functions, then everything will need to be compiled with soft floating
873 point support (-msoft-float).
875 Most people will answer N.
878 bool "Build packages with MIPS16 instructions" if TARGET_OPTIONS
879 depends on HAS_MIPS16
881 If your target CPU does support the MIPS16 instruction set
882 and you want to use it for packages, enable this option.
883 MIPS16 produces smaller binaries thus reducing pressure on
886 Most people will answer N.
888 source "toolchain/Config.in"
890 source "target/imagebuilder/Config.in"
891 source "target/sdk/Config.in"
892 source "target/toolchain/Config.in"
894 source "tmp/.config-package.in"