arch: add basic m68k support
authorRemy Bohmer <linux@bohmer.net>
Fri Jan 29 23:23:59 2010 +0100 (2010-01-29)
changeset 1754fe497dd5bec1
parent 1752 2a0656d9c905
child 1755 30d91bfc1f2a
arch: add basic m68k support

Signed-off-by: Remy Bohmer <linux@bohmer.net>
[yann.morin.1998@anciens.enib.fr: use defaults for CT_TARGET_ARCH]
Signed-off-by: "Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
config/arch/m68k.in
samples/m68k-unknown-elf/crosstool.config
samples/m68k-unknown-elf/reported.by
scripts/build/arch/m68k.sh
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/config/arch/m68k.in	Fri Jan 29 23:23:59 2010 +0100
     1.3 @@ -0,0 +1,10 @@
     1.4 +# m68k specific configuration file
     1.5 +# depends on EXPERIMENTAL
     1.6 +
     1.7 +config ARCH_m68k
     1.8 +    select ARCH_SUPPORTS_32
     1.9 +    select ARCH_DEFAULT_32
    1.10 +    select ARCH_DEFAULT_BE
    1.11 +    select ARCH_SUPPORT_CPU
    1.12 +     help
    1.13 +      The m68k architecture
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/samples/m68k-unknown-elf/crosstool.config	Fri Jan 29 23:23:59 2010 +0100
     2.3 @@ -0,0 +1,304 @@
     2.4 +#
     2.5 +# Automatically generated make config: don't edit
     2.6 +# crosstool-NG version: hg_default@1753_973192477357
     2.7 +# Fri Jan 29 23:19:57 2010
     2.8 +#
     2.9 +
    2.10 +#
    2.11 +# Paths and misc options
    2.12 +#
    2.13 +
    2.14 +#
    2.15 +# crosstool-NG behavior
    2.16 +#
    2.17 +# CT_OBSOLETE is not set
    2.18 +CT_EXPERIMENTAL=y
    2.19 +# CT_DEBUG_CT is not set
    2.20 +
    2.21 +#
    2.22 +# Paths
    2.23 +#
    2.24 +CT_LOCAL_TARBALLS_DIR="${HOME}/src"
    2.25 +CT_SAVE_TARBALLS=y
    2.26 +CT_WORK_DIR="${CT_TOP_DIR}/targets"
    2.27 +CT_PREFIX_DIR="${HOME}/x-tools/${CT_TARGET}"
    2.28 +CT_INSTALL_DIR="${CT_PREFIX_DIR}"
    2.29 +CT_REMOVE_DOCS=y
    2.30 +CT_INSTALL_DIR_RO=y
    2.31 +
    2.32 +#
    2.33 +# Downloading
    2.34 +#
    2.35 +# CT_FORBID_DOWNLOAD is not set
    2.36 +# CT_FORCE_DOWNLOAD is not set
    2.37 +# CT_USE_MIRROR is not set
    2.38 +CT_CONNECT_TIMEOUT=10
    2.39 +CT_DOWNLOAD_MAX_CHUNKS=5
    2.40 +# CT_ONLY_DOWNLOAD is not set
    2.41 +
    2.42 +#
    2.43 +# Extracting
    2.44 +#
    2.45 +# CT_FORCE_EXTRACT is not set
    2.46 +CT_OVERIDE_CONFIG_GUESS_SUB=y
    2.47 +# CT_ONLY_EXTRACT is not set
    2.48 +CT_PATCH_BUNDLED=y
    2.49 +# CT_PATCH_LOCAL is not set
    2.50 +# CT_PATCH_BUNDLED_LOCAL is not set
    2.51 +# CT_PATCH_LOCAL_BUNDLED is not set
    2.52 +# CT_PATCH_BUNDLED_FALLBACK_LOCAL is not set
    2.53 +# CT_PATCH_LOCAL_FALLBACK_BUNDLED is not set
    2.54 +# CT_PATCH_NONE is not set
    2.55 +CT_PATCH_ORDER="bundled"
    2.56 +# CT_PATCH_SINGLE is not set
    2.57 +# CT_PATCH_USE_LOCAL is not set
    2.58 +
    2.59 +#
    2.60 +# Build behavior
    2.61 +#
    2.62 +CT_PARALLEL_JOBS=1
    2.63 +CT_LOAD=0
    2.64 +CT_NICE=0
    2.65 +CT_USE_PIPES=y
    2.66 +# CT_CONFIG_SHELL_SH is not set
    2.67 +# CT_CONFIG_SHELL_ASH is not set
    2.68 +CT_CONFIG_SHELL_BASH=y
    2.69 +# CT_CONFIG_SHELL_CUSTOM is not set
    2.70 +CT_CONFIG_SHELL="bash"
    2.71 +
    2.72 +#
    2.73 +# Logging
    2.74 +#
    2.75 +# CT_LOG_ERROR is not set
    2.76 +# CT_LOG_WARN is not set
    2.77 +CT_LOG_INFO=y
    2.78 +# CT_LOG_EXTRA is not set
    2.79 +# CT_LOG_DEBUG is not set
    2.80 +# CT_LOG_ALL is not set
    2.81 +CT_LOG_LEVEL_MAX="INFO"
    2.82 +# CT_LOG_SEE_TOOLS_WARN is not set
    2.83 +CT_LOG_PROGRESS_BAR=y
    2.84 +CT_LOG_TO_FILE=y
    2.85 +CT_LOG_FILE_COMPRESS=y
    2.86 +
    2.87 +#
    2.88 +# Target options
    2.89 +#
    2.90 +CT_ARCH="m68k"
    2.91 +# CT_ARCH_SUPPORTS_BOTH_MMU is not set
    2.92 +# CT_ARCH_SUPPORTS_BOTH_ENDIAN is not set
    2.93 +CT_ARCH_SUPPORTS_32=y
    2.94 +# CT_ARCH_SUPPORTS_64 is not set
    2.95 +# CT_ARCH_SUPPORT_ARCH is not set
    2.96 +# CT_ARCH_SUPPORT_ABI is not set
    2.97 +CT_ARCH_SUPPORT_CPU=y
    2.98 +# CT_ARCH_SUPPORT_TUNE is not set
    2.99 +# CT_ARCH_SUPPORT_FPU is not set
   2.100 +# CT_ARCH_DEFAULT_HAS_MMU is not set
   2.101 +CT_ARCH_DEFAULT_BE=y
   2.102 +# CT_ARCH_DEFAULT_LE is not set
   2.103 +CT_ARCH_DEFAULT_32=y
   2.104 +# CT_ARCH_DEFAULT_64 is not set
   2.105 +CT_ARCH_CPU="cpu32"
   2.106 +CT_ARCH_32=y
   2.107 +# CT_ARCH_64 is not set
   2.108 +CT_ARCH_BITNESS=32
   2.109 +CT_ARCH_FLOAT_HW=y
   2.110 +# CT_ARCH_FLOAT_SW is not set
   2.111 +CT_TARGET_CFLAGS=""
   2.112 +CT_TARGET_LDFLAGS=""
   2.113 +
   2.114 +#
   2.115 +# General target options
   2.116 +#
   2.117 +# CT_ARCH_alpha is not set
   2.118 +# CT_ARCH_arm is not set
   2.119 +# CT_ARCH_avr32 is not set
   2.120 +# CT_ARCH_ia64 is not set
   2.121 +CT_ARCH_m68k=y
   2.122 +# CT_ARCH_mips is not set
   2.123 +# CT_ARCH_powerpc is not set
   2.124 +# CT_ARCH_s390 is not set
   2.125 +# CT_ARCH_sh is not set
   2.126 +# CT_ARCH_x86 is not set
   2.127 +# CT_ARCH_USE_MMU is not set
   2.128 +
   2.129 +#
   2.130 +# Target optimisations
   2.131 +#
   2.132 +
   2.133 +#
   2.134 +# Toolchain options
   2.135 +#
   2.136 +
   2.137 +#
   2.138 +# General toolchain options
   2.139 +#
   2.140 +CT_USE_SYSROOT=y
   2.141 +CT_SYSROOT_DIR_PREFIX=""
   2.142 +
   2.143 +#
   2.144 +# Tuple completion and aliasing
   2.145 +#
   2.146 +CT_TARGET_VENDOR="unknown"
   2.147 +CT_TARGET_ALIAS_SED_EXPR=""
   2.148 +CT_TARGET_ALIAS=""
   2.149 +
   2.150 +#
   2.151 +# Toolchain type
   2.152 +#
   2.153 +# CT_NATIVE is not set
   2.154 +CT_CROSS=y
   2.155 +# CT_CROSS_NATIVE is not set
   2.156 +# CT_CANADIAN is not set
   2.157 +CT_TOOLCHAIN_TYPE="cross"
   2.158 +
   2.159 +#
   2.160 +# Build system
   2.161 +#
   2.162 +CT_BUILD=""
   2.163 +CT_BUILD_PREFIX=""
   2.164 +CT_BUILD_SUFFIX=""
   2.165 +
   2.166 +#
   2.167 +# Operating System
   2.168 +#
   2.169 +CT_BARE_METAL=y
   2.170 +# CT_KERNEL_SUPPORTS_SHARED_LIBS is not set
   2.171 +CT_KERNEL="bare-metal"
   2.172 +CT_KERNEL_bare_metal=y
   2.173 +# CT_KERNEL_linux is not set
   2.174 +
   2.175 +#
   2.176 +# Common kernel options
   2.177 +#
   2.178 +
   2.179 +#
   2.180 +# Binary utilities
   2.181 +#
   2.182 +# CT_ARCH_BINFMT_ELF is not set
   2.183 +CT_ARCH_BINFMT_FLAT=y
   2.184 +
   2.185 +#
   2.186 +# GNU binutils
   2.187 +#
   2.188 +# CT_BINUTILS_V_2_20 is not set
   2.189 +CT_BINUTILS_V_2_19_1=y
   2.190 +# CT_BINUTILS_V_2_19 is not set
   2.191 +# CT_BINUTILS_V_2_18 is not set
   2.192 +# CT_BINUTILS_V_2_17 is not set
   2.193 +# CT_BINUTILS_V_2_16_1 is not set
   2.194 +CT_BINUTILS_VERSION="2.19.1"
   2.195 +CT_BINUTILS_EXTRA_CONFIG=""
   2.196 +
   2.197 +#
   2.198 +# elf2flt
   2.199 +#
   2.200 +CT_ELF2FLT_CVSHEAD=y
   2.201 +# CT_ELF2FLT_CVS_SNAPSHOT is not set
   2.202 +CT_ELF2FLT_VERSION="head"
   2.203 +CT_ELF2FLT_EXTRA_CONFIG=""
   2.204 +
   2.205 +#
   2.206 +# C compiler
   2.207 +#
   2.208 +CT_CC="gcc"
   2.209 +CT_CC_VERSION="4.3.4"
   2.210 +CT_CC_gcc=y
   2.211 +# CT_CC_V_4_4_3 is not set
   2.212 +# CT_CC_V_4_4_2 is not set
   2.213 +# CT_CC_V_4_4_1 is not set
   2.214 +# CT_CC_V_4_4_0 is not set
   2.215 +CT_CC_V_4_3_4=y
   2.216 +# CT_CC_V_4_3_3 is not set
   2.217 +# CT_CC_V_4_3_2 is not set
   2.218 +# CT_CC_V_4_3_1 is not set
   2.219 +# CT_CC_V_4_3_0 is not set
   2.220 +# CT_CC_V_4_2_4 is not set
   2.221 +# CT_CC_V_4_2_3 is not set
   2.222 +# CT_CC_V_4_2_2 is not set
   2.223 +# CT_CC_V_4_2_1 is not set
   2.224 +# CT_CC_V_4_2_0 is not set
   2.225 +# CT_CC_V_4_1_2 is not set
   2.226 +# CT_CC_V_4_0_4 is not set
   2.227 +# CT_CC_V_3_4_6 is not set
   2.228 +CT_CC_GCC_4_3_or_later=y
   2.229 +# CT_CC_GCC_4_4_or_later is not set
   2.230 +CT_CC_ENABLE_CXX_FLAGS=""
   2.231 +CT_CC_CORE_EXTRA_CONFIG=""
   2.232 +CT_CC_PKGVERSION="crosstool-NG-${CT_VERSION}"
   2.233 +CT_CC_BUGURL=""
   2.234 +CT_CC_SUPPORT_CXX=y
   2.235 +CT_CC_SUPPORT_FORTRAN=y
   2.236 +CT_CC_SUPPORT_JAVA=y
   2.237 +CT_CC_SUPPORT_ADA=y
   2.238 +CT_CC_SUPPORT_OBJC=y
   2.239 +CT_CC_SUPPORT_OBJCXX=y
   2.240 +
   2.241 +#
   2.242 +# Additional supported languages:
   2.243 +#
   2.244 +# CT_CC_LANG_CXX is not set
   2.245 +
   2.246 +#
   2.247 +# C-library
   2.248 +#
   2.249 +CT_LIBC="none"
   2.250 +# CT_LIBC_eglibc is not set
   2.251 +# CT_LIBC_glibc is not set
   2.252 +# CT_LIBC_newlib is not set
   2.253 +CT_LIBC_none=y
   2.254 +# CT_LIBC_uClibc is not set
   2.255 +# CT_LIBC_SUPPORT_NPTL is not set
   2.256 +# CT_LIBC_SUPPORT_LINUXTHREADS is not set
   2.257 +CT_THREADS="none"
   2.258 +
   2.259 +#
   2.260 +# Debug facilities
   2.261 +#
   2.262 +# CT_DEBUG_dmalloc is not set
   2.263 +# CT_DEBUG_duma is not set
   2.264 +# CT_DEBUG_gdb is not set
   2.265 +# CT_DEBUG_ltrace is not set
   2.266 +# CT_DEBUG_strace is not set
   2.267 +
   2.268 +#
   2.269 +# Tools facilities
   2.270 +#
   2.271 +# CT_TOOL_libelf is not set
   2.272 +# CT_TOOL_sstrip is not set
   2.273 +
   2.274 +#
   2.275 +# Companion libraries
   2.276 +#
   2.277 +CT_WRAPPER_NEEDED=y
   2.278 +CT_GMP_MPFR=y
   2.279 +CT_GMP_V_4_3_1=y
   2.280 +# CT_GMP_V_4_3_0 is not set
   2.281 +# CT_GMP_V_4_2_4 is not set
   2.282 +# CT_GMP_V_4_2_2 is not set
   2.283 +CT_GMP_VERSION="4.3.1"
   2.284 +# CT_MPFR_V_2_4_2 is not set
   2.285 +CT_MPFR_V_2_4_1=y
   2.286 +# CT_MPFR_V_2_4_0 is not set
   2.287 +# CT_MPFR_V_2_3_2 is not set
   2.288 +# CT_MPFR_V_2_3_1 is not set
   2.289 +CT_MPFR_VERSION="2.4.1"
   2.290 +# CT_PPL_CLOOG_MPC is not set
   2.291 +
   2.292 +#
   2.293 +# Companion libraries common options
   2.294 +#
   2.295 +# CT_COMP_LIBS_CHECK is not set
   2.296 +CT_TOOLS_WRAPPER_SCRIPT=y
   2.297 +# CT_TOOLS_WRAPPER_EXEC is not set
   2.298 +CT_TOOLS_WRAPPER="script"
   2.299 +
   2.300 +#
   2.301 +# Companion tools
   2.302 +#
   2.303 +
   2.304 +#
   2.305 +# READ HELP before you say 'Y' below !!!
   2.306 +#
   2.307 +# CT_COMP_TOOLS is not set
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/samples/m68k-unknown-elf/reported.by	Fri Jan 29 23:23:59 2010 +0100
     3.3 @@ -0,0 +1,3 @@
     3.4 +reporter_name="Remy Bohmer"
     3.5 +reporter_url="linux@bohmer.net"
     3.6 +reporter_comment="Example for building a toolchain for m68000 bare metal targets"
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/scripts/build/arch/m68k.sh	Fri Jan 29 23:23:59 2010 +0100
     4.3 @@ -0,0 +1,5 @@
     4.4 +# Compute M68k-specific values
     4.5 +
     4.6 +CT_DoArchTupleValues() {
     4.7 +    :
     4.8 +}