summaryrefslogblamecommitdiffstats
path: root/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed.cfg
blob: 7923264ecf7b176e80f176d875c8e9b9ec9d7f59 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                             
                              
 
                                                                             
                                                                         

                                                          
 







                                                                 
#
# Config file for mbed LPC1768 board.
#

include $(RTEMS_ROOT)/make/custom/default.cfg

RTEMS_CPU = arm

CPU_CFLAGS = -march=armv7-m -mthumb

CFLAGS_OPTIMIZE_V = -O2 -ggdb3

# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2561.
# Add CFLAGS and LDFLAGS for compiling and linking with per item sections
# 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