Config.in 24 KB

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