build: add a config option for passing the top-level make jobserver to packages that...
[openwrt.git] / Config.in
1 # Copyright (C) 2006-2010 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6
7 mainmenu "OpenWrt Configuration"
8
9 config HAVE_DOT_CONFIG
10         bool
11         default y
12
13 source "target/Config.in"
14
15 menu "Target Images"
16
17         menuconfig TARGET_ROOTFS_INITRAMFS
18                 bool "ramdisk"
19                 default y if USES_INITRAMFS
20                 help
21                   Embed the rootfs into the kernel (initramfs)
22
23                 choice
24                         prompt "Compression"
25                         default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ar71xx
26                         default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
27                         default TARGET_INITRAMFS_COMPRESSION_NONE
28                         depends TARGET_ROOTFS_INITRAMFS
29                         help
30                           Select ramdisk compression.
31
32                         config TARGET_INITRAMFS_COMPRESSION_NONE
33                                 bool "none"
34
35                         config TARGET_INITRAMFS_COMPRESSION_GZIP
36                                 bool "gzip"
37
38                         config TARGET_INITRAMFS_COMPRESSION_BZIP2
39                                 bool "bzip2"
40
41                         config TARGET_INITRAMFS_COMPRESSION_LZMA
42                                 bool "lzma"
43
44                         config TARGET_INITRAMFS_COMPRESSION_LZO
45                                 bool "lzo"
46
47                         config TARGET_INITRAMFS_COMPRESSION_XZ
48                                 bool "xz"
49                 endchoice
50
51                 config EXTERNAL_CPIO
52                         string
53                         prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
54                         default ""
55                         help
56                           Kernel uses specified external cpio as INITRAMFS_SOURCE
57
58         comment "Root filesystem archives"
59
60         config TARGET_ROOTFS_CPIOGZ
61                 bool "cpio.gz"
62                 default y if USES_CPIOGZ
63                 help
64                   Build a compressed cpio archive of the the root filesystem
65
66         config TARGET_ROOTFS_TARGZ
67                 bool "tar.gz"
68                 default y if USES_TARGZ
69                 help
70                   Build a compressed tar archive of the the root filesystem
71
72         comment "Root filesystem images"
73
74         config TARGET_ROOTFS_EXT4FS
75                 bool "ext4"
76                 default y if USES_EXT4
77                 depends !TARGET_ROOTFS_INITRAMFS
78                 help
79                   Ext4 file system with some free space for uml images
80
81         config TARGET_ROOTFS_ISO
82                 bool "iso"
83                 default n
84                 depends TARGET_ROOTFS_INITRAMFS && TARGET_x86
85                 help
86                   Create some bootable ISO image
87
88         config TARGET_ROOTFS_JFFS2
89                 bool "jffs2"
90                 default y if USES_JFFS2
91                 depends !TARGET_ROOTFS_INITRAMFS
92                 help
93                   Build a jffs2 root filesystem
94
95         config TARGET_ROOTFS_SQUASHFS
96                 bool "squashfs"
97                 default y if USES_SQUASHFS
98                 depends !TARGET_ROOTFS_INITRAMFS
99                 help
100                   Build a squashfs-lzma root filesystem
101
102         config TARGET_ROOTFS_UBIFS
103                 bool "ubifs"
104                 default y if USES_UBIFS
105                 depends !TARGET_ROOTFS_INITRAMFS && USES_UBIFS
106                 help
107                   Build a ubifs root filesystem
108
109         comment "Image Options"
110
111         source "target/linux/*/image/Config.in"
112
113         config TARGET_ROOTFS_PARTSIZE
114                 int "Root filesystem partition size (in MB)"
115                 depends X86_GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
116                 default 48
117                 help
118                     Allows you to change the root filesystem partition size
119
120         config TARGET_ROOTFS_MAXINODE
121                 int "Maximum number of inodes in root filesystem"
122                 depends TARGET_ROOTFS_EXT4FS
123                 default 6000
124                 help
125                     Allows you to change the maximum number of inodes in the root filesystem
126
127 endmenu
128
129 menu "Global build settings"
130
131         config ALL
132                 bool "Select all packages by default"
133                 default n
134
135         comment "General build options"
136
137         config DISPLAY_SUPPORT
138                 bool "Show packages that require graphics support (local or remote)"
139                 default n
140
141         config BUILD_PATENTED
142                 default y
143                 bool "Compile with support for patented functionality"
144                 help
145                   When this option is disabled, software which provides patented functionality will not be built.
146                   In case software provides optional support for patented functionality,
147                   this optional support will get disabled for this package.
148
149         config BUILD_NLS
150                 default n
151                 bool "Compile with full language support"
152                 help
153                   When this option is enabled, packages are built with the full versions of iconv and GNU gettext
154                   instead of the default OpenWrt stubs. If uClibc is used, it is also built with locale support.
155
156         config BUILD_STATIC_TOOLS
157                 default n
158                 bool "Attempt to link host utilities statically"
159                 help
160                   Linking host utilities like sed or firmware-utils statically increases the portability of the
161                   generated ImageBuilder and SDK tarballs, however it may fail on some Linux distributions.
162
163         config SHADOW_PASSWORDS
164                 bool
165                 prompt "Enable shadow password support"
166                 default y
167                 help
168                   Enable shadow password support.
169
170         config CLEAN_IPKG
171                 bool
172                 prompt "Remove ipkg/opkg status data files in final images"
173                 default n
174                 help
175                         This removes all ipkg/opkg status data files from the target directory before building the root fs
176
177         config COLLECT_KERNEL_DEBUG
178                 bool
179                 prompt "Collect kernel debug information"
180                 select KERNEL_DEBUG_INFO
181                 default n
182                 help
183                         This collects debugging symbols from the kernel and all compiled modules.
184                         Useful for release builds, so that kernel issues can be debugged offline later.
185
186         comment "Kernel build options"
187
188         config KERNEL_DEBUG_FS
189                 bool "Compile the kernel with Debug FileSystem enabled"
190                 default y
191                 help
192                   debugfs is a virtual file system that kernel developers use to put
193                   debugging files into. Enable this option to be able to read and
194                   write to these files.
195
196         config KERNEL_PROFILING
197                 bool "Compile the kernel with profiling enabled"
198                 default n
199                 help
200                   Enable the extended profiling support mechanisms used by profilers such
201                   as OProfile.
202
203         config KERNEL_KALLSYMS
204                 bool "Compile the kernel with symbol table information"
205                 default n
206                 help
207                   This will give you more information in stack traces from kernel oopses
208
209         config KERNEL_FTRACE
210                 bool "Compile the kernel with tracing support"
211                 default n
212
213         config KERNEL_ENABLE_DEFAULT_TRACERS
214                 bool "Trace process context switches and events"
215                 depends on KERNEL_FTRACE
216                 default n
217
218         config KERNEL_DEBUG_KERNEL
219                 bool
220                 default n
221
222         config KERNEL_DEBUG_INFO
223                 bool "Compile the kernel with debug information"
224                 default n
225                 select KERNEL_DEBUG_KERNEL
226                 help
227                   This will compile your kernel and modules with debug information.
228
229         config KERNEL_DEBUG_LL_UART_NONE
230                 bool
231                 default n
232                 depends on arm
233
234         config KERNEL_DEBUG_LL
235                 bool
236                 default n
237                 depends on arm
238                 select KERNEL_DEBUG_LL_UART_NONE
239                 help
240                   ARM low level debugging
241
242         config KERNEL_EARLY_PRINTK
243                 bool "Compile the kernel with early printk"
244                 default n
245                 depends on arm
246                 select KERNEL_DEBUG_KERNEL
247                 select KERNEL_DEBUG_LL if arm
248                 help
249                   Compile the kernel with early printk support.
250                   This is only useful for debugging purposes to send messages
251                   over the serial console in early boot.
252                   Enable this to debug early boot problems.
253
254         config KERNEL_AIO
255                 bool "Compile the kernel with asynchronous IO support"
256                 default n
257
258         config KERNEL_MAGIC_SYSRQ
259                 bool "Compile the kernel with SysRq support"
260                 default y
261
262         config KERNEL_ELF_CORE
263                 bool "Enable process core dump support"
264                 default y
265
266         config KERNEL_PROVE_LOCKING
267                 bool "Enable kernel lock checking"
268                 select KERNEL_DEBUG_KERNEL
269                 default n
270
271         config KERNEL_PRINTK_TIME
272                 bool "Enable printk timestamps"
273                 default y
274
275         comment "Package build options"
276
277         config DEBUG
278                 bool
279                 prompt "Compile packages with debugging info"
280                 default n
281                 help
282                   Adds -g3 to the CFLAGS
283
284         config IPV6
285                 bool
286                 prompt "Enable IPv6 support in packages"
287                 default y
288                 help
289                   Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
290
291         config PKG_BUILD_PARALLEL
292                 bool
293                 prompt "Compile certain packages parallelized"
294                 default n
295                 help
296                   This adds a -jX option to certain packages that are known to
297                   behave well for parallel build.
298
299                   Note that this may overcommit CPU resources depending on the
300                   -j level of the main make process, the number of package
301                   submake jobs selected below and the number of actual CPUs present.
302                   Example: If the main make is passed a -j4 and the submake -j
303                   is also set to 4, we may end up with 16 parallel make processes
304                   in the worst case.
305
306                   You get maximum build performance, if you set the package build
307                   jobs to the number of CPUs (cores) available and also start the main
308                   make process with -jX, where X is the number of CPUs (cores).
309                   However, make sure you have enough RAM available for
310                   NR_CPUS to the power of two (NR_CPUS^2) make jobs.
311
312                   If you are unsure, select N.
313
314         config PKG_BUILD_USE_JOBSERVER
315                 bool
316                 prompt "Use top-level make jobserver for packages"
317                 depends on PKG_BUILD_PARALLEL
318                 default y
319                 help
320                   This passes the main make process jobserver fds to package builds,
321                   enabling full parallelization across different packages
322
323         config PKG_BUILD_JOBS
324                 int
325                 prompt "Number of package submake jobs (2-512)"
326                 range 2 512
327                 default 2
328                 depends on PKG_BUILD_PARALLEL && !PKG_BUILD_USE_JOBSERVER
329                 help
330                   The number of jobs (-jX) to pass to packages submake.
331
332         config PKG_DEFAULT_PARALLEL
333                 bool
334                 prompt "Parallelize the default package build rule (May break build)"
335                 depends on PKG_BUILD_PARALLEL
336                 depends on BROKEN
337                 default n
338                 help
339                   Always set the default package build rules to parallel build.
340
341                   WARNING: This may break build or kill your cat, as it builds
342                   packages with multiple jobs that are probably not tested in
343                   a parallel build environment.
344
345                   Only say Y, if you don't mind fixing broken packages.
346                   Before reporting build bugs, set this to N and re-run the build.
347
348         config TOOLCHAIN_PARALLEL
349                 bool
350                 prompt "Parallelize the toolchain build (May break build)"
351                 depends on PKG_BUILD_PARALLEL
352                 depends on BROKEN
353                 default n
354                 help
355                   Build the toolchain with parallel make jobs.
356                   This speeds up the toolchain build on SMP machines, but may
357                   break the build for certain toolchain versions.
358
359                   If you say Y, toolchain build might break.
360                   Before reporting build bugs, set this to N and re-run the build.
361
362         comment "Stripping options"
363
364         choice
365                 prompt "Binary stripping method"
366                 default USE_STRIP   if EXTERNAL_TOOLCHAIN
367                 default USE_STRIP   if USE_GLIBC || USE_EGLIBC
368                 default USE_SSTRIP
369                 help
370                   Select the binary stripping method you wish to use.
371
372                 config NO_STRIP
373                         bool "none"
374                         help
375                           This will install unstripped binaries (useful for native compiling/debugging)
376
377                 config USE_STRIP
378                         bool "strip"
379                         help
380                           This will install binaries stripped using strip from binutils
381
382
383                 config USE_SSTRIP
384                         bool "sstrip"
385                         depends !DEBUG
386                         depends !USE_GLIBC
387                         depends !USE_EGLIBC
388                         help
389                           This will install binaries stripped using sstrip
390         endchoice
391
392         config STRIP_ARGS
393                 string
394                 prompt "Strip arguments"
395                 depends USE_STRIP
396                 default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
397                 default "--strip-all"
398                 help
399                   Specifies arguments passed to the strip command when stripping binaries
400
401         config STRIP_KERNEL_EXPORTS
402                 bool "Strip unnecessary exports from the kernel image"
403                 help
404                   Reduces kernel size by stripping unused kernel exports from the kernel image
405                   Note that this might make the kernel incompatible with any kernel modules that
406                   were not selected at the time the kernel image was created
407
408         config USE_MKLIBS
409                 bool "Strip unnecessary functions from libraries"
410                 help
411                   Reduces libraries to only those functions that are necessary for using all
412                   selected packages (including those selected as <M>)
413                   Note that this will make the system libraries incompatible with most of the packages
414                   that are not selected during the build process
415
416         choice
417                 prompt "Preferred standard C++ library"
418                 default USE_LIBSTDCXX if USE_EGLIBC
419                 default USE_UCLIBCXX
420                 help
421                   Select the preferred standard C++ library for all packages that support this.
422
423                 config USE_UCLIBCXX
424                         bool "uClibc++"
425
426                 config USE_LIBSTDCXX
427                         bool "libstdc++"
428
429         endchoice
430
431 endmenu
432
433 menuconfig DEVEL
434         bool "Advanced configuration options (for developers)"
435         default n
436
437         config BROKEN
438                 bool "Show broken platforms / packages" if DEVEL
439                 default n
440
441         config DOWNLOAD_FOLDER
442                 string "Download folder" if DEVEL
443                 default ""
444
445         config LOCALMIRROR
446                 string "Local mirror for source packages" if DEVEL
447                 default ""
448
449         config AUTOREBUILD
450                 bool "Automatic rebuild of packages" if DEVEL
451                 default y
452                 help
453                   Automatically rebuild packages when their files change
454
455         config BUILD_SUFFIX
456                 string "Build suffix to append to the BUILD_DIR variable" if DEVEL
457                 default ""
458                 help
459                   Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
460
461         config TARGET_ROOTFS_DIR
462                 string "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
463                 default ""
464                 help
465                   Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
466                   Use this option to re-define the location of the target root file system directory.
467
468         config CCACHE
469                 bool "Use ccache" if DEVEL
470                 default n
471                 help
472                   Compiler cache; see http://ccache.samba.org/
473
474         config EXTERNAL_KERNEL_TREE
475                 string "Use external kernel tree" if DEVEL
476                 default ""
477
478         config KERNEL_GIT_CLONE_URI
479                 string "Enter git repository to clone" if DEVEL
480                 default ""
481                 help
482                   Enter the full git repository path i.e.:
483                   git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
484                   This will create a git clone of the kernel in your build
485                   directory.
486
487         config KERNEL_GIT_LOCAL_REPOSITORY
488                 string "Enter path to local reference repository" if DEVEL
489                 default ""
490                 help
491                   Enter a full pathname to a local reference git repository.
492                   In this instance, the --refererence option of git clone will
493                   be used thus creating a quick local clone of your repo.
494
495         config BUILD_LOG
496                 bool "Enable log files during build process" if DEVEL
497                 help
498                   If enabled log files will be written to the ./log directory
499
500         config SRC_TREE_OVERRIDE
501                 bool "Enable package source tree override" if DEVEL
502                 help
503                   If enabled, you can force a package to use a git tree as source
504                   code instead of the normal tarball. Create a symlink 'git-src'
505                   in the package directory, pointing to the .git tree that you want
506                   to pull the source code from
507
508 menuconfig TARGET_OPTIONS
509         bool "Target Options"  if DEVEL
510
511         config TARGET_OPTIMIZATION
512                 string "Target Optimizations" if TARGET_OPTIONS
513                 default DEFAULT_TARGET_OPTIMIZATION
514                 help
515                   Optimizations to use when building for the target host.
516
517         config SOFT_FLOAT
518                 bool "Use software floating point by default" if TARGET_OPTIONS
519                 default y
520                 depends on (arm || armeb || powerpc || mipsel || mips) && !HAS_FPU
521                 help
522                   If your target CPU does not have a Floating Point Unit (FPU) or a
523                   kernel FPU emulator, but you still wish to support floating point
524                   functions, then everything will need to be compiled with soft floating
525                   point support (-msoft-float).
526
527                   Most people will answer N.
528
529 source "toolchain/Config.in"
530
531 source "target/imagebuilder/Config.in"
532 source "target/sdk/Config.in"
533 source "target/toolchain/Config.in"
534
535 source "tmp/.config-package.in"