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
144 menu "Global build settings"
147 bool "Select all packages by default"
150 comment "General build options"
152 config DISPLAY_SUPPORT
153 bool "Show packages that require graphics support (local or remote)"
156 config BUILD_PATENTED
158 bool "Compile with support for patented functionality"
160 When this option is disabled, software which provides patented functionality will not be built.
161 In case software provides optional support for patented functionality,
162 this optional support will get disabled for this package.
166 bool "Compile with full language support"
168 When this option is enabled, packages are built with the full versions of iconv and GNU gettext
169 instead of the default OpenWrt stubs. If uClibc is used, it is also built with locale support.
171 config BUILD_STATIC_TOOLS
173 bool "Attempt to link host utilities statically"
175 Linking host utilities like sed or firmware-utils statically increases the portability of the
176 generated ImageBuilder and SDK tarballs, however it may fail on some Linux distributions.
178 config SHADOW_PASSWORDS
180 prompt "Enable shadow password support"
183 Enable shadow password support.
187 prompt "Remove ipkg/opkg status data files in final images"
190 This removes all ipkg/opkg status data files from the target directory before building the root fs
192 config COLLECT_KERNEL_DEBUG
194 prompt "Collect kernel debug information"
195 select KERNEL_DEBUG_INFO
198 This collects debugging symbols from the kernel and all compiled modules.
199 Useful for release builds, so that kernel issues can be debugged offline later.
201 comment "Kernel build options"
203 config KERNEL_DEBUG_FS
204 bool "Compile the kernel with Debug FileSystem enabled"
207 debugfs is a virtual file system that kernel developers use to put
208 debugging files into. Enable this option to be able to read and
209 write to these files.
211 config KERNEL_PERF_EVENTS
215 config KERNEL_PROFILING
216 bool "Compile the kernel with profiling enabled"
218 select KERNEL_PERF_EVENTS
220 Enable the extended profiling support mechanisms used by profilers such
223 config KERNEL_KALLSYMS
224 bool "Compile the kernel with symbol table information"
227 This will give you more information in stack traces from kernel oopses
230 bool "Compile the kernel with tracing support"
233 config KERNEL_FTRACE_SYSCALLS
234 bool "Trace system calls"
235 depends on KERNEL_FTRACE
238 config KERNEL_ENABLE_DEFAULT_TRACERS
239 bool "Trace process context switches and events"
240 depends on KERNEL_FTRACE
243 config KERNEL_DEBUG_KERNEL
247 config KERNEL_DEBUG_INFO
248 bool "Compile the kernel with debug information"
250 select KERNEL_DEBUG_KERNEL
252 This will compile your kernel and modules with debug information.
254 config KERNEL_DEBUG_LL_UART_NONE
259 config KERNEL_DEBUG_LL
263 select KERNEL_DEBUG_LL_UART_NONE
265 ARM low level debugging
267 config KERNEL_EARLY_PRINTK
268 bool "Compile the kernel with early printk"
271 select KERNEL_DEBUG_KERNEL
272 select KERNEL_DEBUG_LL if arm
274 Compile the kernel with early printk support.
275 This is only useful for debugging purposes to send messages
276 over the serial console in early boot.
277 Enable this to debug early boot problems.
280 bool "Compile the kernel with asynchronous IO support"
283 config KERNEL_DIRECT_IO
284 bool "Compile the kernel with direct IO support"
287 config KERNEL_MAGIC_SYSRQ
288 bool "Compile the kernel with SysRq support"
291 config KERNEL_COREDUMP
294 config KERNEL_ELF_CORE
295 bool "Enable process core dump support"
296 select KERNEL_COREDUMP
299 config KERNEL_PROVE_LOCKING
300 bool "Enable kernel lock checking"
301 select KERNEL_DEBUG_KERNEL
304 config KERNEL_PRINTK_TIME
305 bool "Enable printk timestamps"
312 bool "Enable kexec support"
315 # CGROUP support symbols
318 config KERNEL_CGROUPS
319 bool "Enable kernel cgroups"
324 config KERNEL_CGROUP_DEBUG
325 bool "Example debug cgroup subsystem"
328 This option enables a simple cgroup subsystem that
329 exports useful debugging information about the cgroups
332 config KERNEL_FREEZER
334 default y if KERNEL_CGROUP_FREEZER
336 config KERNEL_CGROUP_FREEZER
337 bool "Freezer cgroup subsystem"
340 Provides a way to freeze and unfreeze all tasks in a
343 config KERNEL_CGROUP_DEVICE
344 bool "Device controller for cgroups"
347 Provides a cgroup implementing whitelists for devices which
348 a process in the cgroup can mknod or open.
350 config KERNEL_CPUSETS
351 bool "Cpuset support"
354 This option will let you create and manage CPUSETs which
355 allow dynamically partitioning a system into sets of CPUs and
356 Memory Nodes and assigning tasks to run only within those sets.
357 This is primarily useful on large SMP or NUMA systems.
359 config KERNEL_PROC_PID_CPUSET
360 bool "Include legacy /proc/<pid>/cpuset file"
362 depends on KERNEL_CPUSETS
364 config KERNEL_CGROUP_CPUACCT
365 bool "Simple CPU accounting cgroup subsystem"
368 Provides a simple Resource Controller for monitoring the
369 total CPU consumed by the tasks in a cgroup.
371 config KERNEL_RESOURCE_COUNTERS
372 bool "Resource counters"
375 This option enables controller independent resource accounting
376 infrastructure that works with cgroups.
378 config KERNEL_MM_OWNER
380 default y if KERNEL_MEMCG
383 bool "Memory Resource Controller for Control Groups"
385 depends on KERNEL_RESOURCE_COUNTERS
387 Provides a memory resource controller that manages both anonymous
388 memory and page cache. (See Documentation/cgroups/memory.txt)
390 Note that setting this option increases fixed memory overhead
391 associated with each page of memory in the system. By this,
392 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
393 usage tracking struct at boot. Total amount of this is printed out
396 Only enable when you're ok with these trade offs and really
397 sure you need the memory resource controller. Even when you enable
398 this, you can set "cgroup_disable=memory" at your boot option to
399 disable memory resource controller and you can avoid overheads.
400 (and lose benefits of memory resource controller)
402 This config option also selects MM_OWNER config option, which
403 could in turn add some fork/exit overhead.
405 config KERNEL_MEMCG_SWAP
406 bool "Memory Resource Controller Swap Extension"
408 depends on KERNEL_MEMCG
410 Add swap management feature to memory resource controller. When you
411 enable this, you can limit mem+swap usage per cgroup. In other words,
412 when you disable this, memory resource controller has no cares to
413 usage of swap...a process can exhaust all of the swap. This extension
414 is useful when you want to avoid exhaustion swap but this itself
415 adds more overheads and consumes memory for remembering information.
416 Especially if you use 32bit system or small memory system, please
417 be careful about enabling this. When memory resource controller
418 is disabled by boot option, this will be automatically disabled and
419 there will be no overhead from this. Even when you set this config=y,
420 if boot option "swapaccount=0" is set, swap will not be accounted.
421 Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
422 size is 4096bytes, 512k per 1Gbytes of swap.
424 config KERNEL_MEMCG_SWAP_ENABLED
425 bool "Memory Resource Controller Swap Extension enabled by default"
427 depends on KERNEL_MEMCG_SWAP
429 Memory Resource Controller Swap Extension comes with its price in
430 a bigger memory consumption. General purpose distribution kernels
431 which want to enable the feature but keep it disabled by default
432 and let the user enable it by swapaccount boot command line
433 parameter should have this option unselected.
434 For those who want to have the feature enabled by default should
435 select this option (if, for some reason, they need to disable it
436 then swapaccount=0 does the trick).
439 config KERNEL_MEMCG_KMEM
440 bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)"
442 depends on KERNEL_MEMCG
444 The Kernel Memory extension for Memory Resource Controller can limit
445 the amount of memory used by kernel objects in the system. Those are
446 fundamentally different from the entities handled by the standard
447 Memory Controller, which are page-based, and can be swapped. Users of
448 the kmem extension can use it to guarantee that no group of processes
449 will ever exhaust kernel resources alone.
451 config KERNEL_PERF_EVENTS
453 default y if KERNEL_CGROUP_PERF
455 config KERNEL_CGROUP_PERF
456 bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
459 This option extends the per-cpu mode to restrict monitoring to
460 threads which belong to the cgroup specified and run on the
463 menuconfig KERNEL_CGROUP_SCHED
464 bool "Group CPU scheduler"
467 This feature lets CPU scheduler recognize task groups and control CPU
468 bandwidth allocation to such task groups. It uses cgroups to group
471 if KERNEL_CGROUP_SCHED
473 config KERNEL_FAIR_GROUP_SCHED
474 bool "Group scheduling for SCHED_OTHER"
477 config KERNEL_CFS_BANDWIDTH
478 bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
480 depends on KERNEL_FAIR_GROUP_SCHED
482 This option allows users to define CPU bandwidth rates (limits) for
483 tasks running within the fair group scheduler. Groups with no limit
484 set are considered to be unconstrained and will run with no
486 See tip/Documentation/scheduler/sched-bwc.txt for more information.
488 config KERNEL_RT_GROUP_SCHED
489 bool "Group scheduling for SCHED_RR/FIFO"
492 This feature lets you explicitly allocate real CPU bandwidth
493 to task groups. If enabled, it will also make it impossible to
494 schedule realtime tasks for non-root users until you allocate
495 realtime bandwidth for them.
499 config KERNEL_BLK_CGROUP
500 bool "Block IO controller"
503 Generic block IO controller cgroup interface. This is the common
504 cgroup interface which should be used by various IO controlling
507 Currently, CFQ IO scheduler uses it to recognize task groups and
508 control disk bandwidth allocation (proportional time slice allocation)
509 to such task groups. It is also used by bio throttling logic in
510 block layer to implement upper limit in IO rates on a device.
512 This option only enables generic Block IO controller infrastructure.
513 One needs to also enable actual IO controlling logic/policy. For
514 enabling proportional weight division of disk bandwidth in CFQ, set
515 CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
516 CONFIG_BLK_DEV_THROTTLING=y.
518 config KERNEL_DEBUG_BLK_CGROUP
519 bool "Enable Block IO controller debugging"
521 depends on KERNEL_BLK_CGROUP
523 Enable some debugging help. Currently it exports additional stat
524 files in a cgroup which can be useful for debugging.
526 config KERNEL_NET_CLS_CGROUP
527 bool "Control Group Classifier"
530 config KERNEL_NETPRIO_CGROUP
531 bool "Network priority cgroup"
537 # Namespace support symbols
540 config KERNEL_NAMESPACES
541 bool "Enable kernel namespaces"
550 In this namespace tasks see different info provided
551 with the uname() system call
557 In this namespace tasks work with IPC ids which correspond to
558 different IPC objects in different namespaces.
560 config KERNEL_USER_NS
561 bool "User namespace (EXPERIMENTAL)"
564 This allows containers, i.e. vservers, to use user namespaces
565 to provide different user info for different servers.
568 bool "PID Namespaces"
571 Support process id namespaces. This allows having multiple
572 processes with the same pid as long as they are in different
573 pid namespaces. This is a building block of containers.
576 bool "Network namespace"
579 Allow user space to create what appear to be multiple instances
580 of the network stack.
585 # LXC related symbols
588 config KERNEL_LXC_MISC
589 bool "Enable miscellaneous LXC related options"
594 config KERNEL_DEVPTS_MULTIPLE_INSTANCES
595 bool "Support multiple instances of devpts"
598 Enable support for multiple instances of devpts filesystem.
599 If you want to have isolated PTY namespaces (eg: in containers),
600 say Y here. Otherwise, say N. If enabled, each mount of devpts
601 filesystem with the '-o newinstance' option will create an
602 independent PTY namespace.
604 config KERNEL_POSIX_MQUEUE
605 bool "POSIX Message Queues"
608 POSIX variant of message queues is a part of IPC. In POSIX message
609 queues every message has a priority which decides about succession
610 of receiving it by a process. If you want to compile and run
611 programs written e.g. for Solaris with use of its POSIX message
612 queues (functions mq_*) say Y here.
614 POSIX message queues are visible as a filesystem called 'mqueue'
615 and can be mounted somewhere if you want to do filesystem
616 operations on message queues.
620 comment "Package build options"
624 prompt "Compile packages with debugging info"
627 Adds -g3 to the CFLAGS
631 prompt "Enable IPv6 support in packages"
634 Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
636 config PKG_BUILD_PARALLEL
638 prompt "Compile certain packages parallelized"
641 This adds a -jX option to certain packages that are known to
642 behave well for parallel build. By default the package make processes
643 use the main jobserver, in which case this option only takes effect
644 when you add -jX to the make command.
646 If you are unsure, select N.
648 config PKG_BUILD_USE_JOBSERVER
650 prompt "Use top-level make jobserver for packages"
651 depends on PKG_BUILD_PARALLEL
654 This passes the main make process jobserver fds to package builds,
655 enabling full parallelization across different packages
657 Note that disabling this may overcommit CPU resources depending on the
658 -j level of the main make process, the number of package
659 submake jobs selected below and the number of actual CPUs present.
660 Example: If the main make is passed a -j4 and the submake -j
661 is also set to 4, we may end up with 16 parallel make processes
665 config PKG_BUILD_JOBS
667 prompt "Number of package submake jobs (2-512)"
670 depends on PKG_BUILD_PARALLEL && !PKG_BUILD_USE_JOBSERVER
672 The number of jobs (-jX) to pass to packages submake.
674 config PKG_DEFAULT_PARALLEL
676 prompt "Parallelize the default package build rule (May break build)"
677 depends on PKG_BUILD_PARALLEL
681 Always set the default package build rules to parallel build.
683 WARNING: This may break build or kill your cat, as it builds
684 packages with multiple jobs that are probably not tested in
685 a parallel build environment.
687 Only say Y, if you don't mind fixing broken packages.
688 Before reporting build bugs, set this to N and re-run the build.
690 comment "Stripping options"
693 prompt "Binary stripping method"
694 default USE_STRIP if EXTERNAL_TOOLCHAIN
695 default USE_STRIP if USE_GLIBC || USE_EGLIBC || USE_MUSL
698 Select the binary stripping method you wish to use.
703 This will install unstripped binaries (useful for native compiling/debugging)
708 This will install binaries stripped using strip from binutils
714 depends on !USE_GLIBC
715 depends on !USE_EGLIBC
717 This will install binaries stripped using sstrip
722 prompt "Strip arguments"
724 default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
725 default "--strip-all"
727 Specifies arguments passed to the strip command when stripping binaries
729 config STRIP_KERNEL_EXPORTS
730 bool "Strip unnecessary exports from the kernel image"
732 Reduces kernel size by stripping unused kernel exports from the kernel image
733 Note that this might make the kernel incompatible with any kernel modules that
734 were not selected at the time the kernel image was created
737 bool "Strip unnecessary functions from libraries"
739 Reduces libraries to only those functions that are necessary for using all
740 selected packages (including those selected as <M>)
741 Note that this will make the system libraries incompatible with most of the packages
742 that are not selected during the build process
745 prompt "Preferred standard C++ library"
746 default USE_LIBSTDCXX if USE_EGLIBC
749 Select the preferred standard C++ library for all packages that support this.
761 bool "Advanced configuration options (for developers)"
765 bool "Show broken platforms / packages" if DEVEL
768 config DOWNLOAD_FOLDER
769 string "Download folder" if DEVEL
773 string "Local mirror for source packages" if DEVEL
777 bool "Automatic rebuild of packages" if DEVEL
780 Automatically rebuild packages when their files change
783 string "Build suffix to append to the BUILD_DIR variable" if DEVEL
786 Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
788 config TARGET_ROOTFS_DIR
789 string "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
792 Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
793 Use this option to re-define the location of the target root file system directory.
796 bool "Use ccache" if DEVEL
799 Compiler cache; see http://ccache.samba.org/
801 config EXTERNAL_KERNEL_TREE
802 string "Use external kernel tree" if DEVEL
805 config KERNEL_GIT_CLONE_URI
806 string "Enter git repository to clone" if DEVEL
809 Enter the full git repository path i.e.:
810 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
811 This will create a git clone of the kernel in your build
814 config KERNEL_GIT_LOCAL_REPOSITORY
815 string "Enter path to local reference repository" if DEVEL
818 Enter a full pathname to a local reference git repository.
819 In this instance, the --refererence option of git clone will
820 be used thus creating a quick local clone of your repo.
823 bool "Enable log files during build process" if DEVEL
825 If enabled log files will be written to the ./log directory
827 config SRC_TREE_OVERRIDE
828 bool "Enable package source tree override" if DEVEL
830 If enabled, you can force a package to use a git tree as source
831 code instead of the normal tarball. Create a symlink 'git-src'
832 in the package directory, pointing to the .git tree that you want
833 to pull the source code from
835 menuconfig TARGET_OPTIONS
836 bool "Target Options" if DEVEL
838 config TARGET_OPTIMIZATION
839 string "Target Optimizations" if TARGET_OPTIONS
840 default DEFAULT_TARGET_OPTIMIZATION
842 Optimizations to use when building for the target host.
845 bool "Use software floating point by default" if TARGET_OPTIONS
847 depends on (arm || armeb || powerpc || mipsel || mips || mips64el || mips64) && !HAS_FPU
849 If your target CPU does not have a Floating Point Unit (FPU) or a
850 kernel FPU emulator, but you still wish to support floating point
851 functions, then everything will need to be compiled with soft floating
852 point support (-msoft-float).
854 Most people will answer N.
857 bool "Build packages with MIPS16 instructions" if TARGET_OPTIONS
858 depends on HAS_MIPS16
860 If your target CPU does support the MIPS16 instruction set
861 and you want to use it for packages, enable this option.
862 MIPS16 produces smaller binaries thus reducing pressure on
865 Most people will answer N.
867 source "toolchain/Config.in"
869 source "target/imagebuilder/Config.in"
870 source "target/sdk/Config.in"
871 source "target/toolchain/Config.in"
873 source "tmp/.config-package.in"