Config.in.advanced 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. if BR2_KERNEL_LINUX_ADVANCED
  2. # --- "Linux kernel options"
  3. # This file exports the following symbols for use by Makefile's
  4. #
  5. # BR2_PACKAGE_LINUX
  6. #
  7. # BR2_KERNEL_SITE
  8. # BR2_DOWNLOAD_LINUX26_VERSION
  9. # BR2_LINUX26_VERSION
  10. #
  11. # BR2_KERNEL_PATCH_SITE
  12. # BR2_KERNEL_PATCH
  13. #
  14. # BR2_LINUX26_CUSTOM
  15. # BR2_CUSTOM_LINUX26_PATCH_SITE
  16. # BR2_CUSTOM_LINUX26_PATCH
  17. #
  18. # BR2_LINUX_BSP_PATCH
  19. #
  20. # BR2_PACKAGE_LINUX_USE_KCONFIG
  21. # BR2_PACKAGE_LINUX_USE_DEFCONFIG
  22. # BR2_PACKAGE_LINUX_USE_XCONFIG
  23. # BR2_PACKAGE_LINUX_KCONFIG
  24. #
  25. # BR2_PACKAGE_LINUX_FORMAT
  26. #
  27. # BR2_LINUX_COPYTO_ROOTFS
  28. # BR2_LINUX_COPYTO_TFTPBOOT
  29. # BR2_LINUX_COPYTO
  30. #
  31. # ---------------------------------------------------------------------------
  32. # --- These 'constants' requires regular maintenance, so put them first
  33. config BR2_KERNEL_PATCH_LEVEL
  34. string
  35. default "1" if BR2_LINUX_2_6_23 && BR2_KERNEL_ADD_LATEST_MINORPATCH
  36. default "10" if BR2_LINUX_2_6_22 && BR2_KERNEL_ADD_LATEST_MINORPATCH
  37. default "7" if BR2_LINUX_2_6_21 && BR2_KERNEL_ADD_LATEST_MINORPATCH
  38. default "20" if BR2_LINUX_2_6_20 && BR2_KERNEL_ADD_LATEST_MINORPATCH
  39. default "$(BR2_KERNEL_MINORLEVEL)" if BR2_KERNEL_ADD_MINORPATCH
  40. config BR2_KERNEL_CURRENT_VERSION
  41. string
  42. default "2.6.23.1"
  43. config BR2_KERNEL_NEXT_VERSION
  44. string
  45. default "2.6.24" if BR2_LINUX_2_6_23
  46. default "2.6.23" if BR2_LINUX_2_6_22
  47. default "2.6.22" if BR2_LINUX_2_6_21
  48. default "2.6.21" if BR2_LINUX_2_6_20
  49. config BR2_KERNEL_THIS_VERSION
  50. string
  51. default "2.6.23" if BR2_LINUX_2_6_23
  52. default "2.6.22" if BR2_LINUX_2_6_22
  53. default "2.6.21" if BR2_LINUX_2_6_21
  54. default "2.6.20" if BR2_LINUX_2_6_20
  55. config LINUX26_LATEST_RC_VERSION
  56. string
  57. default "2.6.23" if BR2_KERNEL_ADD_LATEST_RC_PATCH
  58. config LINUX26_LATEST_MM_VERSION
  59. string
  60. default "2.6.23-mm1" if BR2_KERNEL_ADD_LATEST_MM_PATCH
  61. config LINUX26_LATEST_GIT_VERSION
  62. string
  63. default "2.6.23-git3" if BR2_KERNEL_ADD_LATEST_SNAPSHOT
  64. config BR2_KERNEL_SITE
  65. string
  66. default "http://ftp.kernel.org/pub/linux/kernel/v2.6/"
  67. config BR2_MM_PATCH_SITE
  68. string
  69. default "http://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6"
  70. config BR2_MM_PATCH_DIR
  71. string
  72. default "$(BR2_DOWNLOAD_LINUX26_VERSION)/$(LINUX26_LATEST_MM_VERSION)" if BR2_KERNEL_ADD_LATEST_MM_PATCH
  73. default "$(BR2_DOWNLOAD_LINUX26_VERSION)/$(BR2_LINUX26_MM_VERSION)" if BR2_KERNEL_ADD_MM_PATCH
  74. config BR2_RC_MM_PATCH_DIR
  75. string
  76. default "$(BR2_KERNEL_NEXT_VERSION)-rc$(BR2_KERNEL_RC_LEVEL)/2.6.$(BR2_KERNEL_NEXT_VERSION)-rc$(BR2_KERNEL_RC_LEVEL)-mm$(BR2_KERNEL_MM_LEVEL)"
  77. config BR2_KERNEL_PATCH_SITE
  78. string
  79. default "http://ftp.kernel.org/pub/linux/kernel/v2.6/" if BR2_KERNEL_ADD_MINORPATCH
  80. default "http://ftp.kernel.org/pub/linux/kernel/v2.6/testing/" if BR2_KERNEL_ADD_RC_PATCH || BR2_KERNEL_ADD_LATEST_RC_PATCH
  81. default "http://ftp.kernel.org/pub/linux/kernel/v2.6/snapshots/" if BR2_KERNEL_ADD_SNAPSHOT || BR2_KERNEL_ADD_LATEST_SNAPSHOT
  82. default "$(BR2_MM_PATCH_SITE)/$(BR2_MM_PATCH_DIR)/" if BR2_KERNEL_ADD_MM_PATCH || BR2_KERNEL_ADD_LATEST_MM_PATCH
  83. default $(BR2_CUSTOM_LINUX26_PATCH_SITE) if BR2_LINUX26_CUSTOM
  84. config BR2_LINUX26_RC_VERSION
  85. string
  86. default "$(BR2_KERNEL_NEXT_VERSION)-rc$(BR2_KERNEL_RC_LEVEL)" if BR2_KERNEL_ADD_RC_PATCH
  87. config BR2_LINUX26_SNAPSHOT_VERSION
  88. string
  89. default "$(BR2_KERNEL_THIS_VERSION)-git$(BR2_KERNEL_GIT_LEVEL)" if BR2_KERNEL_ADD_SNAPSHOT
  90. config BR2_LINUX26_RC_SNAPSHOT_VERSION
  91. string
  92. default "$(BR2_KERNEL_NEXT_VERSION)-rc$(BR2_KERNEL_RC_LEVEL)-git$(BR2_KERNEL_GIT_LEVEL)" if BR2_KERNEL_ADD_SNAPSHOT
  93. config BR2_LINUX26_MM_VERSION
  94. string
  95. default "$(BR2_KERNEL_THIS_VERSION)-mm$(BR2_KERNEL_MM_LEVEL)" if BR2_KERNEL_ADD_MM_PATCH
  96. config BR2_LINUX26_RC_MM_VERSION
  97. string
  98. default "$(BR2_KERNEL_NEXT_VERSION)-rc$(BR2_KERNEL_RC_LEVEL)-mm$(BR2_KERNEL_MM_LEVEL)" if BR2_KERNEL_ADD_MM_PATCH
  99. # ---------------------------------------------------------------------------
  100. choice
  101. prompt "Linux Kernel Version"
  102. default BR2_LINUX_2_6_22_10 if BR2_avr32
  103. default BR2_LINUX_2_6_22_1 if !BR2_avr32 && BR2_TARGET_ATMEL
  104. default BR2_LINUX_2_6_22 if !BR2_TARGET_ATMEL
  105. help
  106. Select the specific Linux version you want to use
  107. config BR2_LINUX_2_6_STABLE
  108. bool "The latest stable Linux kernel (2.6.23)"
  109. help
  110. Linux 2.6.23
  111. config BR2_LINUX_2_6_23
  112. bool "Linux 2.6.23"
  113. select BR2_KERNEL_BASE
  114. help
  115. Linux 2.6.23
  116. config BR2_LINUX_2_6_22_10
  117. bool "Linux 2.6.22.10"
  118. select BR2_KERNEL_PREPATCHED
  119. help
  120. Linux 2.6.22.10
  121. config BR2_LINUX_2_6_22_1
  122. bool "Linux 2.6.22.1"
  123. select BR2_KERNEL_PREPATCHED
  124. help
  125. Linux 2.6.22.1
  126. config BR2_LINUX_2_6_22
  127. bool "Linux 2.6.22"
  128. select BR2_KERNEL_LATEST
  129. select BR2_KERNEL_BASE
  130. help
  131. Linux 2.6.22
  132. config BR2_LINUX_2_6_21_7
  133. bool "Linux 2.6.21.7"
  134. select BR2_KERNEL_PREPATCHED
  135. help
  136. Linux 2.6.21.1
  137. config BR2_LINUX_2_6_21_5
  138. bool "Linux 2.6.21.5"
  139. select BR2_KERNEL_PREPATCHED
  140. help
  141. Linux 2.6.21.5
  142. config BR2_LINUX_2_6_21
  143. bool "Linux 2.6.21"
  144. select BR2_KERNEL_BASE
  145. help
  146. Linux 2.6.21
  147. config BR2_LINUX_2_6_20
  148. bool "Linux 2.6.20"
  149. select BR2_KERNEL_BASE
  150. help
  151. Linux 2.6.20
  152. config BR2_LINUX26_CUSTOM
  153. bool "Linux <custom> version"
  154. help
  155. Linux <your selection>
  156. endchoice
  157. if BR2_LINUX26_CUSTOM
  158. config BR2_CUSTOM_DOWNLOAD_LINUX26_VERSION
  159. string "Linux Tarball version"
  160. default "linux-2.6.22"
  161. help
  162. Specify any .tar.bz2 file
  163. config BR2_CUSTOM_LINUX26_VERSION
  164. string "Linux Version"
  165. default "linux-2.6.22-version"
  166. help
  167. Specify what the linux version will be called
  168. config BR2_CUSTOM_LINUX26_PATCH
  169. string "patch name"
  170. default "patch-2.6.22-rc6-mm1.bz2"
  171. help
  172. Specify a patch to be downloaded
  173. config BR2_CUSTOM_LINUX26_PATCH_SITE
  174. string "patch site"
  175. default "http://"
  176. help
  177. Specify from where the patch will be downloaded.
  178. endif
  179. # -----------------------------------------------
  180. menu "Patches"
  181. depends on BR2_PACKAGE_LINUX
  182. choice
  183. prompt "Add a patch to the Linux Kernel"
  184. depends on BR2_PACKAGE_LINUX
  185. depends on !BR2_KERNEL_PREPATCHED
  186. default BR2_KERNEL_ADD_NO_PATCH
  187. help
  188. Select a patch to add to the Linux kernel
  189. config BR2_KERNEL_ADD_NO_PATCH
  190. bool "Do not add a patch"
  191. config BR2_KERNEL_ADD_LATEST_MINORPATCH
  192. bool "Add _latest_ '.#' minor patch"
  193. select BR2_KERNEL_ADD_PATCH
  194. config BR2_KERNEL_ADD_MINORPATCH
  195. bool "Add a '.#' minor patch"
  196. select BR2_KERNEL_ADD_PATCH
  197. config BR2_KERNEL_ADD_LATEST_RC_PATCH
  198. bool "Add _latest_ '-rc#' patch"
  199. select BR2_KERNEL_ADD_PATCH
  200. config BR2_KERNEL_ADD_RC_PATCH
  201. bool "Add an '-rc#' patch"
  202. select BR2_KERNEL_ADD_PATCH
  203. config BR2_KERNEL_ADD_LATEST_SNAPSHOT
  204. bool "Add _latest_ 'snapshot' patch"
  205. select BR2_KERNEL_ADD_PATCH
  206. config BR2_KERNEL_ADD_SNAPSHOT
  207. bool "Add a 'snapshot' patch (linux-2.6.X-rc#-git#)"
  208. select BR2_KERNEL_ADD_PATCH
  209. config BR2_KERNEL_ADD_LATEST_MM_PATCH
  210. bool "Add latest '-mm' patch for the stable linux kernel"
  211. select BR2_KERNEL_ADD_PATCH
  212. config BR2_KERNEL_ADD_MM_PATCH
  213. bool "Add an '-mm#' patch for the stable linux kernel"
  214. select BR2_KERNEL_ADD_PATCH
  215. endchoice
  216. config BR2_KERNEL_ADD_PATCH
  217. bool
  218. default n
  219. config BR2_KERNEL_MINORLEVEL
  220. string "patch level"
  221. default ""
  222. depends on BR2_KERNEL_ADD_MINORPATCH
  223. config BR2_KERNEL_RC_LEVEL
  224. string "-rc patch Level"
  225. default ""
  226. depends on BR2_KERNEL_ADD_RC_PATCH || BR2_KERNEL_ADD_SNAPSHOT
  227. config BR2_KERNEL_GIT_LEVEL
  228. string "-git patch Level"
  229. default ""
  230. depends on BR2_KERNEL_ADD_SNAPSHOT
  231. config BR2_KERNEL_MM_LEVEL
  232. string "-mm patch Level"
  233. default ""
  234. depends on BR2_KERNEL_ADD_MM_PATCH
  235. config BR2_LINUX_BSP_PATCH
  236. string "Additional patch to apply (from \$(DL_DIR))"
  237. default ""
  238. help
  239. Apply a patch located in \$(DL_DIR).
  240. You need to download or create this before
  241. enable this option
  242. config BR2_KERNEL_PATCH
  243. string
  244. default "patch-$(BR2_DOWNLOAD_LINUX26_VERSION).$(BR2_KERNEL_PATCH_LEVEL).bz2" if BR2_KERNEL_ADD_MINORPATCH || BR2_KERNEL_ADD_LATEST_MINORPATCH
  245. default "patch-$(LINUX26_LATEST_RC_VERSION).bz2" if BR2_KERNEL_ADD_LATEST_RC_PATCH
  246. default "patch-$(BR2_LINUX26_RC_VERSION).bz2" if BR2_KERNEL_ADD_RC_PATCH
  247. default "patch-$(LINUX26_LATEST_GIT_VERSION).bz2" if BR2_KERNEL_ADD_LATEST_SNAPSHOT
  248. default "patch-$(BR2_LINUX26_SNAPSHOT_VERSION).bz2" if BR2_KERNEL_ADD_SNAPSHOT
  249. default "$(LINUX26_LATEST_MM_VERSION).bz2" if BR2_KERNEL_ADD_LATEST_MM_PATCH
  250. default "$(BR2_LINUX26_MM_VERSION).bz2" if BR2_KERNEL_ADD_MM_PATCH
  251. default $(BR2_CUSTOM_LINUX26_PATCH) if BR2_LINUX26_CUSTOM
  252. endmenu
  253. # -----------------------------------------------
  254. config BR2_KERNEL_PREPATCHED
  255. bool
  256. default n
  257. config BR2_KERNEL_BASE
  258. bool
  259. default n
  260. config BR2_KERNEL_LATEST
  261. bool
  262. default n
  263. config BR2_DOWNLOAD_LINUX26_VERSION
  264. string
  265. default "$(BR2_KERNEL_THIS_VERSION)" if BR2_KERNEL_BASE
  266. default "2.6.21.5" if BR2_LINUX_2_6_21_5
  267. default "2.6.21.7" if BR2_LINUX_2_6_21_7
  268. default "2.6.22.1" if BR2_LINUX_2_6_22_1
  269. default "2.6.22.10" if BR2_LINUX_2_6_22_10
  270. default "$(BR2_KERNEL_CURRENT_VERSION)"if BR2_LINUX_2_6_STABLE
  271. default "$(BR2_DEFAULT_KERNEL_HEADERS)" if BR2_KERNEL_LINUX_HEADERS_VERSION
  272. default $(BR2_CUSTOM_DOWNLOAD_LINUX26_VERSION) if BR2_LINUX26_CUSTOM
  273. config BR2_LINUX26_VERSION
  274. string
  275. default "$(BR2_KERNEL_THIS_VERSION).$(BR2_KERNEL_PATCH_LEVEL)" if BR2_KERNEL_BASE && BR2_KERNEL_ADD_MINORPATCH
  276. default "$(LINUX26_LATEST_RC_VERSION)" if BR2_KERNEL_ADD_LATEST_RC_PATCH
  277. default "$(LINUX26_LATEST_MM_VERSION)" if BR2_KERNEL_ADD_LATEST_MM_PATCH
  278. default "$(LINUX26_LATEST_GIT_VERSION)" if BR2_KERNEL_ADD_LATEST_SNAPSHOT
  279. default "$(BR2_LINUX26_RC_VERSION)" if BR2_KERNEL_BASE && BR2_KERNEL_ADD_RC_PATCH
  280. default "$(BR2_LINUX26_SNAPSHOT_VERSION)" if BR2_KERNEL_BASE && BR2_KERNEL_ADD_SNAPSHOT
  281. default "$(BR2_LINUX26_MM_VERSION)" if BR2_KERNEL_BASE && BR2_KERNEL_ADD_MM_PATCH
  282. default "$(BR2_KERNEL_THIS_VERSION)" if BR2_KERNEL_BASE && ! BR2_KERNEL_ADD_PATCH
  283. default "2.6.21.5" if BR2_LINUX_2_6_21_5
  284. default "2.6.21.7" if BR2_LINUX_2_6_21_7
  285. default "2.6.22.1" if BR2_LINUX_2_6_22_1
  286. default "2.6.22.10" if BR2_LINUX_2_6_22_10
  287. default "$(BR2_KERNEL_CURRENT_VERSION)"if BR2_LINUX_2_6_STABLE
  288. default $(BR2_CUSTOM_LINUX26_VERSION) if BR2_LINUX26_CUSTOM
  289. menu "Linux Kernel Configuration"
  290. choice
  291. prompt "Linux Kernel Configuration"
  292. depends on BR2_PACKAGE_LINUX
  293. default BR2_PACKAGE_LINUX_USE_KCONFIG
  294. help
  295. Select the way to configure the Linux
  296. config BR2_PACKAGE_LINUX_USE_KCONFIG
  297. bool ".config file"
  298. depends on BR2_PACKAGE_LINUX
  299. help
  300. kernel's .config to use to build a kernel for the target.
  301. If the above setting is empty, you can change the default
  302. board-imposed value by passing LINUX26_KCONFIG=<path> to
  303. make.
  304. config BR2_PACKAGE_LINUX_USE_DEFCONFIG
  305. bool "Run make <board>_defconfig "
  306. depends BR2_PACKAGE_LINUX
  307. help
  308. Configure Linux by make <board>_defconfig
  309. config BR2_PACKAGE_LINUX_USE_XCONFIG
  310. bool "Run make ARCH=$(ARCH) xconfig before build"
  311. depends BR2_PACKAGE_LINUX
  312. help
  313. Configure Linux by make xconfig
  314. endchoice
  315. config BR2_PACKAGE_LINUX_KCONFIG
  316. string ".config file"
  317. depends on BR2_PACKAGE_LINUX_USE_KCONFIG
  318. default "$(BR2_BOARD_PATH)/$(BR2_BOARD_NAME)-linux-$(BR2_LINUX26_VERSION).config"
  319. help
  320. kernel's .config to use to build a kernel for the target.
  321. If the above setting is empty, you can change the default
  322. board-imposed value by passing LINUX26_KCONFIG=<path> to
  323. make.
  324. endmenu
  325. choice
  326. prompt "kernel binary format"
  327. depends on BR2_PACKAGE_LINUX
  328. default BR2_LINUX_BIN_UIMAGE
  329. help
  330. Select the specific Linux binary type you want to use
  331. config BR2_LINUX_BIN_BZIMAGE
  332. bool "bzImage"
  333. depends BR2_PACKAGE_LINUX
  334. help
  335. Linux 2.6.19.2
  336. config BR2_LINUX_BIN_UIMAGE
  337. bool "uImage"
  338. depends BR2_PACKAGE_LINUX
  339. help
  340. Build uImage binary
  341. config BR2_LINUX_BIN_VMLINUX
  342. bool "vmlinux"
  343. depends BR2_PACKAGE_LINUX
  344. help
  345. Build vmlinux binary
  346. config BR2_LINUX_BIN_ZIMAGE
  347. bool "zImage"
  348. depends BR2_PACKAGE_LINUX
  349. help
  350. Linux 2.6.19.2
  351. config BR2_LINUX_BIN_CUSTOM
  352. bool "<custom> Linux binary"
  353. depends BR2_PACKAGE_LINUX
  354. help
  355. Build custom Linux binary format
  356. endchoice
  357. config BR2_LINUX_BIN_CUSTOM_BIN
  358. string "custom kernel binary format"
  359. depends on BR2_LINUX_BIN_CUSTOM
  360. default ""
  361. help
  362. Which Linux binary format?
  363. config BR2_PACKAGE_LINUX_FORMAT
  364. string #"kernel binary format"
  365. depends on BR2_PACKAGE_LINUX
  366. default "bzImage" if BR2_LINUX_BIN_BZIMAGE
  367. default "uImage" if BR2_LINUX_BIN_UIMAGE
  368. default "vmlinux" if BR2_LINUX_BIN_VMLINUX
  369. default "zImage" if BR2_LINUX_BIN_ZIMAGE
  370. default $(BR2_LINUX_BIN_CUSTOM_BIN) if BR2_LINUX_BIN_CUSTOM
  371. help
  372. kernel binary format.
  373. Popular values include:
  374. - bzImage
  375. - zImage
  376. - vmlinux
  377. - zImage
  378. - xipImage
  379. and other, architecture dependant formats.
  380. Note that the default format is supposed to be set by your
  381. board-description, if any.
  382. i386 and compatible default to bzImage if nothing was given
  383. above.
  384. If the above setting is empty, you can change the default
  385. board-imposed value by passing LINUX26_FORMAT=<string> to
  386. make.
  387. menu "Destinations for linux kernel binaries"
  388. config BR2_LINUX_COPYTO_ROOTFS
  389. bool "Copy kernel to root file system"
  390. depends BR2_PACKAGE_LINUX
  391. default n
  392. help
  393. Copy kernel to <root>/boot directory
  394. config BR2_LINUX_COPYTO_TFTPBOOT
  395. bool "Copy kernel to /tftpboot"
  396. default y if BR2_TARGET_ATMEL
  397. default n if !BR2_TARGET_ATMEL
  398. help
  399. Copy kernel to /tftpboot directory
  400. config BR2_LINUX_COPYTO
  401. string "Copy kernel to <dir>..."
  402. default ""
  403. help
  404. Copy kernel to secondary location
  405. config BR2_LINUX_COPY_CONFIGURATION
  406. bool "Copy buildroot configuration to Linux file system"
  407. default y if BR2_TARGET_ATMEL
  408. default n if !BR2_TARGET_ATMEL
  409. help
  410. The configuration files for buildroot, uclibc, busybox and linux
  411. are copied to the "<root>/boot" directory.
  412. endmenu
  413. endif