From 2fc60ba1c3818da71cddfc2fb9cc95b91075f823 Mon Sep 17 00:00:00 2001 From: Rogerz Zhang Date: Fri, 4 Jan 2013 00:05:30 +0800 Subject: [PATCH 1/2] Fix build error under linux --- bsp/lm3s8962/Libraries/SConscript | 2 +- bsp/lm3s9b9x/Libraries/SConscript | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bsp/lm3s8962/Libraries/SConscript b/bsp/lm3s8962/Libraries/SConscript index 784d61658a..15cec88463 100644 --- a/bsp/lm3s8962/Libraries/SConscript +++ b/bsp/lm3s8962/Libraries/SConscript @@ -12,7 +12,7 @@ if rtconfig.PART_TYPE.startswith('PART_LM4F') != True: # add for startup script if rtconfig.CROSS_TOOL == 'gcc': - src += ['startup/gcc/start_gcc.s'] + src += ['startup/gcc/start_gcc.S'] elif rtconfig.CROSS_TOOL == 'keil': src += ['startup/arm/start_rvds.S'] elif rtconfig.CROSS_TOOL == 'iar': diff --git a/bsp/lm3s9b9x/Libraries/SConscript b/bsp/lm3s9b9x/Libraries/SConscript index 784d61658a..15cec88463 100644 --- a/bsp/lm3s9b9x/Libraries/SConscript +++ b/bsp/lm3s9b9x/Libraries/SConscript @@ -12,7 +12,7 @@ if rtconfig.PART_TYPE.startswith('PART_LM4F') != True: # add for startup script if rtconfig.CROSS_TOOL == 'gcc': - src += ['startup/gcc/start_gcc.s'] + src += ['startup/gcc/start_gcc.S'] elif rtconfig.CROSS_TOOL == 'keil': src += ['startup/arm/start_rvds.S'] elif rtconfig.CROSS_TOOL == 'iar': From 2595a64fb70dd1fcd0fef99bb84f216f7069826d Mon Sep 17 00:00:00 2001 From: Rogerz Zhang Date: Thu, 3 Jan 2013 23:09:27 +0800 Subject: [PATCH 2/2] Add support for auto ci --- .travis.yml | 19 +++++++++++++ tools/auto-ci.py | 69 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 .travis.yml create mode 100644 tools/auto-ci.py diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..13685ae1c8 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,19 @@ +language: c + +install: + - mkdir ~/toolchain + - curl -s https://sourcery.mentor.com/public/gnu_toolchain/arm-none-eabi/arm-2011.03-42-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 | tar xjf - -C ~/toolchain + +before_script: + - export RTT_EXEC_PATH=~/toolchain/arm-2011.03/bin + - export RTT_ROOT=`pwd` + - cd tools + +script: + - python auto-ci.py + +notifications: + email: false + +env: + - RTT_CC='gcc' diff --git a/tools/auto-ci.py b/tools/auto-ci.py new file mode 100644 index 0000000000..47dd9e552b --- /dev/null +++ b/tools/auto-ci.py @@ -0,0 +1,69 @@ +import os +import sys + +BSP_ROOT = '../bsp' + +unsupported = """ +bf533 +dev3210 +jz47xx +ls1bdev +m16c62p +microblaze +mini4020 +nuc140 +nios_ii +pic32ethernet +upd70f3454 +wh44b0 +xplorer4330 +""" + +failed = """ +stm32f0x +""" + +avr = """ +avr32uc3b0 +""" + +ppc = """ +taihu +""" + +x86 = """ +simulator +x86 +""" + +arm = """ +at91sam9260 +efm32 +lm3s8962 +lm3s9b9x +lm4f232 +lpc1114 +lpc122x +lpc176x +lpc178x +lpc2148 +lpc2478 +mb9bf500r +mb9bf506r +mini2440 +sam7s +sam7x +stm32f107 +stm32f10x +stm32f20x +stm32f40x +""".split() + +for item in arm: + project_dir = os.path.join(BSP_ROOT, item) + if os.path.isfile(os.path.join(project_dir, 'SConstruct')): + if os.system('scons --directory=' + project_dir) != 0: + print 'build failed!!' + sys.exit(1) + +sys.exit(0)