Config.in.target 9.5 KB

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