Config.in.target 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  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
  27. default "-march=mips64" if ADK_CPU_MIPS64
  28. default "-march=armv8-a" if ADK_CPU_ARMV8
  29. default "-march=armv5te -mtune=iwmmxt" if ADK_CPU_XSCALE
  30. default "-march=armv5te -mtune=arm926ej-s -mfloat-abi=soft" if ADK_CPU_ARM926EJ_S && ADK_soft_float
  31. default "-march=armv5te -mtune=arm926ej-s -mfloat-abi=hard" if ADK_CPU_ARM926EJ_S && ADK_hard_float
  32. default "-march=armv6 -mtune=arm1176jzf-s -mfloat-abi=soft" if ADK_CPU_ARM1176JZF_S && ADK_soft_float
  33. default "-march=armv6 -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard" if ADK_CPU_ARM1176JZF_S && ADK_hard_float
  34. default "-mcpu=cortex-m3 -mfloat-abi=soft" if ADK_CPU_CORTEX_M3 && ADK_soft_float
  35. default "-mcpu=cortex-a9 -mfloat-abi=soft" if ADK_CPU_CORTEX_A9 && ADK_soft_float
  36. default "-mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard" if ADK_CPU_CORTEX_A9 && ADK_hard_float
  37. default "-march=armv5te" if ADK_CPU_ARMV5TE
  38. default "-march=armv6" if ADK_CPU_ARMV6
  39. default "-march=armv7-a" if ADK_CPU_ARMV7A
  40. config ADK_TARGET_CMDLINE
  41. string
  42. default "console=tty0" if ADK_TARGET_SYSTEM_ARANYM_M68K
  43. default "console=ttyAMA0" if ADK_TARGET_SYSTEM_ARM_FM
  44. default "console=ttyS0,115200" if ADK_TARGET_SYSTEM_PCENGINES_ALIX2D13
  45. default "console=ttyS0,115200" if ADK_TARGET_SYSTEM_PCENGINES_ALIX2D2
  46. default "console=ttyS0,115200" if ADK_TARGET_SYSTEM_PCENGINES_APU
  47. default "console=ttymxc0,115200 console=tty0" if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6 && ADK_RUNTIME_VERBOSE_INIT_VGA
  48. default "console=tty0 console=ttymxc0,115200" if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6 && ADK_RUNTIME_VERBOSE_INIT_SERIAL
  49. default "console=ttyS0,115200 console=tty0" if ADK_TARGET_SYSTEM_IBM_X40 && ADK_RUNTIME_VERBOSE_INIT_VGA
  50. default "console=tty0 console=ttyS0,115200" if ADK_TARGET_SYSTEM_IBM_X40 && ADK_RUNTIME_VERBOSE_INIT_SERIAL
  51. default "console=tty0" if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
  52. default "console=ttyAMA0,9600 console=tty1" if ADK_TARGET_SYSTEM_RASPBERRY_PI && ADK_RUNTIME_VERBOSE_INIT_VGA
  53. default "console=tty1 console=ttyAMA0,9600" if ADK_TARGET_SYSTEM_RASPBERRY_PI && ADK_RUNTIME_VERBOSE_INIT_SERIAL
  54. default "console=ttyS0,115200 console=tty0 fbcon=rotate:1" if ADK_TARGET_SYSTEM_SHARP_ZAURUS
  55. default "console=ttyS0,9600" if ADK_TARGET_SYSTEM_FON_FON2100
  56. default "console=ttyS0,38400" if ADK_TARGET_SYSTEM_PCENGINES_WRAP
  57. default "console=ttyS0,115200 console=tty0 geodewdt.nowayout=1" if ADK_TARGET_SYSTEM_PCENGINES_ALIX1C
  58. default "console=tty0" if ADK_TARGET_VBOX
  59. default "console=tty0" if ADK_TARGET_QEMU_ARM_MODEL_SPITZ || ADK_TARGET_QEMU_ARM_MODEL_TERRIER
  60. default "console=ttyAMA0" if ADK_TARGET_QEMU_ARM_MODEL_VERSATILEPB
  61. default "console=ttyAMA0" if ADK_TARGET_QEMU_ARM_MODEL_VEXPRESS_A9
  62. default "console=ttyUL0" if ADK_TARGET_QEMU_MICROBLAZE_MODEL_S3ADSP1800
  63. default "console=ttyS0,115200" if ADK_TARGET_QEMU_MICROBLAZE_MODEL_ML605
  64. default "console=hvc0" if ADK_TARGET_SYSTEM_QEMU_PPC64
  65. default "console=ttyS0,9600" if ADK_TARGET_QEMU_PPC_MACPPC
  66. default "console=ttyS0" if ADK_TARGET_QEMU_PPC_VIRTEX_ML507
  67. default "console=ttyS0" if ADK_TARGET_QEMU_PPC_BAMBOO
  68. default "console=ttySC1" if ADK_TARGET_SYSTEM_QEMU_SH
  69. default "console=ttyS0,115200" if ADK_TARGET_SYSTEM_QEMU_SPARC64
  70. default "console=ttyS0,115200" if ADK_TARGET_SYSTEM_QEMU_X86 || ADK_TARGET_SYSTEM_QEMU_X86_64
  71. default "console=ttyS0,38400" if ADK_TARGET_SYSTEM_QEMU_XTENSA
  72. default ""
  73. choice
  74. prompt "Target firmware type"
  75. depends on !ADK_CHOOSE_TARGET_SYSTEM && !ADK_CHOOSE_TARGET_ARCH && !ADK_TARGET_TOOLCHAIN
  76. default ADK_TARGET_ROOTFS_ARCHIVE
  77. config ADK_TARGET_ROOTFS_INITRAMFS
  78. boolean "initramfs filesystem"
  79. depends on \
  80. ADK_TARGET_QEMU || \
  81. ADK_LINUX_M68K || \
  82. ADK_LINUX_ARM || \
  83. ADK_LINUX_MICROBLAZE || \
  84. ADK_LINUX_MIPS || \
  85. ADK_LINUX_PPC || \
  86. ADK_LINUX_SPARC || \
  87. ADK_LINUX_X86 || \
  88. ADK_LINUX_X86_64
  89. depends on !ADK_TARGET_VBOX
  90. depends on !ADK_TARGET_SYSTEM_MIKROTIK_RB532
  91. select ADK_KERNEL_BLK_DEV_INITRD
  92. help
  93. create an read-only initramfs system.
  94. config ADK_TARGET_ROOTFS_INITRAMFSPIGGYBACK
  95. boolean "initramfs filesystem included into kernel image"
  96. select ADK_LINUX_INITRAMFS_BUILTIN
  97. depends on \
  98. ADK_TARGET_QEMU || \
  99. ADK_LINUX_AARCH64 || \
  100. ADK_LINUX_ARM || \
  101. ADK_LINUX_M68K || \
  102. ADK_LINUX_MICROBLAZE || \
  103. ADK_LINUX_MIPS || \
  104. ADK_LINUX_PPC || \
  105. ADK_LINUX_SPARC || \
  106. ADK_LINUX_X86 || \
  107. ADK_LINUX_X86_64
  108. depends on !ADK_TARGET_VBOX
  109. depends on !ADK_TARGET_SYSTEM_MIKROTIK_RB532
  110. help
  111. create an read-only initramfs system.
  112. config ADK_TARGET_ROOTFS_SQUASHFS
  113. boolean "Compressed read-only root filesystem (squashfs)"
  114. select ADK_KERNEL_SQUASHFS
  115. select ADK_HOST_NEED_SQUASHFS
  116. select ADK_HOST_NEED_QEMU if ADK_TARGET_QEMU
  117. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  118. depends on ADK_TARGET_WITH_MTD || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE
  119. help
  120. highly compressed read-only filesystem for MTD flash systems.
  121. config ADK_TARGET_ROOTFS_JFFS2
  122. boolean "Compressed read-write root filesystem (jffs2)"
  123. select ADK_KERNEL_JFFS2_FS
  124. select ADK_HOST_NEED_MTD_UTILS
  125. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  126. depends on ADK_TARGET_WITH_MTD || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE
  127. help
  128. compressed read-write filesystem for MTD flash systems.
  129. config ADK_TARGET_ROOTFS_YAFFS
  130. boolean "YAFFS2 root filesystem (NAND)"
  131. select ADK_KERNEL_MISC_FILESYSTEMS
  132. select ADK_KERNEL_YAFFS_FS
  133. select ADK_KERNEL_YAFFS_YAFFS2
  134. select ADK_KERNEL_YAFFS_AUTO_YAFFS2
  135. select ADK_KERNEL_ADDON_YAFFS2
  136. depends on ADK_TARGET_WITH_NAND
  137. help
  138. Root filesystem on NAND flash with YAFFS2.
  139. config ADK_TARGET_ROOTFS_NFSROOT
  140. boolean "NFS root"
  141. select ADK_KERNEL_NETWORK_FILESYSTEMS
  142. select ADK_KERNEL_SUNRPC
  143. select ADK_KERNEL_NFS_FS
  144. select ADK_KERNEL_NFS_V3
  145. select ADK_KERNEL_ROOT_NFS
  146. select ADK_KERNEL_NFS_COMMON
  147. select ADK_KERNEL_IP_PNP
  148. select ADK_KERNEL_IP_PNP_DHCP
  149. select ADK_PACKAGE_ADKINSTALL
  150. depends on !ADK_TARGET_QEMU && !ADK_TARGET_VBOX && !ADK_TARGET_SYSTEM_ARANYM_M68K
  151. depends on !ADK_TARGET_SYSTEM_ARM_FM
  152. help
  153. Root filesystem mounted via NFS. (DHCP)
  154. config ADK_TARGET_ROOTFS_USB
  155. boolean "Boot from USB stick"
  156. select ADK_KERNEL_NLS
  157. select ADK_KERNEL_SCSI
  158. select ADK_KERNEL_BLK_DEV_SD
  159. select ADK_KERNEL_USB
  160. select ADK_KERNEL_USB_EHCI_HCD
  161. select ADK_KERNEL_USB_OHCI_HCD
  162. select ADK_KERNEL_USB_UHCI_HCD
  163. select ADK_KERNEL_USB_STORAGE
  164. select ADK_PACKAGE_ADKINSTALL
  165. depends on ADK_TARGET_WITH_USB_BOOT
  166. help
  167. Boot system from USB stick.
  168. config ADK_TARGET_ROOTFS_ISO
  169. boolean "ISO image"
  170. select ADK_KERNEL_ISO9660_FS
  171. select ADK_KERNEL_JOLIET
  172. select ADK_KERNEL_SCSI
  173. select ADK_KERNEL_BLK_DEV_SR
  174. select ADK_HOST_NEED_CDRTOOLS
  175. select ADK_HOST_NEED_SYSLINUX
  176. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  177. depends on ADK_HOST_LINUX
  178. depends on ADK_LINUX_X86
  179. help
  180. Use this option to create a bootable ISO image.
  181. config ADK_TARGET_ROOTFS_INITRAMFSARCHIVE
  182. boolean "Archive usable for initramfs creation"
  183. depends on !ADK_TARGET_SYSTEM_MIKROTIK_RB532
  184. select ADK_KERNEL_BLK_DEV_INITRD
  185. help
  186. Use this option if your planning to create a initramfs,
  187. useful for adk-test-framework.
  188. config ADK_TARGET_ROOTFS_ARCHIVE
  189. boolean "Archive usable for different filesystems"
  190. select ADK_HOST_NEED_GENEXT2FS if ADK_TARGET_QEMU || ADK_TARGET_VBOX
  191. select ADK_KERNEL_EXT2_FS if ADK_TARGET_QEMU || ADK_TARGET_VBOX
  192. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  193. help
  194. Use this option if your root filesystem is ext2/ext3/ext4/xfs.
  195. endchoice
  196. config ADK_TARGET_ROOT_EXT4_RASPBERRY_PI
  197. boolean
  198. depends on ADK_TARGET_SYSTEM_RASPBERRY_PI && ADK_TARGET_ROOTFS_ARCHIVE
  199. select ADK_KERNEL_EXT4_FS
  200. default y
  201. help
  202. Compile EXT4 filesystem into kernel and use it as root filesystem.
  203. choice
  204. prompt "Root filesystem type"
  205. depends on ADK_TARGET_ROOTFS_ARCHIVE || ADK_TARGET_ROOTFS_USB && !ADK_TARGET_SYSTEM_RASPBERRY_PI && !ADK_TARGET_QEMU
  206. default ADK_TARGET_ROOT_EXT4
  207. config ADK_TARGET_ROOT_EXT4
  208. boolean
  209. prompt "EXT4 filesystem"
  210. select ADK_KERNEL_EXT4_FS
  211. help
  212. Compile EXT4 filesystem into kernel and use it as root filesystem.
  213. config ADK_TARGET_ROOT_XFS
  214. boolean
  215. prompt "XFS filesystem"
  216. select ADK_KERNEL_XFS_FS
  217. help
  218. Compile XFS filesystem into kernel and use it as root filesystem.
  219. config ADK_TARGET_ROOT_EXT2
  220. boolean
  221. prompt "EXT2 filesystem"
  222. select ADK_KERNEL_EXT2_FS
  223. help
  224. Compile EXT2 filesystem into kernel and use it as root filesystem.
  225. config ADK_TARGET_ROOT_EXT3
  226. boolean
  227. prompt "EXT3 filesystem"
  228. select ADK_KERNEL_EXT3_FS
  229. help
  230. Compile EXT3 filesystem into kernel and use it as root filesystem.
  231. endchoice
  232. config ADK_TARGET_ROOTFS
  233. string
  234. default "xfs" if ADK_TARGET_ROOT_XFS
  235. default "ext2" if ADK_TARGET_ROOT_EXT2
  236. default "ext3" if ADK_TARGET_ROOT_EXT3
  237. default "ext4" if ADK_TARGET_ROOT_EXT4
  238. help
  239. config ADK_PACKAGE_SUFFIX
  240. string
  241. default "ipk" if ADK_TARGET_PACKAGE_IPKG
  242. default "tar.xz" if ADK_TARGET_PACKAGE_TXZ
  243. help
  244. choice
  245. prompt "Target package format"
  246. default ADK_TARGET_PACKAGE_TXZ
  247. depends on !ADK_CHOOSE_TARGET_SYSTEM && !ADK_CHOOSE_TARGET_ARCH
  248. config ADK_TARGET_PACKAGE_TXZ
  249. boolean
  250. prompt "xz compressed tar archive"
  251. help
  252. Create compressed tar archives of packages.
  253. Pre- and post install scripts will be executed in the target
  254. directory. There will be no package manager installed onto the target.
  255. config ADK_TARGET_PACKAGE_IPKG
  256. boolean
  257. prompt "ipkg"
  258. select BUSYBOX_IPKG
  259. help
  260. Create ipkg packages and use ipkg package management on the target.
  261. endchoice
  262. config ADK_TARGET_BINFMT_FLAT
  263. boolean
  264. choice
  265. prompt "Target GPU Memory"
  266. depends on ADK_TARGET_SYSTEM_RASPBERRY_PI
  267. default ADK_TARGET_GPU_MEM_128 if ADK_PACKAGE_XBMC
  268. config ADK_TARGET_GPU_MEM_16
  269. prompt "16"
  270. boolean
  271. help
  272. use minimal 16 MB.
  273. config ADK_TARGET_GPU_MEM_64
  274. prompt "64"
  275. boolean
  276. help
  277. use 64 MB.
  278. config ADK_TARGET_GPU_MEM_128
  279. prompt "128"
  280. boolean
  281. help
  282. use 128 MB, required for XBMC.
  283. config ADK_TARGET_GPU_MEM_256
  284. prompt "256"
  285. boolean
  286. help
  287. use 256 MB.
  288. endchoice
  289. config ADK_TARGET_GPU_MEM
  290. int
  291. default 16 if ADK_TARGET_GPU_MEM_16
  292. default 64 if ADK_TARGET_GPU_MEM_64
  293. default 128 if ADK_TARGET_GPU_MEM_128
  294. default 256 if ADK_TARGET_GPU_MEM_256
  295. depends on ADK_TARGET_SYSTEM_RASPBERRY_PI