Merge pull request #5031 from liukangcc/armclang
[update] support armclang
This commit is contained in:
commit
63c741996b
|
@ -6,7 +6,7 @@ cwd = GetCurrentDir()
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
# The set of source files associated with this SConscript file.
|
# The set of source files associated with this SConscript file.
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src = Glob('*.c') + Glob('*_rvds.S')
|
src = Glob('*.c') + Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
|
@ -6,7 +6,7 @@ cwd = GetCurrentDir()
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
# The set of source files associated with this SConscript file.
|
# The set of source files associated with this SConscript file.
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src = Glob('*.c') + Glob('*_rvds.S')
|
src = Glob('*.c') + Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
|
@ -8,7 +8,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
|
@ -9,7 +9,7 @@ if rtconfig.PLATFORM == 'iar':
|
||||||
src += Glob('*_iar.S')
|
src += Glob('*_iar.S')
|
||||||
elif rtconfig.PLATFORM == 'gcc':
|
elif rtconfig.PLATFORM == 'gcc':
|
||||||
src += Glob('*_gcc.S')
|
src += Glob('*_gcc.S')
|
||||||
elif rtconfig.PLATFORM == 'armcc':
|
elif rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
|
@ -9,7 +9,7 @@ if rtconfig.PLATFORM == 'iar':
|
||||||
src += Glob('*_iar.S')
|
src += Glob('*_iar.S')
|
||||||
elif rtconfig.PLATFORM == 'gcc':
|
elif rtconfig.PLATFORM == 'gcc':
|
||||||
src += Glob('*_gcc.S')
|
src += Glob('*_gcc.S')
|
||||||
elif rtconfig.PLATFORM == 'armcc':
|
elif rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M0 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m0 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m0 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M1.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m0 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m0 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M3 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -92,6 +92,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M7.fp.sp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m7 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m7 -mfpu=fpv5-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M3 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M0 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m0 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m0 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M3 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M1.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m0 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m0 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M3 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -94,6 +94,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M3 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M3 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M3 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M3 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M3 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M3 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -94,6 +94,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M3 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M3 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M3 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M3 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m3 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -92,6 +92,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -97,6 +97,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M7.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m7 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -99,6 +99,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M7.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m7 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M7.fp.sp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m7 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m7 -mfpu=fpv5-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M7.fp.sp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m7 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m7 -mfpu=fpv5-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -99,6 +99,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M7.fp.sp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m7 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -92,6 +92,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M7.fp.sp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m7 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M0 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi --mcpu=cortex-m0plus '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m0plus '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M0 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi --mcpu=cortex-m0plus '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m0plus '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -94,6 +94,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M7.fp.sp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-M7 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-M7 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -94,6 +94,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M7.fp.sp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-M7 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-M7 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -94,6 +94,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M7.fp.sp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-M7 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-M7 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -94,6 +94,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M7.fp.sp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-M7 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-M7 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -94,6 +94,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M7.fp.sp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-M7 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-M7 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M0 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m0 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m0 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M0 '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m0 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m0 '
|
||||||
|
CFLAGS += ' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -13,7 +13,10 @@ LOCAL_CCFLAGS = ''
|
||||||
if rtconfig.CROSS_TOOL == 'gcc':
|
if rtconfig.CROSS_TOOL == 'gcc':
|
||||||
LOCAL_CCFLAGS += ' -std=c99'
|
LOCAL_CCFLAGS += ' -std=c99'
|
||||||
elif rtconfig.CROSS_TOOL == 'keil':
|
elif rtconfig.CROSS_TOOL == 'keil':
|
||||||
|
if rtconfig.PLATFORM == 'armcc':
|
||||||
LOCAL_CCFLAGS += ' --c99'
|
LOCAL_CCFLAGS += ' --c99'
|
||||||
|
elif rtconfig.PLATFORM == 'armclang':
|
||||||
|
LOCAL_CCFLAGS += ' -std=c99'
|
||||||
|
|
||||||
group = DefineGroup('FAL', src, depend = ['PKG_USING_FAL'], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
|
group = DefineGroup('FAL', src, depend = ['PKG_USING_FAL'], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
|
||||||
|
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -94,6 +94,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -23,7 +23,7 @@ elif CROSS_TOOL == 'keil':
|
||||||
EXEC_PATH = r'C:/Keil_v5'
|
EXEC_PATH = r'C:/Keil_v5'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
EXEC_PATH = r'D:\software\Embedded Workbench 8.3'
|
EXEC_PATH = r'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
elif PLATFORM == 'armclang':
|
||||||
|
# toolchains
|
||||||
|
CC = 'armclang'
|
||||||
|
CXX = 'armclang'
|
||||||
|
AS = 'armasm'
|
||||||
|
AR = 'armar'
|
||||||
|
LINK = 'armlink'
|
||||||
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
|
DEVICE = ' --cpu Cortex-M4.fp '
|
||||||
|
CFLAGS = ' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
|
||||||
|
CFLAGS += ' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
|
||||||
|
CFLAGS += ' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
|
||||||
|
CFLAGS += ' -gdwarf-3 -ffunction-sections '
|
||||||
|
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||||
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
|
||||||
|
LFLAGS += ' --list rt-thread.map '
|
||||||
|
LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
|
||||||
|
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
|
||||||
|
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
|
||||||
|
|
||||||
|
EXEC_PATH += '/ARM/ARMCLANG/bin/'
|
||||||
|
|
||||||
|
if BUILD == 'debug':
|
||||||
|
CFLAGS += ' -g -O1' # armclang recommend
|
||||||
|
AFLAGS += ' -g'
|
||||||
|
else:
|
||||||
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
|
CFLAGS += ' -std=c99'
|
||||||
|
|
||||||
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'iccarm'
|
CC = 'iccarm'
|
||||||
|
|
|
@ -8,7 +8,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
|
@ -8,7 +8,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
|
@ -8,7 +8,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
|
@ -9,7 +9,7 @@ src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
ASFLAGS = ''
|
ASFLAGS = ''
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
ASFLAGS = ' --cpreproc'
|
ASFLAGS = ' --cpreproc'
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
|
@ -8,7 +8,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
|
@ -23,7 +23,7 @@ if GetDepend('RT_USING_GIC_V3'):
|
||||||
src += ['gicv3.c']
|
src += ['gicv3.c']
|
||||||
src += ['trap.c']
|
src += ['trap.c']
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
|
@ -8,7 +8,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
|
@ -8,9 +8,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
|
||||||
elif rtconfig.PLATFORM == 'armclang':
|
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
|
@ -8,7 +8,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
|
@ -8,7 +8,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
|
@ -8,7 +8,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armclang':
|
if rtconfig.PLATFORM == 'armclang':
|
||||||
|
|
|
@ -8,7 +8,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
|
@ -8,7 +8,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
|
@ -8,7 +8,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
|
@ -8,7 +8,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
|
@ -8,7 +8,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
|
@ -8,7 +8,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
|
@ -8,7 +8,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c') + Glob('*.cpp')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue