add powerpc bsp to travis-ci

This commit is contained in:
Rogerz Zhang 2013-03-31 22:23:48 +08:00
parent 17e5f804ff
commit 1019f52bb7
3 changed files with 9 additions and 2 deletions

View File

@ -8,6 +8,7 @@ before_script:
- "sudo apt-get -qq install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386 || true" - "sudo apt-get -qq install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386 || true"
- "[ $RTT_TOOL_CHAIN = 'sourcery-arm' ] && curl -s https://sourcery.mentor.com/public/gnu_toolchain/arm-none-eabi/arm-2012.09-63-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 | sudo tar xjf - -C /opt && export RTT_EXEC_PATH=/opt/arm-2012.09/bin && /opt/arm-2012.09/bin/arm-none-eabi-gcc --version || true" - "[ $RTT_TOOL_CHAIN = 'sourcery-arm' ] && curl -s https://sourcery.mentor.com/public/gnu_toolchain/arm-none-eabi/arm-2012.09-63-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 | sudo tar xjf - -C /opt && export RTT_EXEC_PATH=/opt/arm-2012.09/bin && /opt/arm-2012.09/bin/arm-none-eabi-gcc --version || true"
- "[ $RTT_TOOL_CHAIN = 'sourcery-mips' ] && curl -s https://sourcery.mentor.com/public/gnu_toolchain/mips-sde-elf/mips-2012.09-98-mips-sde-elf-i686-pc-linux-gnu.tar.bz2 | sudo tar xjf - -C /opt && export RTT_EXEC_PATH=/opt/mips-2012.09/bin && /opt/mips-2012.09/bin/mips-sde-elf-gcc --version || true" - "[ $RTT_TOOL_CHAIN = 'sourcery-mips' ] && curl -s https://sourcery.mentor.com/public/gnu_toolchain/mips-sde-elf/mips-2012.09-98-mips-sde-elf-i686-pc-linux-gnu.tar.bz2 | sudo tar xjf - -C /opt && export RTT_EXEC_PATH=/opt/mips-2012.09/bin && /opt/mips-2012.09/bin/mips-sde-elf-gcc --version || true"
- "[ $RTT_TOOL_CHAIN = 'sourcery-ppc' ] && curl -s https://sourcery.mentor.com/public/gnu_toolchain/powerpc-eabi/freescale-2011.03-39-powerpc-eabi-i686-pc-linux-gnu.tar.bz2 | sudo tar xjf - -C /opt && export RTT_EXEC_PATH=/opt/freescale-2011.03/bin && /opt/freescale-2011.03/bin/powerpc-eabi-gcc --version || true"
- export RTT_ROOT=`pwd` - export RTT_ROOT=`pwd`
- export RTT_CC='gcc' - export RTT_CC='gcc'
@ -49,7 +50,7 @@ env:
- RTT_BSP='stm32f10x' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='stm32f10x' RTT_TOOL_CHAIN='sourcery-arm'
- RTT_BSP='stm32f20x' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='stm32f20x' RTT_TOOL_CHAIN='sourcery-arm'
- RTT_BSP='stm32f40x' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='stm32f40x' RTT_TOOL_CHAIN='sourcery-arm'
# - RTT_BSP='taihu' # ppc - RTT_BSP='taihu' RTT_TOOL_CHAIN='sourcery-ppc'
# - RTT_BSP='upd70f3454' # iar # - RTT_BSP='upd70f3454' # iar
# - RTT_BSP='wh44b0' # no scons # - RTT_BSP='wh44b0' # no scons
# - RTT_BSP='x86' # x86 # - RTT_BSP='x86' # x86

View File

@ -1,4 +1,7 @@
import os
# toolchains options # toolchains options
ARCH='ppc' ARCH='ppc'
CPU='ppc405' CPU='ppc405'
CROSS_TOOL='gcc' CROSS_TOOL='gcc'
@ -8,6 +11,9 @@ PLATFORM = 'gcc'
EXEC_PATH = 'C:/Program Files/CodeSourcery/Sourcery G++ Lite/bin' EXEC_PATH = 'C:/Program Files/CodeSourcery/Sourcery G++ Lite/bin'
BUILD = 'debug' BUILD = 'debug'
if os.getenv('RTT_EXEC_PATH'):
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
if PLATFORM == 'gcc': if PLATFORM == 'gcc':
# toolchains # toolchains
PREFIX = 'powerpc-eabi-' PREFIX = 'powerpc-eabi-'

View File

@ -36,7 +36,7 @@ SECTIONS
.text : .text :
{ {
KEEP(build\libcpu\ppc\ppc405\start_gcc.o (.text)) KEEP(build/libcpu/ppc/ppc405/start_gcc.o (.text))
*(.text) *(.text)
*(.fixup) *(.fixup)