diff options
| author | bernard <[email protected]> | 2014-07-21 07:28:44 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2014-07-21 07:28:44 +0800 |
| commit | 2a269a8a2aa273e78c00aaee1cdfb76632b20d54 (patch) | |
| tree | cfb6a225a11e886e0e485984b3a0d8bd5f5a4f18 | |
| parent | 318452796fb5ef136be246638a974f6b514a97ae (diff) | |
[bsp] Fix MB9BF618S building issue.
| -rw-r--r-- | bsp/mb9bf618s/rtconfig.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bsp/mb9bf618s/rtconfig.py b/bsp/mb9bf618s/rtconfig.py index 4620b93e01..8c60f44864 100644 --- a/bsp/mb9bf618s/rtconfig.py +++ b/bsp/mb9bf618s/rtconfig.py @@ -1,8 +1,13 @@ +import os + # toolchains options ARCH='arm' CPU='cortex-m3' CROSS_TOOL='keil' +if os.getenv('RTT_CC'): + CROSS_TOOL = os.getenv('RTT_CC') + #device options # FM3_TYPE = # 'MB9B610S','MB9B610T', @@ -110,7 +115,7 @@ elif PLATFORM == 'iar': AFLAGS += ' --fpu None' AFLAGS += ' -I"' + IAR_PATH + '/arm/INC"' - LFLAGS = ' --config mb9bf506.icf' + LFLAGS = ' --config rtthread-fm3.icf' LFLAGS += ' --semihosting' LFLAGS += ' --entry __iar_program_start' |
