Config.in 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  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. depends !LINUX_2_6_30&&!LINUX_2_6_31&&!LINUX_2_6_32&&!LINUX_2_6_36&&!LINUX_2_6_37
  38. endchoice
  39. config EXTERNAL_CPIO
  40. string
  41. prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
  42. default ""
  43. help
  44. Kernel uses specified external cpio as INITRAMFS_SOURCE
  45. comment "Root filesystem archives"
  46. config TARGET_ROOTFS_CPIOGZ
  47. bool "cpio.gz"
  48. default y if USES_CPIOGZ
  49. help
  50. Build a compressed cpio archive of the the root filesystem
  51. config TARGET_ROOTFS_TARGZ
  52. bool "tar.gz"
  53. default y if USES_TARGZ
  54. help
  55. Build a compressed tar archive of the the root filesystem
  56. comment "Root filesystem images"
  57. config TARGET_ROOTFS_EXT4FS
  58. bool "ext4"
  59. default y if USES_EXT4
  60. depends !TARGET_ROOTFS_INITRAMFS
  61. help
  62. Ext4 file system with some free space for uml images
  63. config TARGET_ROOTFS_ISO
  64. bool "iso"
  65. default n
  66. depends TARGET_ROOTFS_INITRAMFS && TARGET_x86
  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 SHADOW_PASSWORDS
  124. bool
  125. prompt "Enable shadow password support"
  126. default y
  127. help
  128. Enable shadow password support.
  129. config CLEAN_IPKG
  130. bool
  131. prompt "Remove ipkg/opkg status data files in final images"
  132. default n
  133. help
  134. This removes all ipkg/opkg status data files from the target directory before building the root fs
  135. config COLLECT_KERNEL_DEBUG
  136. bool
  137. prompt "Collect kernel debug information"
  138. select KERNEL_DEBUG_INFO
  139. default n
  140. help
  141. This collects debugging symbols from the kernel and all compiled modules.
  142. Useful for release builds, so that kernel issues can be debugged offline later.
  143. comment "Kernel build options"
  144. config KERNEL_DEBUG_FS
  145. bool "Compile the kernel with Debug FileSystem enabled"
  146. default y
  147. help
  148. debugfs is a virtual file system that kernel developers use to put
  149. debugging files into. Enable this option to be able to read and
  150. write to these files.
  151. config KERNEL_PROFILING
  152. bool "Compile the kernel with profiling enabled"
  153. default n
  154. help
  155. Enable the extended profiling support mechanisms used by profilers such
  156. as OProfile.
  157. config KERNEL_KALLSYMS
  158. bool "Compile the kernel with symbol table information"
  159. default n
  160. help
  161. This will give you more information in stack traces from kernel oopses
  162. config KERNEL_FTRACE
  163. bool "Compile the kernel with tracing support"
  164. default n
  165. config KERNEL_ENABLE_DEFAULT_TRACERS
  166. bool "Trace process context switches and events"
  167. depends on KERNEL_FTRACE
  168. default n
  169. config KERNEL_DEBUG_KERNEL
  170. bool
  171. default n
  172. config KERNEL_DEBUG_INFO
  173. bool "Compile the kernel with debug information"
  174. default n
  175. select KERNEL_DEBUG_KERNEL
  176. help
  177. This will compile your kernel and modules with debug information.
  178. config KERNEL_DEBUG_LL_UART_NONE
  179. bool
  180. default n
  181. depends on arm
  182. config KERNEL_DEBUG_LL
  183. bool
  184. default n
  185. depends on arm
  186. select KERNEL_DEBUG_LL_UART_NONE
  187. help
  188. ARM low level debugging
  189. config KERNEL_EARLY_PRINTK
  190. bool "Compile the kernel with early printk"
  191. default n
  192. depends on arm
  193. select KERNEL_DEBUG_KERNEL
  194. select KERNEL_DEBUG_LL if arm
  195. help
  196. Compile the kernel with early printk support.
  197. This is only useful for debugging purposes to send messages
  198. over the serial console in early boot.
  199. Enable this to debug early boot problems.
  200. config KERNEL_AIO
  201. bool "Compile the kernel with asynchronous IO support"
  202. default n
  203. config KERNEL_MAGIC_SYSRQ
  204. bool "Compile the kernel with SysRq support"
  205. default y
  206. config KERNEL_ELF_CORE
  207. bool "Enable process core dump support"
  208. default y
  209. config KERNEL_PROVE_LOCKING
  210. bool "Enable kernel lock checking"
  211. select KERNEL_DEBUG_KERNEL
  212. default n
  213. config KERNEL_PRINTK_TIME
  214. bool "Enable printk timestamps"
  215. default y
  216. comment "Package build options"
  217. config DEBUG
  218. bool
  219. prompt "Compile packages with debugging info"
  220. default n
  221. help
  222. Adds -g3 to the CFLAGS
  223. config IPV6
  224. bool
  225. prompt "Enable IPv6 support in packages"
  226. default y
  227. help
  228. Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
  229. config PKG_BUILD_PARALLEL
  230. bool
  231. prompt "Compile certain packages parallelized"
  232. default n
  233. help
  234. This adds a -jX option to certain packages that are known to
  235. behave well for parallel build.
  236. Note that this may overcommit CPU resources depending on the
  237. -j level of the main make process, the number of package
  238. submake jobs selected below and the number of actual CPUs present.
  239. Example: If the main make is passed a -j4 and the submake -j
  240. is also set to 4, we may end up with 16 parallel make processes
  241. in the worst case.
  242. You get maximum build performance, if you set the package build
  243. jobs to the number of CPUs (cores) available and also start the main
  244. make process with -jX, where X is the number of CPUs (cores).
  245. However, make sure you have enough RAM available for
  246. NR_CPUS to the power of two (NR_CPUS^2) make jobs.
  247. If you are unsure, select N.
  248. config PKG_BUILD_JOBS
  249. int
  250. prompt "Number of package submake jobs (2-512)"
  251. range 2 512
  252. default 2
  253. depends on PKG_BUILD_PARALLEL
  254. help
  255. The number of jobs (-jX) to pass to packages submake.
  256. config PKG_DEFAULT_PARALLEL
  257. bool
  258. prompt "Parallelize the default package build rule (May break build)"
  259. depends on PKG_BUILD_PARALLEL
  260. default n
  261. help
  262. Always set the default package build rules to parallel build.
  263. WARNING: This may break build or kill your cat, as it builds
  264. packages with multiple jobs that are probably not tested in
  265. a parallel build environment.
  266. Only say Y, if you don't mind fixing broken packages.
  267. Before reporting build bugs, set this to N and re-run the build.
  268. config TOOLCHAIN_PARALLEL
  269. bool
  270. prompt "Parallelize the toolchain build (May break build)"
  271. depends on PKG_BUILD_PARALLEL
  272. default n
  273. help
  274. Build the toolchain with parallel make jobs.
  275. This speeds up the toolchain build on SMP machines, but may
  276. break the build for certain toolchain versions.
  277. If you say Y, toolchain build might break.
  278. Before reporting build bugs, set this to N and re-run the build.
  279. comment "Stripping options"
  280. choice
  281. prompt "Binary stripping method"
  282. default USE_STRIP if EXTERNAL_TOOLCHAIN
  283. default USE_STRIP if USE_GLIBC || USE_EGLIBC
  284. default USE_SSTRIP
  285. help
  286. Select the binary stripping method you wish to use.
  287. config NO_STRIP
  288. bool "none"
  289. help
  290. This will install unstripped binaries (useful for native compiling/debugging)
  291. config USE_STRIP
  292. bool "strip"
  293. help
  294. This will install binaries stripped using strip from binutils
  295. config USE_SSTRIP
  296. bool "sstrip"
  297. depends !DEBUG
  298. depends !USE_GLIBC
  299. depends !USE_EGLIBC
  300. help
  301. This will install binaries stripped using sstrip
  302. endchoice
  303. config STRIP_ARGS
  304. string
  305. prompt "Strip arguments"
  306. depends USE_STRIP
  307. default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
  308. default "--strip-all"
  309. help
  310. Specifies arguments passed to the strip command when stripping binaries
  311. config STRIP_KERNEL_EXPORTS
  312. bool "Strip unnecessary exports from the kernel image"
  313. help
  314. Reduces kernel size by stripping unused kernel exports from the kernel image
  315. Note that this might make the kernel incompatible with any kernel modules that
  316. were not selected at the time the kernel image was created
  317. config USE_MKLIBS
  318. bool "Strip unnecessary functions from libraries"
  319. help
  320. Reduces libraries to only those functions that are necessary for using all
  321. selected packages (including those selected as <M>)
  322. Note that this will make the system libraries incompatible with most of the packages
  323. that are not selected during the build process
  324. endmenu
  325. menuconfig DEVEL
  326. bool "Advanced configuration options (for developers)"
  327. default n
  328. config BROKEN
  329. bool "Show broken platforms / packages" if DEVEL
  330. default n
  331. config DOWNLOAD_FOLDER
  332. string "Download folder" if DEVEL
  333. default ""
  334. config LOCALMIRROR
  335. string "Local mirror for source packages" if DEVEL
  336. default ""
  337. config AUTOREBUILD
  338. bool "Automatic rebuild of packages" if DEVEL
  339. default y
  340. help
  341. Automatically rebuild packages when their files change
  342. config BUILD_SUFFIX
  343. string "Build suffix to append to the BUILD_DIR variable" if DEVEL
  344. default ""
  345. help
  346. Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
  347. config TARGET_ROOTFS_DIR
  348. string "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
  349. default ""
  350. help
  351. Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
  352. Use this option to re-define the location of the target root file system directory.
  353. config CCACHE
  354. bool "Use ccache" if DEVEL
  355. default n
  356. help
  357. Compiler cache; see http://ccache.samba.org/
  358. config EXTERNAL_KERNEL_TREE
  359. string "Use external kernel tree" if DEVEL
  360. default ""
  361. config KERNEL_GIT_CLONE_URI
  362. string "Enter git repository to clone" if DEVEL
  363. default ""
  364. help
  365. Enter the full git repository path i.e.:
  366. git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
  367. This will create a git clone of the kernel in your build
  368. directory.
  369. config KERNEL_GIT_LOCAL_REPOSITORY
  370. string "Enter path to local reference repository" if DEVEL
  371. default ""
  372. help
  373. Enter a full pathname to a local reference git repository.
  374. In this instance, the --refererence option of git clone will
  375. be used thus creating a quick local clone of your repo.
  376. config BUILD_LOG
  377. bool "Enable log files during build process" if DEVEL
  378. help
  379. If enabled log files will be written to the ./log directory
  380. config SRC_TREE_OVERRIDE
  381. bool "Enable package source tree override" if DEVEL
  382. help
  383. If enabled, you can force a package to use a git tree as source
  384. code instead of the normal tarball. Create a symlink 'git-src'
  385. in the package directory, pointing to the .git tree that you want
  386. to pull the source code from
  387. menuconfig TARGET_OPTIONS
  388. bool "Target Options" if DEVEL
  389. config TARGET_OPTIMIZATION
  390. string "Target Optimizations" if TARGET_OPTIONS
  391. default DEFAULT_TARGET_OPTIMIZATION
  392. help
  393. Optimizations to use when building for the target host.
  394. config SOFT_FLOAT
  395. bool "Use software floating point by default" if TARGET_OPTIONS
  396. default y
  397. depends on (arm || armeb || powerpc || mipsel || mips) && !HAS_FPU
  398. help
  399. If your target CPU does not have a Floating Point Unit (FPU) or a
  400. kernel FPU emulator, but you still wish to support floating point
  401. functions, then everything will need to be compiled with soft floating
  402. point support (-msoft-float).
  403. Most people will answer N.
  404. source "toolchain/Config.in"
  405. source "target/imagebuilder/Config.in"
  406. source "target/sdk/Config.in"
  407. source "target/toolchain/Config.in"
  408. source "tmp/.config-package.in"