Config.in 14 KB

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