Config.in 16 KB

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