File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ OBJCOPY = $(GCC_BIN)arm-none-eabi-objcopy
19
19
20
20
CPU = -mcpu=cortex-m3 -mthumb
21
21
CC_FLAGS = $(CPU) -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
22
- CC_SYMBOLS = -DTARGET_LPC1768 -DTOOLCHAIN_GCC_ARM -DNDEBUG -D__CORTEX_M3
22
+ CC_SYMBOLS = {% for s in symbols %}-D{{s}} {% endfor %}
23
23
24
24
LD_FLAGS = -mcpu=cortex-m3 -mthumb -Wl,--gc-sections --specs=nano.specs -u _printf_float -u _scanf_float
25
25
LD_SYS_LIBS = -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
Original file line number Diff line number Diff line change @@ -49,5 +49,6 @@ def generate(self):
49
49
'library_paths' : self .resources .lib_dirs ,
50
50
'linker_script' : self .resources .linker_script ,
51
51
'libraries' : libraries ,
52
+ 'symbols' : self .toolchain .get_symbols ()
52
53
}
53
54
self .gen_file ('gcc_arm_%s.tmpl' % self .target .lower (), ctx , 'Makefile' )
You can’t perform that action at this time.
0 commit comments