Config.in 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. config ADK_TARGET_KERNEL_VMLINUZ
  4. boolean
  5. config ADK_TARGET_KERNEL_ZIMAGE
  6. boolean
  7. config ADK_TARGET_KERNEL_LINUXBIN
  8. boolean
  9. config ADK_TARGET_KERNEL_IMAGE
  10. boolean
  11. config ADK_TARGET_KERNEL_BZIMAGE
  12. boolean
  13. config ADK_TARGET_KERNEL
  14. string
  15. default "zImage" if ADK_TARGET_KERNEL_ZIMAGE
  16. default "Image" if ADK_TARGET_KERNEL_IMAGE
  17. default "linux.bin" if ADK_TARGET_KERNEL_LINUXBIN
  18. default "vmlinuz" if ADK_TARGET_KERNEL_VMLINUZ
  19. default "bzImage" if ADK_TARGET_KERNEL_BZIMAGE
  20. default "vmlinux"
  21. config ADK_big
  22. boolean
  23. config ADK_little
  24. boolean
  25. config ADK_soft_float
  26. boolean
  27. config ADK_hard_float
  28. boolean
  29. config ADK_mode_arm
  30. boolean
  31. config ADK_mode_thumb
  32. boolean
  33. config ADK_TARGET_FLOAT
  34. string
  35. default "hard" if ADK_hard_float
  36. default "soft" if ADK_soft_float
  37. config ADK_TARGET_ARM_MODE
  38. depends on ADK_LINUX_ARM
  39. string
  40. default "arm" if ADK_mode_arm
  41. default "thumb" if ADK_mode_thumb
  42. default "arm"
  43. config ADK_TARGET_ENDIAN
  44. string
  45. default "little" if ADK_little
  46. default "big" if ADK_big
  47. config ADK_JFFS2_OPTS
  48. string
  49. default "-l" if ADK_little
  50. default "-b" if ADK_big
  51. config ADK_TOOLCHAIN
  52. boolean
  53. source "target/config/Config.in.arch"
  54. source "target/config/Config.in.system"
  55. config ADK_LINUX_MIPS64
  56. boolean
  57. default y if ADK_LINUX_MIPS && ADK_LINUX_64
  58. choice
  59. prompt "Toolchain options"
  60. depends on ADK_TOOLCHAIN
  61. config ADK_TOOLCHAIN_ONLY
  62. boolean "Only build toolchain and selected packages"
  63. config ADK_TOOLCHAIN_ARCHIVE
  64. boolean "Build a complete system usable f.e. via chroot"
  65. endchoice
  66. config ADK_32
  67. boolean
  68. config ADK_64
  69. boolean
  70. config ADK_x32
  71. boolean
  72. config ADK_o32
  73. boolean
  74. config ADK_n32
  75. boolean
  76. config ADK_n64
  77. boolean
  78. config ADK_eabi
  79. boolean
  80. config ADK_eabihf
  81. boolean
  82. config ADK_TARGET_ABI
  83. string
  84. default "n32" if ADK_n32
  85. default "n64" if ADK_n64
  86. default "32" if ADK_32
  87. default "x32" if ADK_x32
  88. default "eabi" if ADK_eabi
  89. default "eabihf" if ADK_eabihf
  90. config ADK_TARGET_MIPS_ABI
  91. depends on ADK_LINUX_MIPS
  92. string
  93. default "32" if ADK_o32
  94. default "n32" if ADK_n32
  95. default "64" if ADK_n64
  96. choice
  97. prompt "Target ABI"
  98. depends on ADK_LINUX_64 && ADK_LINUX_MIPS && !ADK_TOOLCHAIN
  99. config ADK_TARGET_ABI_N32
  100. boolean "N32 ABI (new)"
  101. select ADK_n32
  102. config ADK_TARGET_ABI_O32
  103. boolean "O32 ABI (old)"
  104. select ADK_o32
  105. config ADK_TARGET_ABI_N64
  106. boolean "N64 ABI"
  107. select ADK_n64
  108. endchoice
  109. choice
  110. prompt "Target ABI"
  111. depends on ADK_LINUX_64 && ADK_LINUX_X86_64 && !ADK_TOOLCHAIN
  112. config ADK_TARGET_ABI_64
  113. boolean "64 Bit ABI"
  114. select ADK_64
  115. config ADK_TARGET_ABI_X32
  116. boolean "x32 ABI (new)"
  117. select ADK_x32
  118. config ADK_TARGET_ABI_32
  119. boolean "32 Bit ABI"
  120. select ADK_32
  121. endchoice
  122. config ADK_TARGET_LIBC_PATH
  123. string
  124. default "lib32" if ADK_n32
  125. default "libx32" if ADK_x32
  126. default "lib64" if ADK_n64 \
  127. || ADK_64 \
  128. || ADK_LINUX_SPARC64 \
  129. || ADK_LINUX_PPC64 \
  130. || ADK_LINUX_X86_64
  131. default "lib"
  132. config ADK_TARGET_KERNEL_MINICONFIG
  133. string
  134. default "qemu-microblaze-s3adsp1800" if ADK_TARGET_QEMU_MICROBLAZE_MODEL_S3ADSP1800
  135. default "qemu-microblaze-ml605" if ADK_TARGET_QEMU_MICROBLAZE_MODEL_ML605
  136. default "qemu-arm-versatilepb" if ADK_TARGET_QEMU_ARM_MODEL_VERSATILEPB
  137. default "qemu-arm-vexpress-a9" if ADK_TARGET_QEMU_ARM_MODEL_VEXPRESS_A9
  138. default "qemu-arm-spitz" if ADK_TARGET_QEMU_ARM_MODEL_SPITZ
  139. default "qemu-mips" if ADK_TARGET_SYSTEM_QEMU_MIPS
  140. default "qemu-mipsel" if ADK_TARGET_SYSTEM_QEMU_MIPSEL
  141. default "qemu-mips64" if ADK_TARGET_SYSTEM_QEMU_MIPS64
  142. default "qemu-mips64el" if ADK_TARGET_SYSTEM_QEMU_MIPS64EL
  143. default "qemu-ppc" if ADK_TARGET_SYSTEM_QEMU_PPC
  144. default "qemu-ppc64" if ADK_TARGET_SYSTEM_QEMU_PPC64
  145. default "qemu-sh" if ADK_TARGET_SYSTEM_QEMU_SH4
  146. default "qemu-sh" if ADK_TARGET_SYSTEM_QEMU_SH4EB
  147. default "qemu-sparc" if ADK_TARGET_SYSTEM_QEMU_SPARC
  148. default "qemu-sparc64" if ADK_TARGET_SYSTEM_QEMU_SPARC64
  149. default "qemu-i686" if ADK_TARGET_SYSTEM_QEMU_I686
  150. default "qemu-x86_64" if ADK_TARGET_SYSTEM_QEMU_X86_64
  151. default "aranym-m68k" if ADK_TARGET_SYSTEM_ARANYM_M68K
  152. default "ibm-x40" if ADK_TARGET_SYSTEM_IBM_X40
  153. default "cubox-i" if ADK_TARGET_SYSTEM_CUBOX_I
  154. default "raspberry-pi" if ADK_TARGET_SYSTEM_RASPBERRY_PI
  155. default "sharp-zaurus" if ADK_TARGET_SYSTEM_SHARP_ZAURUS
  156. default "lemote-yeelong" if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
  157. config ADK_QEMU_ARGS
  158. string
  159. default "-nographic" if ADK_TARGET_QEMU_WITHOUT_GRAPHIC
  160. choice
  161. prompt "Qemu MICROBLAZE Emulation"
  162. depends on ADK_TARGET_SYSTEM_QEMU_MICROBLAZE || ADK_TARGET_SYSTEM_QEMU_MICROBLAZEEL
  163. config ADK_TARGET_QEMU_MICROBLAZE_MODEL_ML605
  164. boolean "Xilinx ml605"
  165. config ADK_TARGET_QEMU_MICROBLAZE_MODEL_S3ADSP1800
  166. boolean "Xilinx Spartan S3ADSP1800"
  167. endchoice
  168. choice
  169. prompt "Qemu ARM Emulation"
  170. depends on ADK_TARGET_SYSTEM_QEMU_ARM || ADK_TARGET_SYSTEM_QEMU_ARMHF
  171. config ADK_TARGET_QEMU_ARM_MODEL_VEXPRESS_A9
  172. boolean "ARM Ltd. Versatile Express for Cortex-A9"
  173. select ADK_CPU_CORTEX_A9
  174. config ADK_TARGET_QEMU_ARM_MODEL_VERSATILEPB
  175. boolean "ARM Ltd. Versatile/PB"
  176. select ADK_soft_float
  177. select ADK_eabi
  178. select ADK_CPU_ARM926EJ_S
  179. depends on ADK_TARGET_SYSTEM_QEMU_ARM
  180. config ADK_TARGET_QEMU_ARM_MODEL_SPITZ
  181. boolean "Xscale PXA270 Spitz PDA"
  182. select ADK_soft_float
  183. select ADK_eabi
  184. select ADK_CPU_XSCALE
  185. depends on ADK_TARGET_SYSTEM_QEMU_ARM
  186. endchoice
  187. choice
  188. prompt "Qemu Emulation with permanent storage device (disk/flash)"
  189. depends on ADK_HARDWARE_QEMU
  190. default ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_ROOTFS_ARCHIVE
  191. config ADK_TARGET_QEMU_WITHOUT_BLOCK
  192. boolean "disabled"
  193. config ADK_TARGET_QEMU_WITH_BLOCK
  194. boolean "enabled"
  195. select ADK_KERNEL_SCSI_SYM53C8XX_2 if ADK_TARGET_QEMU_ARM_MODEL_VERSATILEPB
  196. select ADK_KERNEL_MTD_M25P80 if ADK_TARGET_QEMU_MICROBLAZE_MODEL_ML605
  197. select ADK_KERNEL_ATA_PIIX if ADK_LINUX_MIPS || ADK_TARGET_SYSTEM_QEMU_I686 || ADK_TARGET_SYSTEM_QEMU_X86_64
  198. select ADK_KERNEL_PATA_MACIO if ADK_TARGET_SYSTEM_QEMU_PPC
  199. select ADK_KERNEL_SCSI_IBMVSCSI if ADK_TARGET_SYSTEM_QEMU_PPC64
  200. select ADK_KERNEL_SCSI_SUNESP if ADK_TARGET_SYSTEM_QEMU_SPARC
  201. select ADK_KERNEL_PATA_PLATFORM if ADK_LINUX_SH
  202. endchoice
  203. choice
  204. prompt "Qemu Emulation with graphical output"
  205. depends on ADK_HARDWARE_QEMU
  206. config ADK_TARGET_QEMU_WITHOUT_GRAPHIC
  207. boolean "disabled"
  208. config ADK_TARGET_QEMU_WITH_GRAPHIC
  209. boolean "enabled"
  210. select ADK_KERNEL_VT
  211. select ADK_KERNEL_VT_CONSOLE
  212. select ADK_KERNEL_FONTS
  213. select ADK_KERNEL_FONT_8x16
  214. select ADK_KERNEL_FB
  215. select ADK_KERNEL_FRAMEBUFFER_CONSOLE
  216. select ADK_KERNEL_FB_SM501 if ADK_TARGET_SYSTEM_QEMU_SH4 || ADK_TARGET_SYSTEM_QEMU_SH4EB
  217. select ADK_KERNEL_FB_CIRRUS if ADK_TARGET_SYSTEM_QEMU_I686 || ADK_TARGET_SYSTEM_QEMU_X86_64
  218. select ADK_KERNEL_FB_PXA if ADK_TARGET_QEMU_ARM_MODEL_SPITZ
  219. select ADK_KERNEL_INPUT
  220. select ADK_KERNEL_INPUT_KEYBOARD
  221. select ADK_KERNEL_KEYBOARD_ATKBD if ADK_TARGET_SYSTEM_QEMU_I686 || ADK_TARGET_SYSTEM_QEMU_X86_64
  222. select ADK_KERNEL_INPUT_MOUSE
  223. select ADK_KERNEL_INPUT_MOUSEDEV
  224. select ADK_KERNEL_USB_HID if ADK_TARGET_SYSTEM_QEMU_SH4 || ADK_TARGET_SYSTEM_QEMU_SH4EB
  225. endchoice
  226. choice
  227. prompt "Qemu Emulation using VirtIO drivers"
  228. depends on ADK_TARGET_SYSTEM_QEMU_SPARC64 || \
  229. ADK_TARGET_SYSTEM_QEMU_I686 || \
  230. ADK_TARGET_SYSTEM_QEMU_X86_64
  231. default ADK_TARGET_QEMU_WITH_VIRTIO if ADK_TARGET_SYSTEM_QEMU_SPARC64
  232. config ADK_TARGET_QEMU_WITHOUT_VIRTIO
  233. boolean "disabled"
  234. config ADK_TARGET_QEMU_WITH_VIRTIO
  235. boolean "enabled"
  236. select ADK_KERNEL_BLK_DEV
  237. select ADK_KERNEL_VIRTIO
  238. select ADK_KERNEL_VIRTIO_PCI
  239. select ADK_KERNEL_VIRTIO_NET
  240. select ADK_KERNEL_VIRTIO_BLK
  241. endchoice
  242. choice
  243. prompt "Use ARM thumb mode"
  244. depends on ADK_CPU_CORTEX_A9
  245. config ADK_LINUX_ARM_WITHOUT_THUMB
  246. boolean "disabled"
  247. select ADK_mode_arm
  248. config ADK_LINUX_ARM_WITH_THUMB
  249. boolean "enabled"
  250. select ADK_mode_thumb
  251. select ADK_KERNEL_THUMB2_KERNEL
  252. endchoice
  253. # hardware features, do not use for qemu
  254. config ADK_TARGET_WITH_USB
  255. boolean
  256. config ADK_TARGET_WITH_PCI
  257. boolean
  258. config ADK_TARGET_WITH_SSB
  259. boolean
  260. config ADK_TARGET_WITH_AHB
  261. boolean
  262. config ADK_TARGET_WITH_MINIPCI
  263. boolean
  264. config ADK_TARGET_WITH_ACPI
  265. boolean
  266. config ADK_TARGET_WITH_VGA
  267. boolean
  268. config ADK_TARGET_WITH_CF
  269. boolean
  270. config ADK_TARGET_WITH_MMC
  271. boolean
  272. config ADK_TARGET_WITH_NAND
  273. boolean
  274. config ADK_TARGET_WITH_MTD
  275. boolean
  276. config ADK_TARGET_WITH_GEODE_CRYPTO
  277. boolean
  278. config ADK_TARGET_WITH_HDD
  279. boolean
  280. config ADK_TARGET_WITH_SATA
  281. boolean
  282. config ADK_TARGET_WITH_INPUT
  283. boolean
  284. config ADK_TARGET_WITH_SOUND
  285. boolean
  286. config ADK_TARGET_WITH_TOUCHSCREEN
  287. boolean
  288. config ADK_TARGET_WITH_LEDS
  289. boolean
  290. config ADK_TARGET_WITH_PP
  291. boolean
  292. config ADK_TARGET_WITH_CARDBUS
  293. boolean
  294. config ADK_TARGET_WITH_PCMCIA
  295. boolean
  296. config ADK_TARGET_WITH_RTC
  297. boolean
  298. config ADK_TARGET_WITH_WATCHDOG
  299. boolean
  300. config ADK_TARGET_WITH_DSL
  301. boolean
  302. config ADK_TARGET_WITH_USB_BOOT
  303. boolean
  304. config ADK_TARGET_KERNEL_MAY_64BIT
  305. boolean
  306. # global symbols
  307. config ADK_TOOLCHAIN_ONLY
  308. boolean
  309. config ADK_LINUX_64
  310. boolean
  311. config ADK_HARDWARE_QEMU
  312. boolean
  313. config ADK_HARDWARE_VBOX
  314. boolean
  315. # the inverse of ADK_TARGET_KERNEL_CUSTOMISING,
  316. # allows for selecting it off (i.e., to disable it)
  317. config ADK_TARGET_FIXED_KERNEL
  318. bool
  319. default n
  320. config ADK_TARGET_KERNEL_CUSTOMISING
  321. bool
  322. default y
  323. depends on !ADK_TARGET_FIXED_KERNEL
  324. # cpu features
  325. config ADK_TARGET_CPU_WITH_VT
  326. boolean
  327. config ADK_TARGET_CPU_WITH_MTRR
  328. boolean
  329. config ADK_TARGET_CPU_WITH_MMX
  330. boolean
  331. config ADK_TARGET_CPU_WITH_MMXEXT
  332. boolean
  333. config ADK_TARGET_CPU_WITH_SSE
  334. boolean
  335. config ADK_TARGET_CPU_WITH_SSE2
  336. boolean
  337. config ADK_TARGET_CPU_WITH_SSE3
  338. boolean
  339. config ADK_TARGET_CPU_WITH_SSSE3
  340. boolean
  341. config ADK_TARGET_CPU_WITH_IWMMXT
  342. boolean
  343. # hyper threading
  344. config ADK_TARGET_CPU_WITH_HT
  345. boolean
  346. config ADK_TARGET_CPU_WITH_3DNOW
  347. boolean
  348. config ADK_TARGET_CPU_WITH_3DNOWEXT
  349. boolean
  350. # cpu configuration
  351. config ADK_CPU_SH4
  352. boolean
  353. config ADK_CPU_SPARC_V8
  354. boolean
  355. config ADK_CPU_SPARC_V9
  356. boolean
  357. config ADK_CPU_I486
  358. boolean
  359. config ADK_CPU_I586
  360. boolean
  361. config ADK_CPU_I686
  362. boolean
  363. config ADK_CPU_X86_64
  364. boolean
  365. config ADK_CPU_GEODE
  366. boolean
  367. config ADK_CPU_PPC
  368. boolean
  369. config ADK_CPU_PPC64
  370. boolean
  371. config ADK_CPU_PENTIUM_M
  372. boolean
  373. config ADK_CPU_ATOM
  374. boolean
  375. config ADK_CPU_AMDFAM10
  376. select ADK_TARGET_CPU_WITH_VT
  377. boolean
  378. config ADK_CPU_LOONGSON2F
  379. boolean
  380. config ADK_CPU_XSCALE
  381. boolean
  382. config ADK_CPU_M68K
  383. boolean
  384. config ADK_CPU_MIPS32
  385. boolean
  386. config ADK_CPU_MIPS64
  387. boolean
  388. config ADK_CPU_MICROBLAZE
  389. boolean
  390. config ADK_CPU_ARM926EJ_S
  391. boolean
  392. config ADK_CPU_ARM1176JZF_S
  393. boolean
  394. config ADK_CPU_CORTEX_A9
  395. boolean
  396. config ADK_TARGET_CPU_ARCH
  397. string
  398. default "x86_64" if ADK_CPU_X86_64
  399. default "x86_64" if ADK_CPU_AMDFAM10
  400. default "i486" if ADK_CPU_I486
  401. default "i586" if ADK_CPU_I586
  402. default "i686" if ADK_CPU_I686
  403. default "i586" if ADK_CPU_GEODE
  404. default "i686" if ADK_CPU_PENTIUM_M
  405. default "i686" if ADK_CPU_ATOM
  406. default "m68k" if ADK_LINUX_M68K
  407. default "microblaze" if ADK_LINUX_MICROBLAZE && ADK_big
  408. default "microblazeel" if ADK_LINUX_MICROBLAZE && ADK_little
  409. default "mips64" if ADK_LINUX_MIPS && ADK_big && ADK_LINUX_64
  410. default "mips64el" if ADK_LINUX_MIPS && ADK_little && ADK_LINUX_64
  411. default "mips" if ADK_LINUX_MIPS && ADK_big
  412. default "mipsel" if ADK_LINUX_MIPS && ADK_little
  413. default "arm" if ADK_LINUX_ARM && ADK_little
  414. default "sparc" if ADK_LINUX_SPARC
  415. default "sparc64" if ADK_LINUX_SPARC64
  416. default "sh4" if ADK_LINUX_SH && ADK_little
  417. default "sh4eb" if ADK_LINUX_SH && ADK_big
  418. default "ppc" if ADK_CPU_PPC
  419. default "ppc64" if ADK_CPU_PPC64
  420. default "mips64el" if ADK_native && ADK_lemote_yeelong
  421. config ADK_TARGET_ABI_CFLAGS
  422. string
  423. default "-mabi=32" if ADK_o32
  424. default "-mabi=n32" if ADK_n32
  425. default "-mabi=64" if ADK_n64
  426. default "-m32" if ADK_32
  427. default "-mx32" if ADK_x32
  428. default "-m64" if ADK_64
  429. config ADK_TARGET_CFLAGS
  430. string
  431. default "-march=geode" if ADK_CPU_GEODE
  432. default "-march=i486" if ADK_CPU_I486
  433. default "-march=i586" if ADK_CPU_I586
  434. default "-march=i686" if ADK_CPU_I686
  435. default "-march=pentium-m" if ADK_CPU_PENTIUM_M
  436. default "-march=atom" if ADK_CPU_ATOM
  437. default "-march=amdfam10" if ADK_CPU_AMDFAM10
  438. default "-mcpu=v8" if ADK_CPU_SPARC_V8
  439. default "-m64 -mcpu=ultrasparc" if ADK_CPU_SPARC_V9
  440. default "-march=loongson2f -Wa,-mfix-loongson2f-nop" if ADK_CPU_LOONGSON2F
  441. default "-march=mips32" if ADK_CPU_MIPS32
  442. default "-march=mips64" if ADK_CPU_MIPS64
  443. default "-march=armv5te -mtune=iwmmxt" if ADK_CPU_XSCALE
  444. default "-march=armv5te -mtune=arm926ej-s -mfloat-abi=soft" if ADK_CPU_ARM926EJ_S && ADK_soft_float
  445. default "-march=armv5te -mtune=arm926ej-s -mfloat-abi=hard" if ADK_CPU_ARM926EJ_S && ADK_hard_float
  446. default "-march=armv6 -mtune=arm1176jzf-s -mfloat-abi=soft" if ADK_CPU_ARM1176JZF_S && ADK_soft_float
  447. default "-march=armv6 -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard" if ADK_CPU_ARM1176JZF_S && ADK_hard_float
  448. default "-march=armv7-a -mtune=cortex-a9 -mfloat-abi=soft" if ADK_CPU_CORTEX_A9 && ADK_soft_float
  449. default "-march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard" if ADK_CPU_CORTEX_A9 && ADK_hard_float
  450. config ADK_TARGET_CMDLINE
  451. string
  452. default "dwc_otg.fiq_split_enable=1" if ADK_TARGET_SYSTEM_RASPBERRY_PI
  453. default "console=ttymxc0,115200" if ADK_TARGET_SYSTEM_CUBOX_I
  454. default "console=tty0" if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
  455. default "console=ttyS0,115200 console=tty0" if ADK_TARGET_SYSTEM_IBM_X40
  456. default "console=ttyS0,115200 console=tty0 fbcon=rotate:1" if ADK_TARGET_SYSTEM_SHARP_ZAURUS
  457. default "console=ttyS0,9600" if ADK_TARGET_SYSTEM_FON_FON2100
  458. default "console=ttyS0,38400" if ADK_TARGET_SYSTEM_PCENGINES_WRAP
  459. default "console=ttyS0,115200 console=tty0 geodewdt.nowayout=1" if ADK_TARGET_SYSTEM_PCENGINES_ALIX1C
  460. default "console=ttyS0,115200 console=tty0" if ADK_TARGET_SYSTEM_VBOX_I686
  461. default "console=tty0" if ADK_TARGET_SYSTEM_ARANYM_M68K
  462. default "console=ttyS0,115200" if ADK_TARGET_SYSTEM_QEMU_I686
  463. default "console=ttyS0,115200" if ADK_TARGET_SYSTEM_QEMU_X86_64
  464. default "console=ttyS0,115200" if ADK_TARGET_SYSTEM_QEMU_SPARC64
  465. default "console=ttyS0,9600" if ADK_TARGET_SYSTEM_QEMU_PPC
  466. default "console=hvc0" if ADK_TARGET_SYSTEM_QEMU_PPC64
  467. default "console=ttyUL0" if ADK_TARGET_QEMU_MICROBLAZE_MODEL_S3ADSP1800
  468. default "console=ttyS0,115200" if ADK_TARGET_QEMU_MICROBLAZE_MODEL_ML605
  469. default "console=ttyS0,115200" if ADK_TARGET_QEMU_ARM_MODEL_SPITZ
  470. default "console=ttyAMA0" if ADK_TARGET_QEMU_ARM_MODEL_VERSATILEPB
  471. default "console=ttyAMA0" if ADK_TARGET_QEMU_ARM_MODEL_VEXPRESS_A9
  472. default "console=ttySC1" if ADK_TARGET_SYSTEM_QEMU_SH4
  473. default "console=ttySC1" if ADK_TARGET_SYSTEM_QEMU_SH4EB
  474. default "console=ttyS0,115200" if ADK_TARGET_SYSTEM_PCENGINES_ALIX2D13
  475. default "console=ttyS0,115200" if ADK_TARGET_SYSTEM_PCENGINES_ALIX2D2
  476. default ""
  477. # c library
  478. config ADK_uclibc
  479. boolean
  480. config ADK_glibc
  481. boolean
  482. config ADK_musl
  483. boolean
  484. config ADK_TARGET_LIBC
  485. string
  486. default "uclibc" if ADK_uclibc
  487. default "glibc" if ADK_glibc
  488. default "musl" if ADK_musl
  489. source "target/linux/config/Config.in.kernel"
  490. choice
  491. prompt "Target C library"
  492. depends on !ADK_CHOOSE_TARGET_SYSTEM && !ADK_CHOOSE_TARGET_ARCH
  493. config ADK_TARGET_LIB_UCLIBC
  494. prompt "uClibc embedded C library"
  495. boolean
  496. select ADK_uclibc
  497. depends on \
  498. !ADK_LINUX_M68K && \
  499. !ADK_LINUX_MICROBLAZE && \
  500. !ADK_LINUX_SPARC64 && \
  501. !ADK_LINUX_PPC64 && \
  502. !ADK_TARGET_ABI_X32
  503. help
  504. http://uclibc.org
  505. config ADK_TARGET_LIB_GLIBC
  506. prompt "GNU C library"
  507. boolean
  508. select ADK_glibc
  509. depends on \
  510. ADK_LINUX_ARM || \
  511. ADK_LINUX_M68K || \
  512. ADK_LINUX_MICROBLAZE || \
  513. ADK_LINUX_MIPS || \
  514. ADK_LINUX_PPC || \
  515. ADK_LINUX_PPC64 || \
  516. ADK_LINUX_SH || \
  517. ADK_LINUX_SPARC || \
  518. ADK_LINUX_SPARC64 || \
  519. ADK_LINUX_X86 || \
  520. ADK_LINUX_X86_64
  521. help
  522. http://www.gnu.org/libc
  523. config ADK_TARGET_LIB_MUSL
  524. prompt "musl C library"
  525. boolean
  526. select ADK_musl
  527. depends on !ADK_LINUX_MIPS64
  528. depends on \
  529. ADK_LINUX_ARM || \
  530. ADK_LINUX_MICROBLAZE || \
  531. ADK_LINUX_MIPS || \
  532. ADK_LINUX_PPC || \
  533. ADK_LINUX_SH || \
  534. ADK_LINUX_X86 || \
  535. ADK_LINUX_X86_64
  536. help
  537. http://musl-libc.org
  538. endchoice
  539. config ADK_TARGET_SUFFIX
  540. string
  541. default "gnueabihf" if ADK_TARGET_LIB_GLIBC && ADK_eabihf
  542. default "gnueabi" if ADK_TARGET_LIB_GLIBC && ADK_eabi
  543. default "gnuabi64" if ADK_TARGET_LIB_GLIBC && ADK_n64
  544. default "gnuabin32" if ADK_TARGET_LIB_GLIBC && ADK_n32
  545. default "gnuabi32" if ADK_TARGET_LIB_GLIBC && ADK_o32
  546. default "gnu32" if ADK_TARGET_LIB_GLIBC && ADK_32 && ADK_LINUX_64
  547. default "gnux32" if ADK_TARGET_LIB_GLIBC && ADK_x32 && ADK_LINUX_64
  548. default "gnu" if ADK_TARGET_LIB_GLIBC
  549. default "uclibcgnueabihf" if ADK_TARGET_LIB_UCLIBC && ADK_eabihf
  550. default "uclibcgnueabi" if ADK_TARGET_LIB_UCLIBC && ADK_eabi
  551. default "uclibcabi64" if ADK_TARGET_LIB_UCLIBC && ADK_n64
  552. default "uclibcabin32" if ADK_TARGET_LIB_UCLIBC && ADK_n32
  553. default "uclibcabi32" if ADK_TARGET_LIB_UCLIBC && ADK_o32
  554. default "uclibc32" if ADK_TARGET_LIB_UCLIBC && ADK_32 && ADK_LINUX_64
  555. default "uclibcx32" if ADK_TARGET_LIB_UCLIBC && ADK_x32 && ADK_LINUX_64
  556. default "uclibc" if ADK_TARGET_LIB_UCLIBC
  557. default "muslgnueabihf" if ADK_TARGET_LIB_MUSL && ADK_eabihf
  558. default "muslgnueabi" if ADK_TARGET_LIB_MUSL && ADK_eabi
  559. default "muslabi64" if ADK_TARGET_LIB_MUSL && ADK_n64
  560. default "muslabin32" if ADK_TARGET_LIB_MUSL && ADK_n32
  561. default "muslabi32" if ADK_TARGET_LIB_MUSL && ADK_o32
  562. default "musl32" if ADK_TARGET_LIB_MUSL && ADK_32 && ADK_LINUX_64
  563. default "muslx32" if ADK_TARGET_LIB_MUSL && ADK_x32 && ADK_LINUX_64
  564. default "musl" if ADK_TARGET_LIB_MUSL
  565. choice
  566. prompt "Target firmware type"
  567. depends on !ADK_CHOOSE_TARGET_SYSTEM && !ADK_CHOOSE_TARGET_ARCH && !ADK_TOOLCHAIN
  568. default ADK_TARGET_ROOTFS_ARCHIVE
  569. config ADK_TARGET_ROOTFS_INITRAMFS
  570. bool "initramfs filesystem"
  571. depends on \
  572. ADK_HARDWARE_QEMU || \
  573. ADK_LINUX_M68K || \
  574. ADK_LINUX_ARM || \
  575. ADK_LINUX_MICROBLAZE || \
  576. ADK_LINUX_MIPS || \
  577. ADK_LINUX_PPC || \
  578. ADK_LINUX_SPARC || \
  579. ADK_LINUX_X86 || \
  580. ADK_LINUX_X86_64 || \
  581. ADK_LINUX_NATIVE
  582. depends on !ADK_HARDWARE_VBOX
  583. depends on !ADK_TARGET_SYSTEM_RASPBERRY_PI
  584. select ADK_KERNEL_BLK_DEV_INITRD
  585. select ADK_KERNEL_BLK_DEV_RAM if ADK_TARGET_SYSTEM_ARANYM_M68K
  586. help
  587. create an read-only initramfs system.
  588. config ADK_TARGET_ROOTFS_INITRAMFS_PIGGYBACK
  589. bool "initramfs filesystem included into kernel image"
  590. select ADK_LINUX_INITRAMFS_BUILTIN
  591. depends on \
  592. ADK_HARDWARE_QEMU || \
  593. ADK_LINUX_ARM || \
  594. ADK_LINUX_M68K || \
  595. ADK_LINUX_MICROBLAZE || \
  596. ADK_LINUX_MIPS || \
  597. ADK_LINUX_PPC || \
  598. ADK_LINUX_SPARC || \
  599. ADK_LINUX_X86 || \
  600. ADK_LINUX_X86_64 || \
  601. ADK_LINUX_NATIVE
  602. depends on !ADK_HARDWARE_VBOX
  603. select ADK_KERNEL_EXT2_FS
  604. help
  605. create an read-only initramfs system.
  606. config ADK_TARGET_ROOTFS_SQUASHFS
  607. bool "Compressed read-only root filesystem (squashfs)"
  608. select ADK_KERNEL_SQUASHFS
  609. select ADK_HOST_NEED_SQUASHFS
  610. depends on ADK_TARGET_WITH_MTD
  611. help
  612. highly compressed read-only filesystem for MTD flash systems.
  613. config ADK_TARGET_ROOTFS_JFFS2
  614. bool "Compressed read-write root filesystem (jffs2)"
  615. select ADK_KERNEL_MISC_FILESYSTEMS
  616. select ADK_KERNEL_JFFS2
  617. select ADK_HOST_NEED_JFFS2
  618. depends on ADK_TARGET_WITH_MTD
  619. help
  620. compressed read-write filesystem for MTD flash systems.
  621. config ADK_TARGET_ROOTFS_YAFFS
  622. bool "YAFFS2 root filesystem (NAND)"
  623. select ADK_KERNEL_MISC_FILESYSTEMS
  624. select ADK_KERNEL_YAFFS_FS
  625. select ADK_KERNEL_YAFFS_YAFFS2
  626. select ADK_KERNEL_YAFFS_AUTO_YAFFS2
  627. depends on ADK_TARGET_WITH_NAND
  628. help
  629. Root filesystem on NAND flash with YAFFS2.
  630. config ADK_TARGET_ROOTFS_NFSROOT
  631. bool "NFS root"
  632. select ADK_KERNEL_NETWORK_FILESYSTEMS
  633. select ADK_KERNEL_SUNRPC
  634. select ADK_KERNEL_NFS_FS
  635. select ADK_KERNEL_NFS_V3
  636. select ADK_KERNEL_ROOT_NFS
  637. select ADK_KERNEL_NFS_COMMON
  638. select ADK_KERNEL_IP_PNP
  639. select ADK_KERNEL_IP_PNP_DHCP
  640. depends on !ADK_HARDWARE_QEMU && !ADK_HARDWARE_VBOX && !ADK_TARGET_SYSTEM_ARANYM_M68K
  641. depends on !ADK_TARGET_SYSTEM_RASPBERRY_PI
  642. help
  643. Root filesystem mounted via NFS. (DHCP)
  644. config ADK_TARGET_ROOTFS_USB
  645. bool "Boot from USB stick"
  646. select ADK_KERNEL_NLS
  647. select ADK_KERNEL_SCSI
  648. select ADK_KERNEL_BLK_DEV_SD
  649. select ADK_KERNEL_USB
  650. select ADK_KERNEL_USB_EHCI_HCD
  651. select ADK_KERNEL_USB_OHCI_HCD
  652. select ADK_KERNEL_USB_UHCI_HCD
  653. select ADK_KERNEL_USB_STORAGE
  654. select ADK_KERNEL_EXT2_FS
  655. depends on ADK_TARGET_WITH_USB_BOOT
  656. help
  657. Boot system from USB stick.
  658. config ADK_TARGET_ROOTFS_CF
  659. bool "read-write filesystem for compact flash"
  660. depends on ADK_TARGET_WITH_CF
  661. select ADK_KERNEL_EXT2_FS
  662. select ADK_KERNEL_SCSI
  663. help
  664. Use this option if you have a compact flash based system.
  665. (ext2 filesystem is used.)
  666. config ADK_TARGET_ROOTFS_GENEXT2FS
  667. bool "read-write filesystem for compact flash (genext2fs version)"
  668. depends on ADK_TARGET_WITH_CF
  669. select ADK_KERNEL_EXT2_FS
  670. select ADK_KERNEL_SCSI
  671. select ADK_HOST_NEED_GENEXT2FS
  672. help
  673. Use this option if you have a compact flash based system.
  674. (ext2 filesystem is used.)
  675. config ADK_TARGET_ROOTFS_MMC
  676. bool "read-write filesystem for mmc/sdcard"
  677. depends on ADK_TARGET_WITH_MMC
  678. select ADK_KERNEL_EXT2_FS
  679. select ADK_KERNEL_SCSI
  680. depends on !ADK_TARGET_SYSTEM_RASPBERRY_PI
  681. help
  682. Use this option if you have a MMC/SDCARD based system.
  683. (ext2 filesystem is used.)
  684. config ADK_TARGET_ROOTFS_ISO
  685. bool "ISO image"
  686. select ADK_KERNEL_ISO9660_FS
  687. select ADK_KERNEL_JOLIET
  688. select ADK_KERNEL_SCSI
  689. select ADK_KERNEL_BLK_DEV_SR
  690. select ADK_HOST_NEED_MKISOFS
  691. select ADK_HOST_NEED_SYSLINUX
  692. depends on ADK_HOST_LINUX
  693. depends on ADK_LINUX_X86
  694. help
  695. Use this option to create a bootable ISO image.
  696. config ADK_TARGET_ROOTFS_INITRAMFSARCHIVE
  697. bool "Archive usable for initramfs creation"
  698. help
  699. Use this option if your palnning to create a initramfs,
  700. useful for adk-test-framework.
  701. config ADK_TARGET_ROOTFS_ARCHIVE
  702. bool "Archive usable for different filesystems"
  703. select ADK_HOST_NEED_GENEXT2FS if ADK_HARDWARE_QEMU
  704. select ADK_KERNEL_EXT2_FS if ADK_HARDWARE_QEMU
  705. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_HARDWARE_QEMU
  706. help
  707. Use this option if your root filesystem is ext2/ext3/ext4/xfs.
  708. endchoice
  709. config ADK_TARGET_ROOT_EXT4_RASPBERRY_PI
  710. boolean
  711. depends on ADK_TARGET_SYSTEM_RASPBERRY_PI && ADK_TARGET_ROOTFS_ARCHIVE
  712. select ADK_KERNEL_EXT4_FS
  713. default y
  714. help
  715. Compile EXT4 filesystem into kernel and use it as root filesystem.
  716. choice
  717. prompt "Root filesystem type"
  718. depends on ADK_TARGET_ROOTFS_ARCHIVE && !ADK_TARGET_SYSTEM_RASPBERRY_PI && !ADK_HARDWARE_QEMU
  719. default ADK_TARGET_ROOT_EXT2_FS
  720. config ADK_TARGET_ROOT_EXT2
  721. boolean
  722. prompt "EXT2 filesystem"
  723. select ADK_KERNEL_EXT2_FS
  724. help
  725. Compile EXT2 filesystem into kernel and use it as root filesystem.
  726. config ADK_TARGET_ROOT_EXT3
  727. boolean
  728. prompt "EXT3 filesystem"
  729. select ADK_KERNEL_EXT3_FS
  730. help
  731. Compile EXT3 filesystem into kernel and use it as root filesystem.
  732. config ADK_TARGET_ROOT_EXT4
  733. boolean
  734. prompt "EXT4 filesystem"
  735. select ADK_KERNEL_EXT4_FS
  736. help
  737. Compile EXT4 filesystem into kernel and use it as root filesystem.
  738. config ADK_TARGET_ROOT_XFS
  739. boolean
  740. prompt "XFS filesystem"
  741. select ADK_KERNEL_XFS_FS
  742. help
  743. Compile XFS filesystem into kernel and use it as root filesystem.
  744. endchoice
  745. config ADK_TARGET_ROOTFS
  746. string
  747. default "xfs" if ADK_TARGET_ROOT_XFS
  748. default "ext2" if ADK_TARGET_ROOT_EXT2
  749. default "ext3" if ADK_TARGET_ROOT_EXT3
  750. default "ext4" if ADK_TARGET_ROOT_EXT4
  751. help
  752. config ADK_PACKAGE_SUFFIX
  753. string
  754. default "ipk" if ADK_TARGET_PACKAGE_IPKG
  755. default "tar.gz" if ADK_TARGET_PACKAGE_TGZ
  756. help
  757. choice
  758. prompt "Target package format"
  759. default ADK_TARGET_PACKAGE_IPKG
  760. depends on !ADK_CHOOSE_TARGET_SYSTEM && !ADK_CHOOSE_TARGET_ARCH
  761. config ADK_TARGET_PACKAGE_IPKG
  762. boolean
  763. prompt "ipkg"
  764. select BUSYBOX_IPKG
  765. help
  766. Create ipkg packages and use ipkg package management on the target.
  767. config ADK_TARGET_PACKAGE_TGZ
  768. boolean
  769. prompt "tar archive"
  770. help
  771. Create compressed tar archives of packages.
  772. Pre- and post install scripts will be executed in the target
  773. directory. There will be no package manager installed onto the target.
  774. endchoice
  775. source "target/config/Config.in.tools"