[tools] mkimage: fix md5sum after r37361
[openwrt.git] / Config.in
1 # Copyright (C) 2006-2012 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 MODULES
10         bool
11         default y
12
13 config HAVE_DOT_CONFIG
14         bool
15         default y
16
17 source "target/Config.in"
18
19 menu "Target Images"
20
21         menuconfig TARGET_ROOTFS_INITRAMFS
22                 bool "ramdisk"
23                 default y if USES_INITRAMFS
24                 help
25                   Embed the rootfs into the kernel (initramfs)
26
27                 choice
28                         prompt "Compression"
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
33                         help
34                           Select ramdisk compression.
35
36                         config TARGET_INITRAMFS_COMPRESSION_NONE
37                                 bool "none"
38
39                         config TARGET_INITRAMFS_COMPRESSION_GZIP
40                                 bool "gzip"
41
42                         config TARGET_INITRAMFS_COMPRESSION_BZIP2
43                                 bool "bzip2"
44
45                         config TARGET_INITRAMFS_COMPRESSION_LZMA
46                                 bool "lzma"
47
48                         config TARGET_INITRAMFS_COMPRESSION_LZO
49                                 bool "lzo"
50
51                         config TARGET_INITRAMFS_COMPRESSION_XZ
52                                 bool "xz"
53                 endchoice
54
55                 config EXTERNAL_CPIO
56                         string
57                         prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
58                         default ""
59                         help
60                           Kernel uses specified external cpio as INITRAMFS_SOURCE
61
62         comment "Root filesystem archives"
63
64         config TARGET_ROOTFS_CPIOGZ
65                 bool "cpio.gz"
66                 default y if USES_CPIOGZ
67                 help
68                   Build a compressed cpio archive of the the root filesystem
69
70         config TARGET_ROOTFS_TARGZ
71                 bool "tar.gz"
72                 default y if USES_TARGZ
73                 help
74                   Build a compressed tar archive of the the root filesystem
75
76         comment "Root filesystem images"
77
78         config TARGET_ROOTFS_EXT4FS
79                 bool "ext4"
80                 default y if USES_EXT4
81                 help
82                   Ext4 file system with some free space for uml images
83
84         config TARGET_ROOTFS_ISO
85                 bool "iso"
86                 default n
87                 depends on TARGET_x86_generic
88                 help
89                   Create some bootable ISO image
90
91         config TARGET_ROOTFS_JFFS2
92                 bool "jffs2"
93                 default y if USES_JFFS2
94                 help
95                   Build a jffs2 root filesystem
96
97         config TARGET_ROOTFS_JFFS2_NAND
98                 bool "jffs2 for NAND"
99                 default y if USES_JFFS2_NAND
100                 depends on USES_JFFS2_NAND
101                 help
102                   Build a jffs2 root filesystem for NAND flash
103
104         config TARGET_ROOTFS_SQUASHFS
105                 bool "squashfs"
106                 default y if USES_SQUASHFS
107                 help
108                   Build a squashfs-lzma root filesystem
109
110         config TARGET_ROOTFS_UBIFS
111                 bool "ubifs"
112                 default y if USES_UBIFS
113                 depends on USES_UBIFS
114                 help
115                   Build a ubifs root filesystem
116
117         comment "Image Options"
118
119         source "target/linux/*/image/Config.in"
120
121         config TARGET_ROOTFS_PARTSIZE
122                 int "Root filesystem partition size (in MB)"
123                 depends on X86_GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
124                 default 48
125                 help
126                   Allows you to change the root filesystem partition size
127
128         config TARGET_ROOTFS_MAXINODE
129                 int "Maximum number of inodes in root filesystem"
130                 depends on TARGET_ROOTFS_EXT4FS
131                 default 6000
132                 help
133                   Allows you to change the maximum number of inodes in the root filesystem
134
135         config TARGET_ROOTFS_RESERVED_PCT
136                 int "Percentage of reserved blocks in root filesystem"
137                 depends on TARGET_ROOTFS_EXT4FS
138                 default 0
139                 help
140                   Allows you to change the percentage of reserved blocks in the root filesystem
141
142         config TARGET_ROOTFS_INCLUDE_KERNEL
143                 bool "include kernel in rootfs"
144                 depends TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
145                 default n if USES_UBIFS
146                 help
147                   Include the kernel image in the rootfs
148
149         config TARGET_ROOTFS_INCLUDE_DTB
150                 bool "include dtb in rootfs"
151                 depends TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
152                 default n if USES_UBIFS
153                 help
154                   Include the device tree blob file in the rootfs
155
156 endmenu
157
158 menu "Global build settings"
159
160         config ALL
161                 bool "Select all packages by default"
162                 default n
163
164         comment "General build options"
165
166         config DISPLAY_SUPPORT
167                 bool "Show packages that require graphics support (local or remote)"
168                 default n
169
170         config BUILD_PATENTED
171                 default y
172                 bool "Compile with support for patented functionality"
173                 help
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.
177
178         config BUILD_NLS
179                 default n
180                 bool "Compile with full language support"
181                 help
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.
184
185         config BUILD_STATIC_TOOLS
186                 default n
187                 bool "Attempt to link host utilities statically"
188                 help
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.
191
192         config SHADOW_PASSWORDS
193                 bool
194                 prompt "Enable shadow password support"
195                 default y
196                 help
197                   Enable shadow password support.
198
199         config CLEAN_IPKG
200                 bool
201                 prompt "Remove ipkg/opkg status data files in final images"
202                 default n
203                 help
204                   This removes all ipkg/opkg status data files from the target directory before building the root fs
205
206         config COLLECT_KERNEL_DEBUG
207                 bool
208                 prompt "Collect kernel debug information"
209                 select KERNEL_DEBUG_INFO
210                 default n
211                 help
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.
214
215         comment "Kernel build options"
216
217         config KERNEL_DEBUG_FS
218                 bool "Compile the kernel with Debug FileSystem enabled"
219                 default y
220                 help
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.
224
225         config KERNEL_PERF_EVENTS
226                 bool
227                 default n
228
229         config KERNEL_PROFILING
230                 bool "Compile the kernel with profiling enabled"
231                 default n
232                 select KERNEL_PERF_EVENTS
233                 help
234                   Enable the extended profiling support mechanisms used by profilers such
235                   as OProfile.
236
237         config KERNEL_KALLSYMS
238                 bool "Compile the kernel with symbol table information"
239                 default y
240                 help
241                   This will give you more information in stack traces from kernel oopses
242
243         config KERNEL_FTRACE
244                 bool "Compile the kernel with tracing support"
245                 default n
246
247         config KERNEL_FTRACE_SYSCALLS
248                 bool "Trace system calls"
249                 depends on KERNEL_FTRACE
250                 default n
251
252         config KERNEL_ENABLE_DEFAULT_TRACERS
253                 bool "Trace process context switches and events"
254                 depends on KERNEL_FTRACE
255                 default n
256
257         config KERNEL_DEBUG_KERNEL
258                 bool
259                 default n
260
261         config KERNEL_DEBUG_INFO
262                 bool "Compile the kernel with debug information"
263                 default y
264                 select KERNEL_DEBUG_KERNEL
265                 help
266                   This will compile your kernel and modules with debug information.
267
268         config KERNEL_DEBUG_LL_UART_NONE
269                 bool
270                 default n
271                 depends on arm
272
273         config KERNEL_DEBUG_LL
274                 bool
275                 default n
276                 depends on arm
277                 select KERNEL_DEBUG_LL_UART_NONE
278                 help
279                   ARM low level debugging
280
281         config KERNEL_EARLY_PRINTK
282                 bool "Compile the kernel with early printk"
283                 default n
284                 depends on arm
285                 select KERNEL_DEBUG_KERNEL
286                 select KERNEL_DEBUG_LL if arm
287                 help
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.
292
293         config KERNEL_AIO
294                 bool "Compile the kernel with asynchronous IO support"
295                 default n
296
297         config KERNEL_DIRECT_IO
298                 bool "Compile the kernel with direct IO support"
299                 default n
300
301         config KERNEL_MAGIC_SYSRQ
302                 bool "Compile the kernel with SysRq support"
303                 default y
304
305         config KERNEL_COREDUMP
306                 bool
307
308         config KERNEL_ELF_CORE
309                 bool "Enable process core dump support"
310                 select KERNEL_COREDUMP
311                 default y
312
313         config KERNEL_PROVE_LOCKING
314                 bool "Enable kernel lock checking"
315                 select KERNEL_DEBUG_KERNEL
316                 default n
317
318         config KERNEL_PRINTK_TIME
319                 bool "Enable printk timestamps"
320                 default y
321
322         config KERNEL_RELAY
323                 bool
324
325         config KERNEL_KEXEC
326                 bool "Enable kexec support"
327
328         #
329         # CGROUP support symbols
330         #
331
332         config KERNEL_CGROUPS
333                 bool "Enable kernel cgroups"
334                 default n
335
336         if KERNEL_CGROUPS
337
338                 config KERNEL_CGROUP_DEBUG
339                         bool "Example debug cgroup subsystem"
340                         default n
341                         help
342                           This option enables a simple cgroup subsystem that
343                           exports useful debugging information about the cgroups
344                           framework.
345
346                 config KERNEL_FREEZER
347                         bool
348                         default y if KERNEL_CGROUP_FREEZER
349
350                 config KERNEL_CGROUP_FREEZER
351                         bool "Freezer cgroup subsystem"
352                         default n
353                         help
354                           Provides a way to freeze and unfreeze all tasks in a
355                           cgroup.
356
357                 config KERNEL_CGROUP_DEVICE
358                         bool "Device controller for cgroups"
359                         default y
360                         help
361                           Provides a cgroup implementing whitelists for devices which
362                           a process in the cgroup can mknod or open.
363
364                 config KERNEL_CPUSETS
365                         bool "Cpuset support"
366                         default n
367                         help
368                           This option will let you create and manage CPUSETs which
369                           allow dynamically partitioning a system into sets of CPUs and
370                           Memory Nodes and assigning tasks to run only within those sets.
371                           This is primarily useful on large SMP or NUMA systems.
372
373                 config KERNEL_PROC_PID_CPUSET
374                         bool "Include legacy /proc/<pid>/cpuset file"
375                         default n
376                         depends on KERNEL_CPUSETS
377
378                 config KERNEL_CGROUP_CPUACCT
379                         bool "Simple CPU accounting cgroup subsystem"
380                         default n
381                         help
382                           Provides a simple Resource Controller for monitoring the
383                           total CPU consumed by the tasks in a cgroup.
384
385                 config KERNEL_RESOURCE_COUNTERS
386                         bool "Resource counters"
387                         default n
388                         help
389                           This option enables controller independent resource accounting
390                           infrastructure that works with cgroups.
391
392                 config KERNEL_MM_OWNER
393                         bool
394                         default y if KERNEL_MEMCG
395
396                 config KERNEL_MEMCG
397                         bool "Memory Resource Controller for Control Groups"
398                         default n
399                         depends on KERNEL_RESOURCE_COUNTERS
400                         help
401                           Provides a memory resource controller that manages both anonymous
402                           memory and page cache. (See Documentation/cgroups/memory.txt)
403
404                           Note that setting this option increases fixed memory overhead
405                           associated with each page of memory in the system. By this,
406                           20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
407                           usage tracking struct at boot. Total amount of this is printed out
408                           at boot.
409
410                           Only enable when you're ok with these trade offs and really
411                           sure you need the memory resource controller. Even when you enable
412                           this, you can set "cgroup_disable=memory" at your boot option to
413                           disable memory resource controller and you can avoid overheads.
414                           (and lose benefits of memory resource controller)
415
416                           This config option also selects MM_OWNER config option, which
417                           could in turn add some fork/exit overhead.
418
419                 config KERNEL_MEMCG_SWAP
420                         bool "Memory Resource Controller Swap Extension"
421                         default n
422                         depends on KERNEL_MEMCG
423                         help
424                           Add swap management feature to memory resource controller. When you
425                           enable this, you can limit mem+swap usage per cgroup. In other words,
426                           when you disable this, memory resource controller has no cares to
427                           usage of swap...a process can exhaust all of the swap. This extension
428                           is useful when you want to avoid exhaustion swap but this itself
429                           adds more overheads and consumes memory for remembering information.
430                           Especially if you use 32bit system or small memory system, please
431                           be careful about enabling this. When memory resource controller
432                           is disabled by boot option, this will be automatically disabled and
433                           there will be no overhead from this. Even when you set this config=y,
434                           if boot option "swapaccount=0" is set, swap will not be accounted.
435                           Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
436                           size is 4096bytes, 512k per 1Gbytes of swap.
437
438                 config KERNEL_MEMCG_SWAP_ENABLED
439                         bool "Memory Resource Controller Swap Extension enabled by default"
440                         default n
441                         depends on KERNEL_MEMCG_SWAP
442                         help
443                           Memory Resource Controller Swap Extension comes with its price in
444                           a bigger memory consumption. General purpose distribution kernels
445                           which want to enable the feature but keep it disabled by default
446                           and let the user enable it by swapaccount boot command line
447                           parameter should have this option unselected.
448                           For those who want to have the feature enabled by default should
449                           select this option (if, for some reason, they need to disable it
450                           then swapaccount=0 does the trick).
451
452
453                 config KERNEL_MEMCG_KMEM
454                         bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)"
455                         default n
456                         depends on KERNEL_MEMCG
457                         help
458                           The Kernel Memory extension for Memory Resource Controller can limit
459                           the amount of memory used by kernel objects in the system. Those are
460                           fundamentally different from the entities handled by the standard
461                           Memory Controller, which are page-based, and can be swapped. Users of
462                           the kmem extension can use it to guarantee that no group of processes
463                           will ever exhaust kernel resources alone.
464
465                 config KERNEL_CGROUP_PERF
466                         bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
467                         default n
468                         select KERNEL_PERF_EVENTS
469                         help
470                           This option extends the per-cpu mode to restrict monitoring to
471                           threads which belong to the cgroup specified and run on the
472                           designated cpu.
473
474                 menuconfig KERNEL_CGROUP_SCHED
475                         bool "Group CPU scheduler"
476                         default n
477                         help
478                           This feature lets CPU scheduler recognize task groups and control CPU
479                           bandwidth allocation to such task groups. It uses cgroups to group
480                           tasks.
481
482                 if KERNEL_CGROUP_SCHED
483
484                         config KERNEL_FAIR_GROUP_SCHED
485                                 bool "Group scheduling for SCHED_OTHER"
486                                 default n
487
488                         config KERNEL_CFS_BANDWIDTH
489                                 bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
490                                 default n
491                                 depends on KERNEL_FAIR_GROUP_SCHED
492                                 help
493                                   This option allows users to define CPU bandwidth rates (limits) for
494                                   tasks running within the fair group scheduler.  Groups with no limit
495                                   set are considered to be unconstrained and will run with no
496                                   restriction.
497                                   See tip/Documentation/scheduler/sched-bwc.txt for more information.
498
499                         config KERNEL_RT_GROUP_SCHED
500                                 bool "Group scheduling for SCHED_RR/FIFO"
501                                 default n
502                                 help
503                                   This feature lets you explicitly allocate real CPU bandwidth
504                                   to task groups. If enabled, it will also make it impossible to
505                                   schedule realtime tasks for non-root users until you allocate
506                                   realtime bandwidth for them.
507
508                 endif
509
510                 config KERNEL_BLK_CGROUP
511                         bool "Block IO controller"
512                         default y
513                         help
514                           Generic block IO controller cgroup interface. This is the common
515                           cgroup interface which should be used by various IO controlling
516                           policies.
517
518                           Currently, CFQ IO scheduler uses it to recognize task groups and
519                           control disk bandwidth allocation (proportional time slice allocation)
520                           to such task groups. It is also used by bio throttling logic in
521                           block layer to implement upper limit in IO rates on a device.
522
523                           This option only enables generic Block IO controller infrastructure.
524                           One needs to also enable actual IO controlling logic/policy. For
525                           enabling proportional weight division of disk bandwidth in CFQ, set
526                           CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
527                           CONFIG_BLK_DEV_THROTTLING=y.
528
529                 config KERNEL_DEBUG_BLK_CGROUP
530                         bool "Enable Block IO controller debugging"
531                         default n
532                         depends on KERNEL_BLK_CGROUP
533                         help
534                           Enable some debugging help. Currently it exports additional stat
535                           files in a cgroup which can be useful for debugging.
536
537                 config KERNEL_NET_CLS_CGROUP
538                         bool "Control Group Classifier"
539                         default y
540
541                 config KERNEL_NETPRIO_CGROUP
542                         bool "Network priority cgroup"
543                         default y
544
545         endif
546
547         #
548         # Namespace support symbols
549         #
550
551         config KERNEL_NAMESPACES
552                 bool "Enable kernel namespaces"
553                 default n
554
555         if KERNEL_NAMESPACES
556
557                 config KERNEL_UTS_NS
558                         bool "UTS namespace"
559                         default y
560                         help
561                           In this namespace tasks see different info provided
562                           with the uname() system call
563
564                 config KERNEL_IPC_NS
565                         bool "IPC namespace"
566                         default y
567                         help
568                           In this namespace tasks work with IPC ids which correspond to
569                           different IPC objects in different namespaces.
570
571                 config KERNEL_USER_NS
572                         bool "User namespace (EXPERIMENTAL)"
573                         default y
574                         help
575                           This allows containers, i.e. vservers, to use user namespaces
576                           to provide different user info for different servers.
577
578                 config KERNEL_PID_NS
579                         bool "PID Namespaces"
580                         default y
581                         help
582                           Support process id namespaces. This allows having multiple
583                           processes with the same pid as long as they are in different
584                           pid namespaces. This is a building block of containers.
585
586                 config KERNEL_NET_NS
587                         bool "Network namespace"
588                         default y
589                         help
590                           Allow user space to create what appear to be multiple instances
591                           of the network stack.
592
593         endif
594
595         #
596         # LXC related symbols
597         #
598
599         config KERNEL_LXC_MISC
600                 bool "Enable miscellaneous LXC related options"
601                 default n
602
603         if KERNEL_LXC_MISC
604
605                 config KERNEL_DEVPTS_MULTIPLE_INSTANCES
606                         bool "Support multiple instances of devpts"
607                         default y
608                         help
609                           Enable support for multiple instances of devpts filesystem.
610                           If you want to have isolated PTY namespaces (eg: in containers),
611                           say Y here. Otherwise, say N. If enabled, each mount of devpts
612                           filesystem with the '-o newinstance' option will create an
613                           independent PTY namespace.
614
615                 config KERNEL_POSIX_MQUEUE
616                         bool "POSIX Message Queues"
617                         default n
618                         help
619                           POSIX variant of message queues is a part of IPC. In POSIX message
620                           queues every message has a priority which decides about succession
621                           of receiving it by a process. If you want to compile and run
622                           programs written e.g. for Solaris with use of its POSIX message
623                           queues (functions mq_*) say Y here.
624
625                           POSIX message queues are visible as a filesystem called 'mqueue'
626                           and can be mounted somewhere if you want to do filesystem
627                           operations on message queues.
628
629         endif
630
631         comment "Package build options"
632
633         config DEBUG
634                 bool
635                 prompt "Compile packages with debugging info"
636                 default n
637                 help
638                   Adds -g3 to the CFLAGS
639
640         config IPV6
641                 bool
642                 prompt "Enable IPv6 support in packages"
643                 default y
644                 help
645                   Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
646
647         config PKG_BUILD_PARALLEL
648                 bool
649                 prompt "Compile certain packages parallelized"
650                 default y
651                 help
652                   This adds a -jX option to certain packages that are known to
653                   behave well for parallel build. By default the package make processes
654                   use the main jobserver, in which case this option only takes effect
655                   when you add -jX to the make command.
656
657                   If you are unsure, select N.
658
659         config PKG_BUILD_USE_JOBSERVER
660                 bool
661                 prompt "Use top-level make jobserver for packages"
662                 depends on PKG_BUILD_PARALLEL
663                 default y
664                 help
665                   This passes the main make process jobserver fds to package builds,
666                   enabling full parallelization across different packages
667
668                   Note that disabling this may overcommit CPU resources depending on the
669                   -j level of the main make process, the number of package
670                   submake jobs selected below and the number of actual CPUs present.
671                   Example: If the main make is passed a -j4 and the submake -j
672                   is also set to 4, we may end up with 16 parallel make processes
673                   in the worst case.
674
675
676         config PKG_BUILD_JOBS
677                 int
678                 prompt "Number of package submake jobs (2-512)"
679                 range 2 512
680                 default 2
681                 depends on PKG_BUILD_PARALLEL && !PKG_BUILD_USE_JOBSERVER
682                 help
683                   The number of jobs (-jX) to pass to packages submake.
684
685         config PKG_DEFAULT_PARALLEL
686                 bool
687                 prompt "Parallelize the default package build rule (May break build)"
688                 depends on PKG_BUILD_PARALLEL
689                 depends on BROKEN
690                 default n
691                 help
692                   Always set the default package build rules to parallel build.
693
694                   WARNING: This may break build or kill your cat, as it builds
695                   packages with multiple jobs that are probably not tested in
696                   a parallel build environment.
697
698                   Only say Y, if you don't mind fixing broken packages.
699                   Before reporting build bugs, set this to N and re-run the build.
700
701         comment "Stripping options"
702
703         choice
704                 prompt "Binary stripping method"
705                 default USE_STRIP   if EXTERNAL_TOOLCHAIN
706                 default USE_STRIP   if USE_GLIBC || USE_EGLIBC || USE_MUSL
707                 default USE_SSTRIP
708                 help
709                   Select the binary stripping method you wish to use.
710
711                 config NO_STRIP
712                         bool "none"
713                         help
714                           This will install unstripped binaries (useful for native compiling/debugging)
715
716                 config USE_STRIP
717                         bool "strip"
718                         help
719                           This will install binaries stripped using strip from binutils
720
721
722                 config USE_SSTRIP
723                         bool "sstrip"
724                         depends on !DEBUG
725                         depends on !USE_GLIBC
726                         depends on !USE_EGLIBC
727                         help
728                           This will install binaries stripped using sstrip
729         endchoice
730
731         config STRIP_ARGS
732                 string
733                 prompt "Strip arguments"
734                 depends on USE_STRIP
735                 default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
736                 default "--strip-all"
737                 help
738                   Specifies arguments passed to the strip command when stripping binaries
739
740         config STRIP_KERNEL_EXPORTS
741                 bool "Strip unnecessary exports from the kernel image"
742                 help
743                   Reduces kernel size by stripping unused kernel exports from the kernel image
744                   Note that this might make the kernel incompatible with any kernel modules that
745                   were not selected at the time the kernel image was created
746
747         config USE_MKLIBS
748                 bool "Strip unnecessary functions from libraries"
749                 help
750                   Reduces libraries to only those functions that are necessary for using all
751                   selected packages (including those selected as <M>)
752                   Note that this will make the system libraries incompatible with most of the packages
753                   that are not selected during the build process
754
755         choice
756                 prompt "Preferred standard C++ library"
757                 default USE_LIBSTDCXX if USE_EGLIBC
758                 default USE_UCLIBCXX
759                 help
760                   Select the preferred standard C++ library for all packages that support this.
761
762                 config USE_UCLIBCXX
763                         bool "uClibc++"
764
765                 config USE_LIBSTDCXX
766                         bool "libstdc++"
767         endchoice
768
769 endmenu
770
771 menuconfig DEVEL
772         bool "Advanced configuration options (for developers)"
773         default n
774
775         config BROKEN
776                 bool "Show broken platforms / packages" if DEVEL
777                 default n
778
779         config DOWNLOAD_FOLDER
780                 string "Download folder" if DEVEL
781                 default ""
782
783         config LOCALMIRROR
784                 string "Local mirror for source packages" if DEVEL
785                 default ""
786
787         config AUTOREBUILD
788                 bool "Automatic rebuild of packages" if DEVEL
789                 default y
790                 help
791                   Automatically rebuild packages when their files change
792
793         config BUILD_SUFFIX
794                 string "Build suffix to append to the BUILD_DIR variable" if DEVEL
795                 default ""
796                 help
797                   Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
798
799         config TARGET_ROOTFS_DIR
800                 string "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
801                 default ""
802                 help
803                   Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
804                   Use this option to re-define the location of the target root file system directory.
805
806         config CCACHE
807                 bool "Use ccache" if DEVEL
808                 default n
809                 help
810                   Compiler cache; see http://ccache.samba.org/
811
812         config EXTERNAL_KERNEL_TREE
813                 string "Use external kernel tree" if DEVEL
814                 default ""
815
816         config KERNEL_GIT_CLONE_URI
817                 string "Enter git repository to clone" if DEVEL
818                 default ""
819                 help
820                   Enter the full git repository path i.e.:
821                   git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
822                   This will create a git clone of the kernel in your build
823                   directory.
824
825         config KERNEL_GIT_LOCAL_REPOSITORY
826                 string "Enter path to local reference repository" if DEVEL
827                 default ""
828                 help
829                   Enter a full pathname to a local reference git repository.
830                   In this instance, the --refererence option of git clone will
831                   be used thus creating a quick local clone of your repo.
832
833         config BUILD_LOG
834                 bool "Enable log files during build process" if DEVEL
835                 help
836                   If enabled log files will be written to the ./log directory
837
838         config SRC_TREE_OVERRIDE
839                 bool "Enable package source tree override" if DEVEL
840                 help
841                   If enabled, you can force a package to use a git tree as source
842                   code instead of the normal tarball. Create a symlink 'git-src'
843                   in the package directory, pointing to the .git tree that you want
844                   to pull the source code from
845
846 menuconfig TARGET_OPTIONS
847         bool "Target Options"  if DEVEL
848
849         config TARGET_OPTIMIZATION
850                 string "Target Optimizations" if TARGET_OPTIONS
851                 default DEFAULT_TARGET_OPTIMIZATION
852                 help
853                   Optimizations to use when building for the target host.
854
855         config SOFT_FLOAT
856                 bool "Use software floating point by default" if TARGET_OPTIONS
857                 default y
858                 depends on (arm || armeb || powerpc || mipsel || mips || mips64el || mips64) && !HAS_FPU
859                 help
860                   If your target CPU does not have a Floating Point Unit (FPU) or a
861                   kernel FPU emulator, but you still wish to support floating point
862                   functions, then everything will need to be compiled with soft floating
863                   point support (-msoft-float).
864
865                   Most people will answer N.
866
867         config USE_MIPS16
868                 bool "Build packages with MIPS16 instructions" if TARGET_OPTIONS
869                 depends on HAS_MIPS16
870                 help
871                   If your target CPU does support the MIPS16 instruction set
872                   and you want to use it for packages, enable this option.
873                   MIPS16 produces smaller binaries thus reducing pressure on
874                   caches and TLB.
875
876                   Most people will answer N.
877
878 source "toolchain/Config.in"
879
880 source "target/imagebuilder/Config.in"
881 source "target/sdk/Config.in"
882 source "target/toolchain/Config.in"
883
884 source "tmp/.config-package.in"