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
81 depends on !TARGET_ROOTFS_INITRAMFS
83 Ext4 file system with some free space for uml images
85 config TARGET_ROOTFS_ISO
88 depends on TARGET_x86_generic
89 depends on !TARGET_ROOTFS_INITRAMFS
91 Create some bootable ISO image
93 config TARGET_ROOTFS_JFFS2
95 default y if USES_JFFS2
96 depends on !TARGET_ROOTFS_INITRAMFS
98 Build a jffs2 root filesystem
100 config TARGET_ROOTFS_SQUASHFS
102 default y if USES_SQUASHFS
103 depends on !TARGET_ROOTFS_INITRAMFS
105 Build a squashfs-lzma root filesystem
107 config TARGET_ROOTFS_UBIFS
109 default y if USES_UBIFS
110 depends on !TARGET_ROOTFS_INITRAMFS && USES_UBIFS
112 Build a ubifs root filesystem
114 comment "Image Options"
116 source "target/linux/*/image/Config.in"
118 config TARGET_ROOTFS_PARTSIZE
119 int "Root filesystem partition size (in MB)"
120 depends on X86_GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
123 Allows you to change the root filesystem partition size
125 config TARGET_ROOTFS_MAXINODE
126 int "Maximum number of inodes in root filesystem"
127 depends on TARGET_ROOTFS_EXT4FS
130 Allows you to change the maximum number of inodes in the root filesystem
132 config TARGET_ROOTFS_RESERVED_PCT
133 int "Percentage of reserved blocks in root filesystem"
134 depends on TARGET_ROOTFS_EXT4FS
137 Allows you to change the percentage of reserved blocks in the root filesystem
141 menu "Global build settings"
144 bool "Select all packages by default"
147 comment "General build options"
149 config DISPLAY_SUPPORT
150 bool "Show packages that require graphics support (local or remote)"
153 config BUILD_PATENTED
155 bool "Compile with support for patented functionality"
157 When this option is disabled, software which provides patented functionality will not be built.
158 In case software provides optional support for patented functionality,
159 this optional support will get disabled for this package.
163 bool "Compile with full language support"
165 When this option is enabled, packages are built with the full versions of iconv and GNU gettext
166 instead of the default OpenWrt stubs. If uClibc is used, it is also built with locale support.
168 config BUILD_STATIC_TOOLS
170 bool "Attempt to link host utilities statically"
172 Linking host utilities like sed or firmware-utils statically increases the portability of the
173 generated ImageBuilder and SDK tarballs, however it may fail on some Linux distributions.
175 config SHADOW_PASSWORDS
177 prompt "Enable shadow password support"
180 Enable shadow password support.
184 prompt "Remove ipkg/opkg status data files in final images"
187 This removes all ipkg/opkg status data files from the target directory before building the root fs
189 config COLLECT_KERNEL_DEBUG
191 prompt "Collect kernel debug information"
192 select KERNEL_DEBUG_INFO
195 This collects debugging symbols from the kernel and all compiled modules.
196 Useful for release builds, so that kernel issues can be debugged offline later.
198 comment "Kernel build options"
200 config KERNEL_DEBUG_FS
201 bool "Compile the kernel with Debug FileSystem enabled"
204 debugfs is a virtual file system that kernel developers use to put
205 debugging files into. Enable this option to be able to read and
206 write to these files.
208 config KERNEL_PERF_EVENTS
212 config KERNEL_PROFILING
213 bool "Compile the kernel with profiling enabled"
215 select KERNEL_PERF_EVENTS
217 Enable the extended profiling support mechanisms used by profilers such
220 config KERNEL_KALLSYMS
221 bool "Compile the kernel with symbol table information"
224 This will give you more information in stack traces from kernel oopses
227 bool "Compile the kernel with tracing support"
230 config KERNEL_ENABLE_DEFAULT_TRACERS
231 bool "Trace process context switches and events"
232 depends on KERNEL_FTRACE
235 config KERNEL_DEBUG_KERNEL
239 config KERNEL_DEBUG_INFO
240 bool "Compile the kernel with debug information"
242 select KERNEL_DEBUG_KERNEL
244 This will compile your kernel and modules with debug information.
246 config KERNEL_DEBUG_LL_UART_NONE
251 config KERNEL_DEBUG_LL
255 select KERNEL_DEBUG_LL_UART_NONE
257 ARM low level debugging
259 config KERNEL_EARLY_PRINTK
260 bool "Compile the kernel with early printk"
263 select KERNEL_DEBUG_KERNEL
264 select KERNEL_DEBUG_LL if arm
266 Compile the kernel with early printk support.
267 This is only useful for debugging purposes to send messages
268 over the serial console in early boot.
269 Enable this to debug early boot problems.
272 bool "Compile the kernel with asynchronous IO support"
275 config KERNEL_DIRECT_IO
276 bool "Compile the kernel with direct IO support"
279 config KERNEL_MAGIC_SYSRQ
280 bool "Compile the kernel with SysRq support"
283 config KERNEL_COREDUMP
286 config KERNEL_ELF_CORE
287 bool "Enable process core dump support"
288 select KERNEL_COREDUMP
291 config KERNEL_PROVE_LOCKING
292 bool "Enable kernel lock checking"
293 select KERNEL_DEBUG_KERNEL
296 config KERNEL_PRINTK_TIME
297 bool "Enable printk timestamps"
304 # CGROUP support symbols
307 config KERNEL_FREEZER
309 default y if KERNEL_CGROUP_FREEZER
310 depends on KERNEL_CGROUPS
312 config KERNEL_CGROUP_FREEZER
314 depends on KERNEL_CGROUPS
316 config KERNEL_CGROUP_DEVICE
318 depends on KERNEL_CGROUPS
320 config KERNEL_CPUSETS
322 default y if KERNEL_CGROUP_CPUACCT
323 depends on KERNEL_CGROUPS
325 config KERNEL_PROC_PID_CPUSET
327 default y if KERNEL_CGROUP_CPUACCT
328 depends on KERNEL_CGROUPS
330 config KERNEL_CGROUP_CPUACCT
332 depends on KERNEL_CGROUPS
334 config KERNEL_RESOURCE_COUNTERS
336 default y if KERNEL_CGROUP_MEM_RES_CTLR
337 depends on KERNEL_CGROUPS
339 config KERNEL_CGROUP_MEM_RES_CTLR
341 depends on KERNEL_CGROUPS
343 config KERNEL_CGROUP_MEM_RES_CTLR_SWAP
345 depends on KERNEL_CGROUPS
347 config KERNEL_CGROUP_MEM_RES_CTLR_SWAP_ENABLED
349 depends on KERNEL_CGROUPS
351 config KERNEL_CGROUP_MEM_RES_CTLR_KMEM
353 depends on KERNEL_CGROUPS
355 config KERNEL_CGROUP_PERF
357 depends on KERNEL_CGROUPS
359 config KERNEL_CFS_BANDWIDTH
361 default y if KERNEL_FAIR_GROUP_SCHED
362 depends on KERNEL_CGROUP_SCHED
364 config KERNEL_FAIR_GROUP_SCHED
366 default y if KERNEL_CGROUP_SCHED
367 depends on KERNEL_CGROUP_SCHED
369 config KERNEL_RT_GROUP_SCHED
371 default y if KERNEL_CGROUP_SCHED
372 depends on KERNEL_CGROUP_SCHED
374 config KERNEL_CGROUP_SCHED
376 depends on KERNEL_CGROUPS
378 config KERNEL_NET_CLS_CGROUP
380 depends on KERNEL_CGROUPS
382 config KERNEL_NETPRIO_CGROUP
384 depends on KERNEL_CGROUPS
386 config KERNEL_BLK_CGROUP
388 depends on KERNEL_CGROUPS
390 config KERNEL_DEBUG_BLK_CGROUP
392 default n if KERNEL_CGROUPS
393 depends on KERNEL_CGROUPS
395 config KERNEL_CGROUPS
396 bool "Enable kernel cgroups"
398 select KERNEL_CGROUP_FREEZER
399 select KERNEL_CGROUP_DEVICE
400 select KERNEL_CGROUP_CPUACCT
401 select KERNEL_CGROUP_MEM_RES_CTLR
402 select KERNEL_CGROUP_MEM_RES_CTLR_SWAP
403 select KERNEL_CGROUP_MEM_RES_CTLR_SWAP_ENABLED
404 select KERNEL_CGROUP_MEM_RES_CTLR_KMEM
405 select KERNEL_CGROUP_PERF
406 select KERNEL_CGROUP_SCHED
407 select KERNEL_NET_CLS_CGROUP
408 select KERNEL_NETPRIO_CGROUP
409 select KERNEL_BLK_CGROUP
412 # Namespace support symbols
417 depends on KERNEL_NAMESPACES
421 depends on KERNEL_NAMESPACES
423 config KERNEL_USER_NS
425 depends on KERNEL_NAMESPACES
429 depends on KERNEL_NAMESPACES
433 depends on KERNEL_NAMESPACES
435 config KERNEL_DEVPTS_MULTIPLE_INSTANCES
437 depends on KERNEL_NAMESPACES
439 config KERNEL_NAMESPACES
440 bool "Enable kernel namespaces"
444 select KERNEL_USER_NS
447 select KERNEL_DEVPTS_MULTIPLE_INSTANCES
450 comment "Package build options"
454 prompt "Compile packages with debugging info"
457 Adds -g3 to the CFLAGS
461 prompt "Enable IPv6 support in packages"
464 Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
466 config PKG_BUILD_PARALLEL
468 prompt "Compile certain packages parallelized"
471 This adds a -jX option to certain packages that are known to
472 behave well for parallel build. By default the package make processes
473 use the main jobserver, in which case this option only takes effect
474 when you add -jX to the make command.
476 If you are unsure, select N.
478 config PKG_BUILD_USE_JOBSERVER
480 prompt "Use top-level make jobserver for packages"
481 depends on PKG_BUILD_PARALLEL
484 This passes the main make process jobserver fds to package builds,
485 enabling full parallelization across different packages
487 Note that disabling this may overcommit CPU resources depending on the
488 -j level of the main make process, the number of package
489 submake jobs selected below and the number of actual CPUs present.
490 Example: If the main make is passed a -j4 and the submake -j
491 is also set to 4, we may end up with 16 parallel make processes
495 config PKG_BUILD_JOBS
497 prompt "Number of package submake jobs (2-512)"
500 depends on PKG_BUILD_PARALLEL && !PKG_BUILD_USE_JOBSERVER
502 The number of jobs (-jX) to pass to packages submake.
504 config PKG_DEFAULT_PARALLEL
506 prompt "Parallelize the default package build rule (May break build)"
507 depends on PKG_BUILD_PARALLEL
511 Always set the default package build rules to parallel build.
513 WARNING: This may break build or kill your cat, as it builds
514 packages with multiple jobs that are probably not tested in
515 a parallel build environment.
517 Only say Y, if you don't mind fixing broken packages.
518 Before reporting build bugs, set this to N and re-run the build.
520 comment "Stripping options"
523 prompt "Binary stripping method"
524 default USE_STRIP if EXTERNAL_TOOLCHAIN
525 default USE_STRIP if USE_GLIBC || USE_EGLIBC || USE_MUSL
528 Select the binary stripping method you wish to use.
533 This will install unstripped binaries (useful for native compiling/debugging)
538 This will install binaries stripped using strip from binutils
544 depends on !USE_GLIBC
545 depends on !USE_EGLIBC
547 This will install binaries stripped using sstrip
552 prompt "Strip arguments"
554 default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
555 default "--strip-all"
557 Specifies arguments passed to the strip command when stripping binaries
559 config STRIP_KERNEL_EXPORTS
560 bool "Strip unnecessary exports from the kernel image"
562 Reduces kernel size by stripping unused kernel exports from the kernel image
563 Note that this might make the kernel incompatible with any kernel modules that
564 were not selected at the time the kernel image was created
567 bool "Strip unnecessary functions from libraries"
569 Reduces libraries to only those functions that are necessary for using all
570 selected packages (including those selected as <M>)
571 Note that this will make the system libraries incompatible with most of the packages
572 that are not selected during the build process
576 prompt "Preferred standard C++ library"
577 default USE_LIBSTDCXX if USE_EGLIBC
580 Select the preferred standard C++ library for all packages that support this.
593 bool "Advanced configuration options (for developers)"
597 bool "Show broken platforms / packages" if DEVEL
600 config DOWNLOAD_FOLDER
601 string "Download folder" if DEVEL
605 string "Local mirror for source packages" if DEVEL
609 bool "Automatic rebuild of packages" if DEVEL
612 Automatically rebuild packages when their files change
615 string "Build suffix to append to the BUILD_DIR variable" if DEVEL
618 Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
620 config TARGET_ROOTFS_DIR
621 string "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
624 Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
625 Use this option to re-define the location of the target root file system directory.
628 bool "Use ccache" if DEVEL
631 Compiler cache; see http://ccache.samba.org/
633 config EXTERNAL_KERNEL_TREE
634 string "Use external kernel tree" if DEVEL
637 config KERNEL_GIT_CLONE_URI
638 string "Enter git repository to clone" if DEVEL
641 Enter the full git repository path i.e.:
642 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
643 This will create a git clone of the kernel in your build
646 config KERNEL_GIT_LOCAL_REPOSITORY
647 string "Enter path to local reference repository" if DEVEL
650 Enter a full pathname to a local reference git repository.
651 In this instance, the --refererence option of git clone will
652 be used thus creating a quick local clone of your repo.
655 bool "Enable log files during build process" if DEVEL
657 If enabled log files will be written to the ./log directory
659 config SRC_TREE_OVERRIDE
660 bool "Enable package source tree override" if DEVEL
662 If enabled, you can force a package to use a git tree as source
663 code instead of the normal tarball. Create a symlink 'git-src'
664 in the package directory, pointing to the .git tree that you want
665 to pull the source code from
667 menuconfig TARGET_OPTIONS
668 bool "Target Options" if DEVEL
670 config TARGET_OPTIMIZATION
671 string "Target Optimizations" if TARGET_OPTIONS
672 default DEFAULT_TARGET_OPTIMIZATION
674 Optimizations to use when building for the target host.
677 bool "Use software floating point by default" if TARGET_OPTIONS
679 depends on (arm || armeb || powerpc || mipsel || mips || mips64el || mips64) && !HAS_FPU
681 If your target CPU does not have a Floating Point Unit (FPU) or a
682 kernel FPU emulator, but you still wish to support floating point
683 functions, then everything will need to be compiled with soft floating
684 point support (-msoft-float).
686 Most people will answer N.
689 bool "Build packages with MIPS16 instructions" if TARGET_OPTIONS
690 depends on HAS_MIPS16
692 If your target CPU does support the MIPS16 instruction set
693 and you want to use it for packages, enable this option.
694 MIPS16 produces smaller binaries thus reducing pressure on
697 Most people will answer N.
699 source "toolchain/Config.in"
701 source "target/imagebuilder/Config.in"
702 source "target/sdk/Config.in"
703 source "target/toolchain/Config.in"
705 source "tmp/.config-package.in"