Config.in 17 KB

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