Config.in.target 10 KB

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