diff options
| author | ardafu <[email protected]> | 2015-04-14 21:56:34 +0800 |
|---|---|---|
| committer | ardafu <[email protected]> | 2015-04-14 21:56:34 +0800 |
| commit | 39452b67b0351ac7b0b941971c4fe3be8f76d57e (patch) | |
| tree | 8b230748b96fef02d3b215e7a485c1b75c35db96 /bsp/at91sam9260/rtconfig.py | |
| parent | 2d1edc94a35a70a74144b460fad0aaa6677a2f81 (diff) | |
1. [cpu] split ARM926 cpu code from AT91SAM9260 BSP
Diffstat (limited to 'bsp/at91sam9260/rtconfig.py')
| -rwxr-xr-x | bsp/at91sam9260/rtconfig.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/bsp/at91sam9260/rtconfig.py b/bsp/at91sam9260/rtconfig.py index 10870f8807..c75d864741 100755 --- a/bsp/at91sam9260/rtconfig.py +++ b/bsp/at91sam9260/rtconfig.py @@ -12,10 +12,11 @@ if os.getenv('RTT_CC'): if CROSS_TOOL == 'gcc': PLATFORM = 'gcc' - EXEC_PATH = '/opt/arm-2010q1/bin/' + #EXEC_PATH = 'D:/ArdaArmTools/Sourcery_Lite/bin' + EXEC_PATH = 'D:/ArdaArmTools/GNUARM_4.9_2015q1/bin' elif CROSS_TOOL == 'keil': PLATFORM = 'armcc' - EXEC_PATH = 'C:/Keil' + EXEC_PATH = 'C:/Keil_v5' elif CROSS_TOOL == 'iar': print '================ERROR============================' print 'Not support yet!' @@ -43,7 +44,7 @@ if PLATFORM == 'gcc': DEVICE = ' -mcpu=arm926ej-s' CFLAGS = DEVICE - AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp' + ' -DTEXT_BASE=' + TextBase + AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp' + ' -Iplatform'+' -DTEXT_BASE=' + TextBase LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread_at91sam9260.map,-cref,-u,_start -T at91sam9260_ram.ld' + ' -Ttext ' + TextBase CPATH = '' @@ -65,9 +66,9 @@ elif PLATFORM == 'armcc': LINK = 'armlink' TARGET_EXT = 'axf' - DEVICE = ' --device DARMATS9' + DEVICE = ' --cpu=ARM926EJ-S' CFLAGS = DEVICE + ' --apcs=interwork --diag_suppress=870' - AFLAGS = DEVICE + AFLAGS = DEVICE + ' -Iplatform' LFLAGS = DEVICE + ' --strict --info sizes --info totals --info unused --info veneers --list rtthread-at91sam9260.map --ro-base 0x20000000 --entry Entry_Point --first Entry_Point' CFLAGS += ' -I"' + EXEC_PATH + '/ARM/RV31/INC"' |
