Add support for powerpc64, along with an EXPERIMENTAL sample.
/trunk/scripts/build/arch/powerpc64.sh | 21 1 20 0 -
/trunk/scripts/build/arch/powerpc.sh | 21 1 20 0 -
/trunk/samples/powerpc64-unknown-linux-gnu/crosstool.config | 388 388 0 0 +++++++++++++++++++
/trunk/samples/powerpc64-unknown-linux-gnu/reported.by | 3 3 0 0 +
/trunk/config/arch/powerpc-powerpc64.in-common | 12 4 8 0 -
/trunk/config/arch/powerpc.in | 15 0 15 0 -
/trunk/config/arch/powerpc64.in | 19 3 16 0 -
7 files changed, 400 insertions(+), 79 deletions(-)
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/config/arch/powerpc-powerpc64.in-common Sat Jan 31 17:39:35 2009 +0000
1.3 @@ -0,0 +1,21 @@
1.4 +# powerpc and powerpc64 common options
1.5 +
1.6 +if ARCH_powerpc || ARCH_powerpc64
1.7 +
1.8 +config ARCH_POWERPC_SPE
1.9 + bool
1.10 + prompt "Enable SPE support"
1.11 + default n
1.12 + help
1.13 + Add support for the Signal Processing Engine. This will set up
1.14 + the toolchain so that it supports the SPE ABI extensions. This
1.15 + mainly targets Freescale e500 processors.
1.16 +
1.17 + Setting this option will append "spe" to the end of your target
1.18 + tuple name (e.g., powerpc-e500v2-linux-gnuspe) so that the gcc
1.19 + configure/build system will know to include SPE ABI support.
1.20 + It will also automatically add "-mabi=spe -mspe" to your
1.21 + TARGET_CFLAGS, and "--enable-e500_double" to your CC_EXTRA_CONFIG,
1.22 + so you do not need to explicitly add them.
1.23 +
1.24 +endif # ARCH_powerpc || ARCH_powerpc64
2.1 --- a/config/arch/powerpc.in Sat Jan 31 17:38:26 2009 +0000
2.2 +++ b/config/arch/powerpc.in Sat Jan 31 17:39:35 2009 +0000
2.3 @@ -8,18 +8,3 @@
2.4 The PowerPC architecture, as defined by:
2.5 http://www.ibm.com/developerworks/eserver/articles/archguide.html
2.6
2.7 -config ARCH_POWERPC_SPE
2.8 - bool
2.9 - prompt "Enable SPE support"
2.10 - default n
2.11 - help
2.12 - Add support for the Signal Processing Engine. This will set up
2.13 - the toolchain so that it supports the SPE ABI extensions. This
2.14 - mainly targets Freescale e500 processors.
2.15 -
2.16 - Setting this option will append "spe" to the end of your target
2.17 - tuple name (e.g., powerpc-e500v2-linux-gnuspe) so that the gcc
2.18 - configure/build system will know to include SPE ABI support.
2.19 - It will also automatically add "-mabi=spe -mspe" to your
2.20 - TARGET_CFLAGS, and "--enable-e500_double" to your CC_EXTRA_CONFIG,
2.21 - so you do not need to explicitly add them.
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/config/arch/powerpc64.in Sat Jan 31 17:39:35 2009 +0000
3.3 @@ -0,0 +1,12 @@
3.4 +# powerpc specific configuration file
3.5 +# EXPERIMENTAL
3.6 +
3.7 +config ARCH_powerpc64
3.8 + select ARCH_64
3.9 + select ARCH_SUPPORT_ABI
3.10 + select ARCH_SUPPORT_CPU
3.11 + select ARCH_SUPPORT_TUNE
3.12 + help
3.13 + The PowerPC architecture, as defined by:
3.14 + http://www.ibm.com/developerworks/eserver/articles/archguide.html
3.15 +
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/samples/powerpc64-unknown-linux-gnu/crosstool.config Sat Jan 31 17:39:35 2009 +0000
4.3 @@ -0,0 +1,388 @@
4.4 +#
4.5 +# Automatically generated make config: don't edit
4.6 +# crosstool-NG version: svn_trunk@1347M
4.7 +# Sat Jan 31 18:29:59 2009
4.8 +#
4.9 +
4.10 +#
4.11 +# Paths and misc options
4.12 +#
4.13 +
4.14 +#
4.15 +# crosstool-NG behavior
4.16 +#
4.17 +# CT_OBSOLETE is not set
4.18 +CT_EXPERIMENTAL=y
4.19 +# CT_DEBUG_CT is not set
4.20 +
4.21 +#
4.22 +# Paths
4.23 +#
4.24 +CT_LOCAL_TARBALLS_DIR="${HOME}/src"
4.25 +CT_SAVE_TARBALLS=y
4.26 +CT_WORK_DIR="${CT_TOP_DIR}/targets"
4.27 +CT_PREFIX_DIR="${HOME}/x-tools/${CT_TARGET}"
4.28 +CT_INSTALL_DIR="${CT_PREFIX_DIR}"
4.29 +# CT_CUSTOM_PATCH is not set
4.30 +CT_REMOVE_DOCS=y
4.31 +CT_INSTALL_DIR_RO=y
4.32 +
4.33 +#
4.34 +# Downloading
4.35 +#
4.36 +# CT_FORBID_DOWNLOAD is not set
4.37 +# CT_FORCE_DOWNLOAD is not set
4.38 +# CT_USE_PROXY is not set
4.39 +CT_PROXY_TYPE="none"
4.40 +CT_USE_MIRROR=y
4.41 +# CT_PREFER_MIRROR is not set
4.42 +CT_MIRROR_HTTP=y
4.43 +# CT_MIRROR_FTP is not set
4.44 +CT_MIRROR_SCHEME="http"
4.45 +CT_MIRROR_HOSTNAME="ymorin.is-a-geek.org"
4.46 +CT_MIRROR_BASE="/mirrors"
4.47 +# CT_MIRROR_LS_R is not set
4.48 +CT_CONNECT_TIMEOUT=10
4.49 +# CT_ONLY_DOWNLOAD is not set
4.50 +
4.51 +#
4.52 +# Extracting
4.53 +#
4.54 +# CT_FORCE_EXTRACT is not set
4.55 +CT_OVERIDE_CONFIG_GUESS_SUB=y
4.56 +# CT_ONLY_EXTRACT is not set
4.57 +
4.58 +#
4.59 +# Build behavior
4.60 +#
4.61 +CT_PARALLEL_JOBS=1
4.62 +CT_LOAD=0
4.63 +CT_NICE=0
4.64 +CT_USE_PIPES=y
4.65 +# CT_CONFIG_SHELL_ASH is not set
4.66 +
4.67 +#
4.68 +# Logging
4.69 +#
4.70 +# CT_LOG_ERROR is not set
4.71 +# CT_LOG_WARN is not set
4.72 +# CT_LOG_INFO is not set
4.73 +CT_LOG_EXTRA=y
4.74 +# CT_LOG_DEBUG is not set
4.75 +# CT_LOG_ALL is not set
4.76 +CT_LOG_LEVEL_MAX="EXTRA"
4.77 +# CT_LOG_SEE_TOOLS_WARN is not set
4.78 +CT_LOG_PROGRESS_BAR=y
4.79 +CT_LOG_TO_FILE=y
4.80 +CT_LOG_FILE_COMPRESS=y
4.81 +
4.82 +#
4.83 +# Target options
4.84 +#
4.85 +CT_ARCH="powerpc64"
4.86 +CT_ARCH_64=y
4.87 +# CT_ARCH_SUPPORT_ARCH is not set
4.88 +CT_ARCH_SUPPORT_ABI=y
4.89 +CT_ARCH_SUPPORT_CPU=y
4.90 +CT_ARCH_SUPPORT_TUNE=y
4.91 +# CT_ARCH_SUPPORT_FPU is not set
4.92 +# CT_ARCH_SUPPORTS_BOTH_ENDIAN is not set
4.93 +# CT_ARCH_DEFAULT_BE is not set
4.94 +# CT_ARCH_DEFAULT_LE is not set
4.95 +CT_ARCH_ABI=""
4.96 +CT_ARCH_CPU=""
4.97 +CT_ARCH_TUNE=""
4.98 +CT_ARCH_FLOAT_HW=y
4.99 +# CT_ARCH_FLOAT_SW is not set
4.100 +CT_TARGET_CFLAGS=""
4.101 +CT_TARGET_LDFLAGS=""
4.102 +
4.103 +#
4.104 +# General target options
4.105 +#
4.106 +# CT_ARCH_alpha is not set
4.107 +# CT_ARCH_arm is not set
4.108 +# CT_ARCH_ia64 is not set
4.109 +# CT_ARCH_mips is not set
4.110 +# CT_ARCH_powerpc is not set
4.111 +CT_ARCH_powerpc64=y
4.112 +# CT_ARCH_sh is not set
4.113 +# CT_ARCH_x86 is not set
4.114 +# CT_ARCH_x86_64 is not set
4.115 +# CT_ARCH_POWERPC_SPE is not set
4.116 +
4.117 +#
4.118 +# Target optimisations
4.119 +#
4.120 +
4.121 +#
4.122 +# Toolchain options
4.123 +#
4.124 +
4.125 +#
4.126 +# General toolchain options
4.127 +#
4.128 +CT_USE_SYSROOT=y
4.129 +CT_SHARED_LIBS=y
4.130 +CT_TARGET_VENDOR=""
4.131 +CT_TARGET_ALIAS_SED_EXPR=""
4.132 +CT_TARGET_ALIAS=""
4.133 +
4.134 +#
4.135 +# Toolchain type
4.136 +#
4.137 +# CT_NATIVE is not set
4.138 +CT_CROSS=y
4.139 +# CT_CROSS_NATIVE is not set
4.140 +# CT_CANADIAN is not set
4.141 +CT_TOOLCHAIN_TYPE="cross"
4.142 +
4.143 +#
4.144 +# Build system
4.145 +#
4.146 +CT_BUILD=""
4.147 +CT_BUILD_PREFIX=""
4.148 +CT_BUILD_SUFFIX=""
4.149 +
4.150 +#
4.151 +# Operating System
4.152 +#
4.153 +# CT_BARE_METAL is not set
4.154 +CT_KERNEL="linux"
4.155 +CT_KERNEL_VERSION="2.6.26.8"
4.156 +# CT_KERNEL_bare_metal is not set
4.157 +CT_KERNEL_linux=y
4.158 +CT_KERNEL_LINUX_INSTALL=y
4.159 +CT_KERNEL_LINUX_INSTALL_CHECK=y
4.160 +# CT_KERNEL_V_2_6_18_8 is not set
4.161 +# CT_KERNEL_V_2_6_19_7 is not set
4.162 +# CT_KERNEL_V_2_6_20_21 is not set
4.163 +# CT_KERNEL_V_2_6_21_7 is not set
4.164 +# CT_KERNEL_V_2_6_22_19 is not set
4.165 +# CT_KERNEL_V_2_6_23_17 is not set
4.166 +# CT_KERNEL_V_2_6_24_7 is not set
4.167 +# CT_KERNEL_V_2_6_25_20 is not set
4.168 +# CT_KERNEL_V_2_6_26 is not set
4.169 +# CT_KERNEL_V_2_6_26_1 is not set
4.170 +# CT_KERNEL_V_2_6_26_2 is not set
4.171 +# CT_KERNEL_V_2_6_26_3 is not set
4.172 +# CT_KERNEL_V_2_6_26_4 is not set
4.173 +# CT_KERNEL_V_2_6_26_5 is not set
4.174 +# CT_KERNEL_V_2_6_26_6 is not set
4.175 +# CT_KERNEL_V_2_6_26_7 is not set
4.176 +CT_KERNEL_V_2_6_26_8=y
4.177 +# CT_KERNEL_V_2_6_27 is not set
4.178 +# CT_KERNEL_V_2_6_27_1 is not set
4.179 +# CT_KERNEL_V_2_6_27_2 is not set
4.180 +# CT_KERNEL_V_2_6_27_3 is not set
4.181 +# CT_KERNEL_V_2_6_27_4 is not set
4.182 +# CT_KERNEL_V_2_6_27_5 is not set
4.183 +# CT_KERNEL_V_2_6_27_6 is not set
4.184 +# CT_KERNEL_V_2_6_27_7 is not set
4.185 +# CT_KERNEL_V_2_6_27_8 is not set
4.186 +# CT_KERNEL_V_2_6_27_9 is not set
4.187 +# CT_KERNEL_V_2_6_27_10 is not set
4.188 +# CT_KERNEL_V_2_6_27_11 is not set
4.189 +# CT_KERNEL_V_2_6_27_12 is not set
4.190 +# CT_KERNEL_V_2_6_27_13 is not set
4.191 +# CT_KERNEL_V_2_6_28 is not set
4.192 +# CT_KERNEL_V_2_6_28_1 is not set
4.193 +# CT_KERNEL_V_2_6_28_2 is not set
4.194 +CT_KERNEL_LINUX_VERBOSITY_0=y
4.195 +# CT_KERNEL_LINUX_VERBOSITY_1 is not set
4.196 +# CT_KERNEL_LINUX_VERBOSITY_2 is not set
4.197 +CT_KERNEL_LINUX_VERBOSE_LEVEL=0
4.198 +# CT_KERNEL_LINUX_USE_CUSTOM_DIR is not set
4.199 +
4.200 +#
4.201 +# GMP and MPFR
4.202 +#
4.203 +CT_GMP_MPFR=y
4.204 +CT_GMP_MPFR_TARGET=y
4.205 +# CT_GMP_V_4_2_2 is not set
4.206 +CT_GMP_V_4_2_4=y
4.207 +CT_GMP_VERSION="4.2.4"
4.208 +CT_GMP_CHECK=y
4.209 +# CT_MPFR_V_2_3_1 is not set
4.210 +CT_MPFR_V_2_3_2=y
4.211 +CT_MPFR_VERSION="2.3.2"
4.212 +CT_MPFR_CHECK=y
4.213 +
4.214 +#
4.215 +# binutils
4.216 +#
4.217 +CT_BINUTILS_VERSION="2.19"
4.218 +# CT_BINUTILS_V_2_14 is not set
4.219 +# CT_BINUTILS_V_2_15 is not set
4.220 +# CT_BINUTILS_V_2_16_1 is not set
4.221 +# CT_BINUTILS_V_2_17 is not set
4.222 +# CT_BINUTILS_V_2_18 is not set
4.223 +# CT_BINUTILS_V_2_18_50_0_4 is not set
4.224 +# CT_BINUTILS_V_2_18_50_0_6 is not set
4.225 +# CT_BINUTILS_V_2_18_50_0_7 is not set
4.226 +# CT_BINUTILS_V_2_18_50_0_8 is not set
4.227 +# CT_BINUTILS_V_2_18_50_0_9 is not set
4.228 +# CT_BINUTILS_V_2_18_90 is not set
4.229 +# CT_BINUTILS_V_2_18_91 is not set
4.230 +# CT_BINUTILS_V_2_18_92 is not set
4.231 +# CT_BINUTILS_V_2_18_93 is not set
4.232 +CT_BINUTILS_V_2_19=y
4.233 +# CT_BINUTILS_V_2_19_50_0_1 is not set
4.234 +CT_BINUTILS_EXTRA_CONFIG=""
4.235 +CT_BINUTILS_FOR_TARGET=y
4.236 +CT_BINUTILS_FOR_TARGET_IBERTY=y
4.237 +CT_BINUTILS_FOR_TARGET_BFD=y
4.238 +
4.239 +#
4.240 +# C compiler
4.241 +#
4.242 +CT_CC="gcc"
4.243 +CT_CC_VERSION="4.3.2"
4.244 +CT_CC_gcc=y
4.245 +# CT_CC_V_3_2_3 is not set
4.246 +# CT_CC_V_3_3_6 is not set
4.247 +# CT_CC_V_3_4_6 is not set
4.248 +# CT_CC_V_4_0_0 is not set
4.249 +# CT_CC_V_4_0_1 is not set
4.250 +# CT_CC_V_4_0_2 is not set
4.251 +# CT_CC_V_4_0_3 is not set
4.252 +# CT_CC_V_4_0_4 is not set
4.253 +# CT_CC_V_4_1_0 is not set
4.254 +# CT_CC_V_4_1_1 is not set
4.255 +# CT_CC_V_4_1_2 is not set
4.256 +# CT_CC_V_4_2_0 is not set
4.257 +# CT_CC_V_4_2_1 is not set
4.258 +# CT_CC_V_4_2_2 is not set
4.259 +# CT_CC_V_4_2_3 is not set
4.260 +# CT_CC_V_4_2_4 is not set
4.261 +# CT_CC_V_4_3_0 is not set
4.262 +# CT_CC_V_4_3_1 is not set
4.263 +CT_CC_V_4_3_2=y
4.264 +# CT_CC_V_4_3_3 is not set
4.265 +CT_CC_GCC_4_3_or_later=y
4.266 +CT_CC_CXA_ATEXIT=y
4.267 +CT_CC_SJLJ_EXCEPTIONS_CONFIGURE=y
4.268 +# CT_CC_SJLJ_EXCEPTIONS_USE is not set
4.269 +# CT_CC_SJLJ_EXCEPTIONS_DONT_USE is not set
4.270 +CT_CC_CORE_EXTRA_CONFIG=""
4.271 +CT_CC_EXTRA_CONFIG=""
4.272 +CT_CC_PKGVERSION="crosstool-NG-${CT_VERSION}"
4.273 +CT_CC_BUGURL=""
4.274 +CT_CC_LANG_JAVA_USE_ECJ=y
4.275 +CT_CC_SUPPORT_CXX=y
4.276 +CT_CC_SUPPORT_FORTRAN=y
4.277 +CT_CC_SUPPORT_JAVA=y
4.278 +CT_CC_SUPPORT_ADA=y
4.279 +CT_CC_SUPPORT_OBJC=y
4.280 +CT_CC_SUPPORT_OBJCXX=y
4.281 +
4.282 +#
4.283 +# Additional supported languages:
4.284 +#
4.285 +CT_CC_LANG_CXX=y
4.286 +CT_CC_LANG_FORTRAN=y
4.287 +CT_CC_LANG_JAVA=y
4.288 +# CT_CC_LANG_ADA is not set
4.289 +# CT_CC_LANG_OBJC is not set
4.290 +# CT_CC_LANG_OBJCXX is not set
4.291 +CT_CC_LANG_OTHERS=""
4.292 +CT_LIBC="glibc"
4.293 +
4.294 +#
4.295 +# C-library
4.296 +#
4.297 +CT_LIBC_VERSION="2.7"
4.298 +# CT_LIBC_eglibc is not set
4.299 +CT_LIBC_glibc=y
4.300 +# CT_LIBC_uClibc is not set
4.301 +# CT_LIBC_V_2_3_6 is not set
4.302 +# CT_LIBC_V_2_5 is not set
4.303 +# CT_LIBC_V_2_5_1 is not set
4.304 +# CT_LIBC_V_2_6 is not set
4.305 +# CT_LIBC_V_2_6_1 is not set
4.306 +CT_LIBC_V_2_7=y
4.307 +# CT_LIBC_V_2_8 is not set
4.308 +# CT_LIBC_V_2_9 is not set
4.309 +# CT_LIBC_V_LATEST is not set
4.310 +# CT_LIBC_V_date is not set
4.311 +# CT_LIBC_GLIBC_2_8_or_later is not set
4.312 +
4.313 +#
4.314 +# glibc/eglibc common options
4.315 +#
4.316 +CT_LIBC_GLIBC_EXTRA_CONFIG=""
4.317 +CT_LIBC_GLIBC_EXTRA_CFLAGS=""
4.318 +CT_LIBC_EXTRA_CC_ARGS=""
4.319 +# CT_LIBC_GLIBC_USE_PORTS is not set
4.320 +CT_LIBC_ADDONS_LIST=""
4.321 +# CT_LIBC_GLIBC_KERNEL_VERSION_NONE is not set
4.322 +CT_LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS=y
4.323 +# CT_LIBC_GLIBC_KERNEL_VERSION_CHOSEN is not set
4.324 +CT_LIBC_GLIBC_MIN_KERNEL="2.6.26.8"
4.325 +
4.326 +#
4.327 +# Common C library options
4.328 +#
4.329 +CT_LIBC_SUPPORT_NPTL=y
4.330 +CT_LIBC_SUPPORT_LINUXTHREADS=y
4.331 +CT_THREADS="nptl"
4.332 +CT_THREADS_NPTL=y
4.333 +# CT_THREADS_LINUXTHREADS is not set
4.334 +# CT_THREADS_NONE is not set
4.335 +
4.336 +#
4.337 +# Tools facilities
4.338 +#
4.339 +# CT_TOOL_libelf is not set
4.340 +CT_TOOL_sstrip=y
4.341 +# CT_SSTRIP_ELFKICKERS is not set
4.342 +CT_SSTRIP_BUILDROOT=y
4.343 +CT_SSTRIP_FROM="buildroot"
4.344 +
4.345 +#
4.346 +# Debug facilities
4.347 +#
4.348 +CT_DEBUG_dmalloc=y
4.349 +# CT_DMALLOC_V_5_4_3 is not set
4.350 +CT_DMALLOC_V_5_5_2=y
4.351 +CT_DMALLOC_VERSION="5.5.2"
4.352 +CT_DEBUG_duma=y
4.353 +CT_DUMA_A=y
4.354 +CT_DUMA_SO=y
4.355 +# CT_DUMA_V_2_5_1 is not set
4.356 +# CT_DUMA_V_2_5_8 is not set
4.357 +# CT_DUMA_V_2_5_12 is not set
4.358 +CT_DUMA_V_2_5_14=y
4.359 +CT_DUMA_VERSION="2_5_14"
4.360 +CT_DEBUG_gdb=y
4.361 +CT_GDB_CROSS=y
4.362 +# CT_GDB_CROSS_STATIC is not set
4.363 +# CT_GDB_CROSS_INSIGHT is not set
4.364 +CT_GDB_NATIVE=y
4.365 +# CT_GDB_NATIVE_STATIC is not set
4.366 +CT_GDB_NATIVE_USE_GMP_MPFR=y
4.367 +CT_GDB_GDBSERVER=y
4.368 +CT_GDB_GDBSERVER_STATIC=y
4.369 +# CT_GDB_V_6_4 is not set
4.370 +# CT_GDB_V_6_5 is not set
4.371 +# CT_GDB_V_6_6 is not set
4.372 +# CT_GDB_V_6_7 is not set
4.373 +# CT_GDB_V_6_7_1 is not set
4.374 +CT_GDB_V_6_8=y
4.375 +# CT_GDB_V_snapshot is not set
4.376 +CT_GDB_VERSION="6.8"
4.377 +
4.378 +#
4.379 +# Native gdb needs the ncurses library on the target
4.380 +#
4.381 +CT_NCURSES_V_5_6=y
4.382 +CT_NCURSES_VERSION="5.6"
4.383 +# CT_DEBUG_ltrace is not set
4.384 +CT_DEBUG_strace=y
4.385 +# CT_STRACE_V_4_5 is not set
4.386 +# CT_STRACE_V_4_5_14 is not set
4.387 +# CT_STRACE_V_4_5_15 is not set
4.388 +# CT_STRACE_V_4_5_16 is not set
4.389 +CT_STRACE_V_4_5_17=y
4.390 +# CT_STRACE_V_4_5_18 is not set
4.391 +CT_STRACE_VERSION="4.5.17"
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
5.2 +++ b/samples/powerpc64-unknown-linux-gnu/reported.by Sat Jan 31 17:39:35 2009 +0000
5.3 @@ -0,0 +1,3 @@
5.4 +reporter_name="Yann E. MORIN"
5.5 +reporter_url="http://ymorin.is-a-geek.org/dokuwiki/projects/crosstool"
5.6 +reporter_comment=""
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
6.2 +++ b/scripts/build/arch/powerpc-powerpc64.sh-common Sat Jan 31 17:39:35 2009 +0000
6.3 @@ -0,0 +1,22 @@
6.4 +# Compute powerpc-specific values
6.5 +
6.6 +CT_DoArchTupleValues () {
6.7 + # The architecture part of the tuple:
6.8 + CT_TARGET_ARCH="${CT_ARCH}"
6.9 +
6.10 + # The kernel ARCH:
6.11 + CT_KERNEL_ARCH=powerpc
6.12 +
6.13 + # Add spe in the tuplet if needed
6.14 + case "${CT_LIBC},${CT_ARCH_POWERPC_SPE}" in
6.15 + glibc,|eglibc,) CT_TARGET_SYS=gnu;;
6.16 + glibc,y|eglibc,y) CT_TARGET_SYS=gnuspe;;
6.17 + esac
6.18 +
6.19 + # Add extra flags for SPE if needed
6.20 + if [ "${CT_ARCH_POWERPC_SPE}" = "y" ]; then
6.21 + CT_ARCH_TARGET_CFLAGS="-mabi=spe -mspe"
6.22 + CT_ARCH_CC_CORE_EXTRA_CONFIG="--enable-e500_double"
6.23 + CT_ARCH_CC_EXTRA_CONFIG="--enable-e500_double"
6.24 + fi
6.25 +}
7.1 --- a/scripts/build/arch/powerpc.sh Sat Jan 31 17:38:26 2009 +0000
7.2 +++ b/scripts/build/arch/powerpc.sh Sat Jan 31 17:39:35 2009 +0000
7.3 @@ -1,22 +1,3 @@
7.4 # Compute powerpc-specific values
7.5
7.6 -CT_DoArchTupleValues () {
7.7 - # The architecture part of the tuple:
7.8 - CT_TARGET_ARCH="${CT_ARCH}"
7.9 -
7.10 - # The kernel ARCH:
7.11 - CT_KERNEL_ARCH=powerpc
7.12 -
7.13 - # Add spe in the tuplet if needed
7.14 - case "${CT_LIBC},${CT_ARCH_POWERPC_SPE}" in
7.15 - glibc,|eglibc,) CT_TARGET_SYS=gnu;;
7.16 - glibc,y|eglibc,y) CT_TARGET_SYS=gnuspe;;
7.17 - esac
7.18 -
7.19 - # Add extra flags for SPE if needed
7.20 - if [ "${CT_ARCH_POWERPC_SPE}" = "y" ]; then
7.21 - CT_ARCH_TARGET_CFLAGS="-mabi=spe -mspe"
7.22 - CT_ARCH_CC_CORE_EXTRA_CONFIG="--enable-e500_double"
7.23 - CT_ARCH_CC_EXTRA_CONFIG="--enable-e500_double"
7.24 - fi
7.25 -}
7.26 +. "${CT_LIB_DIR}/scripts/build/arch/powerpc-powerpc64.sh-common"
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
8.2 +++ b/scripts/build/arch/powerpc64.sh Sat Jan 31 17:39:35 2009 +0000
8.3 @@ -0,0 +1,3 @@
8.4 +# Compute powerpc-specific values
8.5 +
8.6 +. "${CT_LIB_DIR}/scripts/build/arch/powerpc-powerpc64.sh-common"