From 5b755b85c8a6c14f9a6887dce19e818d7962b492 Mon Sep 17 00:00:00 2001 From: pangwei <271372443@qq.com> Date: Thu, 23 Jul 2015 10:38:28 +0800 Subject: [PATCH 1/2] [BSP] rename the link files Signed-off-by: pangwei <271372443@qq.com> --- bsp/ls1cdev/{ls1b_ram.lds => ls1c_ram.lds} | 0 bsp/ls1cdev/rtconfig.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename bsp/ls1cdev/{ls1b_ram.lds => ls1c_ram.lds} (100%) diff --git a/bsp/ls1cdev/ls1b_ram.lds b/bsp/ls1cdev/ls1c_ram.lds similarity index 100% rename from bsp/ls1cdev/ls1b_ram.lds rename to bsp/ls1cdev/ls1c_ram.lds diff --git a/bsp/ls1cdev/rtconfig.py b/bsp/ls1cdev/rtconfig.py index f47d90d4d3..e4eb2f962a 100644 --- a/bsp/ls1cdev/rtconfig.py +++ b/bsp/ls1cdev/rtconfig.py @@ -38,7 +38,7 @@ READELF = PREFIX + 'readelf' DEVICE = ' -mips32' CFLAGS = DEVICE + ' -EL -G0 -mno-abicalls -fno-pic -fno-builtin -fno-exceptions -ffunction-sections -fomit-frame-pointer' AFLAGS = ' -c' + DEVICE + ' -EL -fno-pic -fno-builtin -mno-abicalls -x assembler-with-cpp -DSYSTEM_STACK=0x80003fe8' -LFLAGS = DEVICE + ' -nostartfiles -EL -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T ls1b_ram.lds' +LFLAGS = DEVICE + ' -nostartfiles -EL -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T ls1c_ram.lds' CPATH = '' LPATH = '' From e30ee251e3aa53c45b23134c8dd80ffb3ca488da Mon Sep 17 00:00:00 2001 From: pangwei <271372443@qq.com> Date: Thu, 23 Jul 2015 11:20:04 +0800 Subject: [PATCH 2/2] [bsp]added the define of RT_USING_LIBC in rtconfig.h. Signed-off-by: pangwei <271372443@qq.com> --- bsp/ls1bdev/rtconfig.h | 4 +++- bsp/ls1bdev/rtconfig.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bsp/ls1bdev/rtconfig.h b/bsp/ls1bdev/rtconfig.h index b09f7b044c..788c961d7d 100644 --- a/bsp/ls1bdev/rtconfig.h +++ b/bsp/ls1bdev/rtconfig.h @@ -93,9 +93,11 @@ #define FINSH_THREAD_STACK_SIZE 4096 // +#define RT_USING_LIBC + //
// -// #define RT_USING_NEWLIB +//#define RT_USING_NEWLIB // // #define RT_USING_PTHREADS //
diff --git a/bsp/ls1bdev/rtconfig.py b/bsp/ls1bdev/rtconfig.py index 8373448a37..70077e64ce 100644 --- a/bsp/ls1bdev/rtconfig.py +++ b/bsp/ls1bdev/rtconfig.py @@ -12,7 +12,7 @@ if os.getenv('RTT_CC'): if CROSS_TOOL == 'gcc': PLATFORM = 'gcc' - EXEC_PATH = 'C:/Program Files/CodeSourcery/Sourcery_CodeBench_Lite_for_MIPS_ELF/bin' + EXEC_PATH = r'C:\Program Files\CodeSourcery\Sourcery G++ Lite For MIPS ELF\bin' else: print '================ERROR============================' print 'Not support %s yet!' % CROSS_TOOL