Merge pull request #67 from rogerz/auto-ci
add powerpc bsp to travis-ci
This commit is contained in:
commit
9a6009e726
|
@ -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
|
||||||
|
|
|
@ -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-'
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -125,7 +125,9 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
|
||||||
if not GetOption('verbose'):
|
if not GetOption('verbose'):
|
||||||
# override the default verbose command string
|
# override the default verbose command string
|
||||||
env.Replace(
|
env.Replace(
|
||||||
|
ARCOMSTR = 'AR $TARGET',
|
||||||
ASCOMSTR = 'AS $TARGET',
|
ASCOMSTR = 'AS $TARGET',
|
||||||
|
ASPPCOMSTR = 'AS $TARGET',
|
||||||
CCCOMSTR = 'CC $TARGET',
|
CCCOMSTR = 'CC $TARGET',
|
||||||
CXXCOMSTR = 'CXX $TARGET',
|
CXXCOMSTR = 'CXX $TARGET',
|
||||||
LINKCOMSTR = 'LINK $TARGET'
|
LINKCOMSTR = 'LINK $TARGET'
|
||||||
|
|
Loading…
Reference in New Issue