Config.in.target 11 KB

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