forked from Imagelibrary/rtems
Update machine flags for Cortex-M3 and Cortex-M4 based BSPs to account for Cortex-M3 Errata 602117 which required GCC multilib changes. Update #3747.
23 lines
535 B
INI
23 lines
535 B
INI
#
|
|
# Config file for mbed LPC1768 board.
|
|
#
|
|
|
|
include $(RTEMS_ROOT)/make/custom/default.cfg
|
|
|
|
RTEMS_CPU = arm
|
|
|
|
CPU_CFLAGS = -mthumb -mcpu=cortex-m3
|
|
|
|
CFLAGS_OPTIMIZE_V = -O2 -ggdb3
|
|
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
|
|
LDFLAGS = -Wl,--gc-sections
|
|
|
|
BINEXT?=.bin
|
|
# This defines the operations performed on the linked executable.
|
|
# is currently required.
|
|
define bsp-post-link
|
|
$(OBJCOPY) -O binary --strip-all \
|
|
$(basename $@)$(EXEEXT) $(basename $@)$(BINEXT)
|
|
$(SIZE) $(basename $@)$(EXEEXT)
|
|
endef
|