Config.in 24 KB

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