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_LZ4
54 config TARGET_INITRAMFS_COMPRESSION_XZ
60 prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
63 Kernel uses specified external cpio as INITRAMFS_SOURCE
65 comment "Root filesystem archives"
67 config TARGET_ROOTFS_CPIOGZ
69 default y if USES_CPIOGZ
71 Build a compressed cpio archive of the the root filesystem
73 config TARGET_ROOTFS_TARGZ
75 default y if USES_TARGZ
77 Build a compressed tar archive of the the root filesystem
79 comment "Root filesystem images"
81 config TARGET_ROOTFS_EXT4FS
83 default y if USES_EXT4
85 Ext4 file system with some free space for uml images
87 config TARGET_ROOTFS_ISO
90 depends on TARGET_x86_generic
92 Create some bootable ISO image
94 config TARGET_ROOTFS_JFFS2
96 default y if USES_JFFS2
98 Build a jffs2 root filesystem
100 config TARGET_ROOTFS_JFFS2_NAND
101 bool "jffs2 for NAND"
102 default y if USES_JFFS2_NAND
103 depends on USES_JFFS2_NAND
105 Build a jffs2 root filesystem for NAND flash
107 config TARGET_ROOTFS_SQUASHFS
109 default y if USES_SQUASHFS
111 Build a squashfs-lzma root filesystem
113 menuconfig TARGET_ROOTFS_UBIFS
115 default y if USES_UBIFS
116 depends on USES_UBIFS
118 Build a ubifs root filesystem
122 default TARGET_UBIFS_COMPRESSION_NONE
123 depends on TARGET_ROOTFS_UBIFS
125 Select compression type
127 config TARGET_UBIFS_COMPRESSION_NONE
130 config TARGET_UBIFS_COMPRESSION_LZO
133 config TARGET_UBIFS_COMPRESSION_ZLIB
137 config TARGET_UBIFS_FREE_SPACE_FIXUP
138 bool "free space fixup" if TARGET_ROOTFS_UBIFS
141 The file-system free space has to be fixed up on first mount
143 config TARGET_UBIFS_JOURNAL_SIZE
145 prompt "journal size" if TARGET_ROOTFS_UBIFS
148 comment "Image Options"
150 source "target/linux/*/image/Config.in"
152 config TARGET_ROOTFS_PARTSIZE
153 int "Root filesystem partition size (in MB)"
154 depends on X86_GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
157 Allows you to change the root filesystem partition size
159 config TARGET_ROOTFS_MAXINODE
160 int "Maximum number of inodes in root filesystem"
161 depends on TARGET_ROOTFS_EXT4FS
164 Allows you to change the maximum number of inodes in the root filesystem
166 config TARGET_ROOTFS_RESERVED_PCT
167 int "Percentage of reserved blocks in root filesystem"
168 depends on TARGET_ROOTFS_EXT4FS
171 Allows you to change the percentage of reserved blocks in the root filesystem
173 menuconfig TARGET_ROOTFS_INCLUDE_KERNEL
174 bool "Include kernel in root filesystem"
175 depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
176 default n if USES_UBIFS
178 Include the kernel image in the rootfs. Typically the image is placed
181 config TARGET_ROOTFS_INCLUDE_UIMAGE
182 bool "include uImage" if TARGET_ROOTFS_INCLUDE_KERNEL
185 This option might not apply to all targets. Make sure
186 to check target/linux/<your_target>/image/Makefile to
187 see if this option will have any effect.
189 config TARGET_ROOTFS_INCLUDE_ZIMAGE
190 bool "include zImage" if TARGET_ROOTFS_INCLUDE_KERNEL
193 This option might not apply to all targets. Make sure
194 to check target/linux/<your_target>/image/Makefile to
195 see if this option will have any effect.
197 config TARGET_ROOTFS_INCLUDE_FIT
198 bool "include FIT" if TARGET_ROOTFS_INCLUDE_KERNEL
201 This option might not apply to all targets. Make sure
202 to check target/linux/<your_target>/image/Makefile to
203 see if this option will have any effect.
205 config TARGET_ROOTFS_INCLUDE_DTB
206 bool "Include DTB in root filesystem"
207 depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
208 default n if USES_UBIFS
210 Include the device tree blob file(s) in the rootfs. Typically the DTBs
211 are placed below /boot.
215 menu "Global build settings"
218 bool "Select all packages by default"
221 comment "General build options"
223 config DISPLAY_SUPPORT
224 bool "Show packages that require graphics support (local or remote)"
227 config BUILD_PATENTED
229 bool "Compile with support for patented functionality"
231 When this option is disabled, software which provides patented functionality will not be built.
232 In case software provides optional support for patented functionality,
233 this optional support will get disabled for this package.
237 bool "Compile with full language support"
239 When this option is enabled, packages are built with the full versions of iconv and GNU gettext
240 instead of the default OpenWrt stubs. If uClibc is used, it is also built with locale support.
242 config BUILD_STATIC_TOOLS
244 bool "Attempt to link host utilities statically"
246 Linking host utilities like sed or firmware-utils statically increases the portability of the
247 generated ImageBuilder and SDK tarballs, however it may fail on some Linux distributions.
249 config SHADOW_PASSWORDS
251 prompt "Enable shadow password support"
254 Enable shadow password support.
258 prompt "Remove ipkg/opkg status data files in final images"
261 This removes all ipkg/opkg status data files from the target directory before building the root fs
263 config COLLECT_KERNEL_DEBUG
265 prompt "Collect kernel debug information"
266 select KERNEL_DEBUG_INFO
269 This collects debugging symbols from the kernel and all compiled modules.
270 Useful for release builds, so that kernel issues can be debugged offline later.
272 comment "Kernel build options"
274 source "Config-kernel.in"
276 comment "Package build options"
280 prompt "Compile packages with debugging info"
283 Adds -g3 to the CFLAGS
287 prompt "Enable IPv6 support in packages"
290 Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
292 config PKG_BUILD_PARALLEL
294 prompt "Compile certain packages parallelized"
297 This adds a -jX option to certain packages that are known to
298 behave well for parallel build. By default the package make processes
299 use the main jobserver, in which case this option only takes effect
300 when you add -jX to the make command.
302 If you are unsure, select N.
304 config PKG_BUILD_USE_JOBSERVER
306 prompt "Use top-level make jobserver for packages"
307 depends on PKG_BUILD_PARALLEL
310 This passes the main make process jobserver fds to package builds,
311 enabling full parallelization across different packages
313 Note that disabling this may overcommit CPU resources depending on the
314 -j level of the main make process, the number of package
315 submake jobs selected below and the number of actual CPUs present.
316 Example: If the main make is passed a -j4 and the submake -j
317 is also set to 4, we may end up with 16 parallel make processes
321 config PKG_BUILD_JOBS
323 prompt "Number of package submake jobs (2-512)"
326 depends on PKG_BUILD_PARALLEL && !PKG_BUILD_USE_JOBSERVER
328 The number of jobs (-jX) to pass to packages submake.
330 config PKG_DEFAULT_PARALLEL
332 prompt "Parallelize the default package build rule (May break build)"
333 depends on PKG_BUILD_PARALLEL
337 Always set the default package build rules to parallel build.
339 WARNING: This may break build or kill your cat, as it builds
340 packages with multiple jobs that are probably not tested in
341 a parallel build environment.
343 Only say Y, if you don't mind fixing broken packages.
344 Before reporting build bugs, set this to N and re-run the build.
346 comment "Stripping options"
349 prompt "Binary stripping method"
350 default USE_STRIP if EXTERNAL_TOOLCHAIN
351 default USE_STRIP if USE_GLIBC || USE_EGLIBC || USE_MUSL
354 Select the binary stripping method you wish to use.
359 This will install unstripped binaries (useful for native compiling/debugging)
364 This will install binaries stripped using strip from binutils
370 depends on !USE_GLIBC
371 depends on !USE_EGLIBC
373 This will install binaries stripped using sstrip
378 prompt "Strip arguments"
380 default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
381 default "--strip-all"
383 Specifies arguments passed to the strip command when stripping binaries
385 config STRIP_KERNEL_EXPORTS
386 bool "Strip unnecessary exports from the kernel image"
388 Reduces kernel size by stripping unused kernel exports from the kernel image
389 Note that this might make the kernel incompatible with any kernel modules that
390 were not selected at the time the kernel image was created
393 bool "Strip unnecessary functions from libraries"
395 Reduces libraries to only those functions that are necessary for using all
396 selected packages (including those selected as <M>)
397 Note that this will make the system libraries incompatible with most of the packages
398 that are not selected during the build process
401 prompt "Preferred standard C++ library"
402 default USE_LIBSTDCXX if USE_EGLIBC
405 Select the preferred standard C++ library for all packages that support this.
417 bool "Advanced configuration options (for developers)"
421 bool "Show broken platforms / packages" if DEVEL
424 config DOWNLOAD_FOLDER
425 string "Download folder" if DEVEL
429 string "Local mirror for source packages" if DEVEL
433 bool "Automatic rebuild of packages" if DEVEL
436 Automatically rebuild packages when their files change
439 string "Build suffix to append to the BUILD_DIR variable" if DEVEL
442 Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
444 config TARGET_ROOTFS_DIR
445 string "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
448 Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
449 Use this option to re-define the location of the target root file system directory.
452 bool "Use ccache" if DEVEL
455 Compiler cache; see http://ccache.samba.org/
457 config EXTERNAL_KERNEL_TREE
458 string "Use external kernel tree" if DEVEL
461 config KERNEL_GIT_CLONE_URI
462 string "Enter git repository to clone" if DEVEL
465 Enter the full git repository path i.e.:
466 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
467 This will create a git clone of the kernel in your build
470 config KERNEL_GIT_LOCAL_REPOSITORY
471 string "Enter path to local reference repository" if DEVEL
474 Enter a full pathname to a local reference git repository.
475 In this instance, the --refererence option of git clone will
476 be used thus creating a quick local clone of your repo.
479 bool "Enable log files during build process" if DEVEL
481 If enabled log files will be written to the ./log directory
483 config SRC_TREE_OVERRIDE
484 bool "Enable package source tree override" if DEVEL
486 If enabled, you can force a package to use a git tree as source
487 code instead of the normal tarball. Create a symlink 'git-src'
488 in the package directory, pointing to the .git tree that you want
489 to pull the source code from
491 config EXTRA_OPTIMIZATION
492 string "Additional compiler options" if DEVEL
493 default "-fno-caller-saves"
495 Extra Target-independent optimizations to use when building for the target.
497 menuconfig TARGET_OPTIONS
498 bool "Target Options" if DEVEL
500 config TARGET_OPTIMIZATION
501 string "Target Optimizations" if TARGET_OPTIONS
502 default DEFAULT_TARGET_OPTIMIZATION
504 Optimizations to use when building for the target host.
507 bool "Use software floating point by default" if TARGET_OPTIONS
509 depends on (arm || armeb || powerpc || mipsel || mips || mips64el || mips64) && !HAS_FPU
511 If your target CPU does not have a Floating Point Unit (FPU) or a
512 kernel FPU emulator, but you still wish to support floating point
513 functions, then everything will need to be compiled with soft floating
514 point support (-msoft-float).
516 Most people will answer N.
519 bool "Build packages with MIPS16 instructions" if TARGET_OPTIONS
520 depends on HAS_MIPS16
521 depends on !GCC_VERSION_4_6
524 If your target CPU does support the MIPS16 instruction set
525 and you want to use it for packages, enable this option.
526 MIPS16 produces smaller binaries thus reducing pressure on
529 Most people will answer N.
531 source "toolchain/Config.in"
533 source "target/imagebuilder/Config.in"
534 source "target/sdk/Config.in"
535 source "target/toolchain/Config.in"
537 source "tmp/.config-package.in"