File tree Expand file tree Collapse file tree
freedom-e-sdk/bsp/env/freedom-e300-hifive1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT
1414
1515env = Environment (tools = ['mingw' ],
1616 AS = rtconfig .AS , ASFLAGS = rtconfig .AFLAGS ,
17- CC = rtconfig .CC , CCFLAGS = rtconfig .CFLAGS ,
17+ CC = rtconfig .CC , CFLAGS = rtconfig .CFLAGS ,
18+ CXX = rtconfig .CXX , CXXFLAGS = rtconfig .CXXFLAGS ,
1819 AR = rtconfig .AR , ARFLAGS = '-rc' ,
1920 LINK = rtconfig .LINK , LINKFLAGS = rtconfig .LFLAGS )
2021env .PrependENVPath ('PATH' , rtconfig .EXEC_PATH )
Original file line number Diff line number Diff line change 44
55#include "platform.h"
66#include "encoding.h"
7+ #include "rtthread.h"
78
89extern int main (int argc , char * * argv );
910extern void trap_entry ();
Original file line number Diff line number Diff line change 1212
1313if CROSS_TOOL == 'gcc' :
1414 PLATFORM = 'gcc'
15- EXEC_PATH = r'/opt/unknown-gcc/bin'
15+ EXEC_PATH = r'/opt/FreedomStudio/SiFive/riscv64- unknown-elf- gcc-8.3.0-2019.08.0 /bin/ '
1616else :
1717 print ('Please make sure your toolchains is GNU GCC!' )
1818 exit (0 )
6262 else :
6363 CFLAGS += ' -O2'
6464
65+ CXXFLAGS = CFLAGS
66+
6567 POST_ACTION = OBJCPY + ' -O binary $TARGET ' + TARGET_NAME + '\n '
6668 POST_ACTION += OBJCPY + ' -O ihex $TARGET ' + TARGET_NAME_HEX + '\n '
6769 #POST_ACTION += OBJCPY + ' -I binary -O ihex ' + TARGET_NAME + ' ' + TARGET_NAME_HEX + '\n'
You can’t perform that action at this time.
0 commit comments