Config.in.target 9.3 KB

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