Config.in.target 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  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_CFLAGS
  4. string
  5. default "-march=v32" if ADK_CPU_CRIS_V32
  6. default "-march=v10" if ADK_CPU_CRIS_V10
  7. default "-mcpu=5208" if ADK_CPU_CF_5208
  8. default "-mcpu=v7.10.d" if ADK_CPU_MICROBLAZE
  9. default "-m4 -ml" if ADK_CPU_SH4 && ADK_little
  10. default "-m4 -mb" if ADK_CPU_SH4 && ADK_big
  11. default "-mcpu=powerpc" if ADK_CPU_PPC
  12. default "-mcpu=440" if ADK_CPU_PPC_440
  13. default "-mcpu=powerpc64" if ADK_CPU_PPC64
  14. default "-march=geode" if ADK_CPU_GEODE
  15. default "-march=i486" if ADK_CPU_I486
  16. default "-march=i586" if ADK_CPU_I586
  17. default "-march=i686" if ADK_CPU_I686
  18. default "-march=x86-64" if ADK_CPU_X86_64
  19. default "-march=athlon" if ADK_CPU_ATHLON
  20. default "-march=pentium-m" if ADK_CPU_PENTIUM_M
  21. default "-march=atom" if ADK_CPU_ATOM
  22. default "-march=amdfam10" if ADK_CPU_AMDFAM10
  23. default "-mcpu=v8" if ADK_CPU_SPARC_V8
  24. default "-mcpu=ultrasparc -m64" if ADK_CPU_SPARC_V9
  25. default "-march=loongson2f -Wa,-mfix-loongson2f-nop" if ADK_CPU_LOONGSON2F
  26. default "-march=mips32" if ADK_CPU_MIPS32 && ADK_hard_float
  27. default "-march=mips32r2" if ADK_CPU_MIPS32R2 && ADK_hard_float
  28. default "-march=mips32 -msoft-float" if ADK_CPU_MIPS32 && ADK_soft_float
  29. default "-march=mips32r2 -msoft-float" if ADK_CPU_MIPS32R2 && ADK_soft_float
  30. default "-march=mips64" if ADK_CPU_MIPS64
  31. default "-march=armv8-a" if ADK_CPU_ARMV8
  32. default "-march=armv5te -mtune=iwmmxt" if ADK_CPU_XSCALE
  33. default "-march=armv5te -mtune=arm926ej-s -mfloat-abi=soft" if ADK_CPU_ARM926EJ_S && ADK_soft_float
  34. default "-march=armv5te -mtune=arm926ej-s -mfloat-abi=hard" if ADK_CPU_ARM926EJ_S && ADK_hard_float
  35. default "-march=armv6 -mtune=arm1176jzf-s -mfloat-abi=soft" if ADK_CPU_ARM1176JZF_S && ADK_soft_float
  36. default "-march=armv6 -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard" if ADK_CPU_ARM1176JZF_S && ADK_hard_float
  37. default "-mcpu=cortex-m3 -mfloat-abi=soft" if ADK_CPU_CORTEX_M3 && ADK_soft_float
  38. default "-mcpu=cortex-a7 -mfloat-abi=soft" if ADK_CPU_CORTEX_A7 && ADK_soft_float
  39. default "-mcpu=cortex-a7 -mfpu=neon -mfloat-abi=hard" if ADK_CPU_CORTEX_A7 && ADK_hard_float
  40. default "-mcpu=cortex-a9 -mfloat-abi=soft" if ADK_CPU_CORTEX_A9 && ADK_soft_float
  41. default "-mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard" if ADK_CPU_CORTEX_A9 && ADK_hard_float
  42. default "-march=armv5te" if ADK_CPU_ARMV5TE
  43. default "-march=armv6" if ADK_CPU_ARMV6
  44. default "-march=armv7-a" if ADK_CPU_ARMV7A
  45. config ADK_TARGET_CMDLINE
  46. string
  47. default "fbcon=rotate:1" if ADK_TARGET_SYSTEM_SHARP_ZAURUS
  48. default "geodewdt.nowayout=1" if ADK_TARGET_SYSTEM_PCENGINES_ALIX1C
  49. default ""
  50. choice
  51. prompt "Firmware type"
  52. depends on !ADK_TARGET_TOOLCHAIN
  53. default ADK_TARGET_ROOTFS_ARCHIVE
  54. config ADK_TARGET_ROOTFS_INITRAMFS
  55. boolean "initramfs filesystem"
  56. depends on \
  57. ADK_TARGET_QEMU || \
  58. ADK_TARGET_ARCH_M68K || \
  59. ADK_TARGET_ARCH_ARM || \
  60. ADK_TARGET_ARCH_MICROBLAZE || \
  61. ADK_TARGET_ARCH_MIPS || \
  62. ADK_TARGET_ARCH_PPC || \
  63. ADK_TARGET_ARCH_SPARC || \
  64. ADK_TARGET_ARCH_X86 || \
  65. ADK_TARGET_ARCH_X86_64
  66. depends on !ADK_TARGET_VBOX
  67. depends on !ADK_TARGET_SYSTEM_MIKROTIK_RB532
  68. select ADK_KERNEL_BLK_DEV_INITRD
  69. help
  70. create an read-only initramfs system.
  71. config ADK_TARGET_ROOTFS_INITRAMFSPIGGYBACK
  72. boolean "initramfs filesystem included into kernel image"
  73. select ADK_TARGET_ARCH_INITRAMFS_BUILTIN
  74. depends on \
  75. ADK_TARGET_QEMU || \
  76. ADK_TARGET_ARCH_AARCH64 || \
  77. ADK_TARGET_ARCH_ARM || \
  78. ADK_TARGET_ARCH_M68K || \
  79. ADK_TARGET_ARCH_MICROBLAZE || \
  80. ADK_TARGET_ARCH_MIPS || \
  81. ADK_TARGET_ARCH_PPC || \
  82. ADK_TARGET_ARCH_SPARC || \
  83. ADK_TARGET_ARCH_X86 || \
  84. ADK_TARGET_ARCH_X86_64
  85. depends on !ADK_TARGET_VBOX
  86. depends on !ADK_TARGET_SYSTEM_MIKROTIK_RB532
  87. help
  88. create an read-only initramfs system.
  89. config ADK_TARGET_ROOTFS_SQUASHFS
  90. boolean "Compressed read-only root filesystem (squashfs)"
  91. select ADK_KERNEL_SQUASHFS
  92. select ADK_HOST_NEED_SQUASHFS
  93. select ADK_HOST_NEED_QEMU if ADK_TARGET_QEMU
  94. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  95. depends on ADK_TARGET_WITH_MTD || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE
  96. help
  97. highly compressed read-only filesystem for MTD flash systems.
  98. config ADK_TARGET_ROOTFS_JFFS2
  99. boolean "Compressed read-write root filesystem (jffs2)"
  100. select ADK_KERNEL_JFFS2_FS
  101. select ADK_HOST_NEED_MTD_UTILS
  102. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  103. depends on ADK_TARGET_WITH_MTD || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE
  104. help
  105. compressed read-write filesystem for MTD flash systems.
  106. config ADK_TARGET_ROOTFS_YAFFS
  107. boolean "YAFFS2 root filesystem (NAND)"
  108. select ADK_KERNEL_MISC_FILESYSTEMS
  109. select ADK_KERNEL_YAFFS_FS
  110. select ADK_KERNEL_YAFFS_YAFFS2
  111. select ADK_KERNEL_YAFFS_AUTO_YAFFS2
  112. select ADK_KERNEL_ADDON_YAFFS2
  113. depends on ADK_TARGET_WITH_NAND
  114. help
  115. Root filesystem on NAND flash with YAFFS2.
  116. config ADK_TARGET_ROOTFS_NFSROOT
  117. boolean "NFS root"
  118. select ADK_KERNEL_NETWORK_FILESYSTEMS
  119. select ADK_KERNEL_SUNRPC
  120. select ADK_KERNEL_NFS_FS
  121. select ADK_KERNEL_NFS_V3
  122. select ADK_KERNEL_ROOT_NFS
  123. select ADK_KERNEL_NFS_COMMON
  124. select ADK_KERNEL_IP_PNP
  125. select ADK_KERNEL_IP_PNP_DHCP
  126. depends on !ADK_TARGET_QEMU && \
  127. !ADK_TARGET_VBOX && \
  128. !ADK_TARGET_SYSTEM_ARANYM_M68K && \
  129. !ADK_TARGET_SYSTEM_ARM_FM
  130. help
  131. Root filesystem mounted via NFS. (DHCP)
  132. config ADK_TARGET_ROOTFS_USB
  133. boolean "Boot from USB stick"
  134. select ADK_KERNEL_NLS
  135. select ADK_KERNEL_SCSI
  136. select ADK_KERNEL_BLK_DEV_SD
  137. select ADK_KERNEL_USB
  138. select ADK_KERNEL_USB_EHCI_HCD
  139. select ADK_KERNEL_USB_OHCI_HCD
  140. select ADK_KERNEL_USB_UHCI_HCD
  141. select ADK_KERNEL_USB_STORAGE
  142. select ADK_PACKAGE_ADKINSTALL
  143. depends on ADK_TARGET_WITH_USB_BOOT
  144. help
  145. Boot system from USB stick.
  146. config ADK_TARGET_ROOTFS_ISO
  147. boolean "ISO image"
  148. select ADK_KERNEL_ISO9660_FS
  149. select ADK_KERNEL_JOLIET
  150. select ADK_KERNEL_SCSI
  151. select ADK_KERNEL_BLK_DEV_SR
  152. select ADK_HOST_NEED_CDRTOOLS
  153. select ADK_HOST_NEED_SYSLINUX
  154. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  155. depends on ADK_HOST_LINUX
  156. depends on ADK_TARGET_ARCH_X86
  157. help
  158. Use this option to create a bootable ISO image.
  159. config ADK_TARGET_ROOTFS_INITRAMFSARCHIVE
  160. boolean "Archive usable for initramfs creation"
  161. depends on !ADK_TARGET_SYSTEM_MIKROTIK_RB532
  162. select ADK_KERNEL_BLK_DEV_INITRD
  163. help
  164. Use this option if your planning to create a initramfs,
  165. useful for adk-test-framework.
  166. config ADK_TARGET_ROOTFS_ARCHIVE
  167. boolean "Archive usable for different filesystems"
  168. select ADK_HOST_NEED_GENEXT2FS if ADK_TARGET_QEMU || ADK_TARGET_VBOX
  169. select ADK_KERNEL_EXT2_FS if ADK_TARGET_QEMU || ADK_TARGET_VBOX
  170. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  171. help
  172. Use this option if your root filesystem is ext2/ext3/ext4/xfs.
  173. endchoice
  174. config ADK_TARGET_ROOT_EXT4_RASPBERRY_PI
  175. boolean
  176. depends on ADK_TARGET_SYSTEM_RASPBERRY_PI && ADK_TARGET_ROOTFS_ARCHIVE
  177. select ADK_KERNEL_EXT4_FS
  178. default y
  179. help
  180. Compile EXT4 filesystem into kernel and use it as root filesystem.
  181. choice
  182. prompt "Root filesystem type"
  183. depends on ADK_TARGET_ROOTFS_ARCHIVE || ADK_TARGET_ROOTFS_USB && !ADK_TARGET_SYSTEM_RASPBERRY_PI && !ADK_TARGET_QEMU
  184. default ADK_TARGET_ROOT_EXT4
  185. config ADK_TARGET_ROOT_EXT4
  186. boolean
  187. prompt "EXT4 filesystem"
  188. select ADK_KERNEL_EXT4_FS
  189. help
  190. Compile EXT4 filesystem into kernel and use it as root filesystem.
  191. config ADK_TARGET_ROOT_XFS
  192. boolean
  193. prompt "XFS filesystem"
  194. select ADK_KERNEL_XFS_FS
  195. help
  196. Compile XFS filesystem into kernel and use it as root filesystem.
  197. config ADK_TARGET_ROOT_EXT2
  198. boolean
  199. prompt "EXT2 filesystem"
  200. select ADK_KERNEL_EXT2_FS
  201. help
  202. Compile EXT2 filesystem into kernel and use it as root filesystem.
  203. config ADK_TARGET_ROOT_EXT3
  204. boolean
  205. prompt "EXT3 filesystem"
  206. select ADK_KERNEL_EXT3_FS
  207. help
  208. Compile EXT3 filesystem into kernel and use it as root filesystem.
  209. endchoice
  210. config ADK_TARGET_ROOTFS
  211. string
  212. default "xfs" if ADK_TARGET_ROOT_XFS
  213. default "ext2" if ADK_TARGET_ROOT_EXT2
  214. default "ext3" if ADK_TARGET_ROOT_EXT3
  215. default "ext4" if ADK_TARGET_ROOT_EXT4
  216. help
  217. config ADK_PACKAGE_SUFFIX
  218. string
  219. default "ipk" if ADK_TARGET_PACKAGE_IPKG
  220. default "ipk" if ADK_TARGET_PACKAGE_OPKG
  221. default "tar.xz" if ADK_TARGET_PACKAGE_TXZ
  222. help
  223. choice
  224. prompt "Package format"
  225. default ADK_TARGET_PACKAGE_TXZ
  226. config ADK_TARGET_PACKAGE_TXZ
  227. boolean
  228. prompt "xz compressed tar archive"
  229. help
  230. Create compressed tar archives of packages.
  231. Pre- and post install scripts will be executed in the target
  232. directory. There will be no package manager installed onto the target.
  233. config ADK_TARGET_PACKAGE_IPKG
  234. boolean
  235. prompt "ipkg"
  236. select BUSYBOX_IPKG
  237. help
  238. Create ipkg packages and use ipkg package management on the target.
  239. config ADK_TARGET_PACKAGE_OPKG
  240. boolean
  241. prompt "opkg"
  242. select ADK_PACKAGE_OPKG
  243. help
  244. Create opkg packages and use opkg package management on the target.
  245. endchoice
  246. choice
  247. prompt "GPU memory size"
  248. depends on ADK_TARGET_SYSTEM_RASPBERRY_PI || ADK_TARGET_SYSTEM_RASPBERRY_PI2
  249. default ADK_TARGET_GPU_MEM_128 if ADK_PACKAGE_KODI
  250. config ADK_TARGET_GPU_MEM_16
  251. prompt "16"
  252. boolean
  253. help
  254. use minimal 16 MB.
  255. config ADK_TARGET_GPU_MEM_64
  256. prompt "64"
  257. boolean
  258. help
  259. use 64 MB.
  260. config ADK_TARGET_GPU_MEM_128
  261. prompt "128"
  262. boolean
  263. help
  264. use 128 MB.
  265. config ADK_TARGET_GPU_MEM_256
  266. prompt "256"
  267. boolean
  268. help
  269. use 256 MB.
  270. endchoice
  271. config ADK_TARGET_GPU_MEM
  272. int
  273. default 16 if ADK_TARGET_GPU_MEM_16
  274. default 64 if ADK_TARGET_GPU_MEM_64
  275. default 128 if ADK_TARGET_GPU_MEM_128
  276. default 256 if ADK_TARGET_GPU_MEM_256
  277. depends on ADK_TARGET_SYSTEM_RASPBERRY_PI || ADK_TARGET_SYSTEM_RASPBERRY_PI2