source: rtems/c/src/lib/libbsp/m68k/mcf5329/make/custom/mcf5329.cfg @ ea791d5

5
Last change on this file since ea791d5 was ea791d5, checked in by Joel Sherrill <joel@…>, on 02/06/16 at 15:51:48

m68k/.../mcf5329.cfg: Disable per function sections

updates #2569.

  • Property mode set to 100644
File size: 847 bytes
Line 
1#
2#  Config file for the mcf5329 BSP
3#
4
5
6RTEMS_CPU=m68k
7RTEMS_CPU_MODEL=mcf532x
8
9include $(RTEMS_ROOT)/make/custom/default.cfg
10
11#  This contains the compiler options necessary to select the CPU model
12#  and (hopefully) optimize for it.
13#CPU_CFLAGS = -mcpu=5329
14CPU_CFLAGS = -mcpu=5307
15
16# optimize flag: typically -O2
17CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
18
19# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2561.
20# The following two lines enable compiling and linking on per element.
21# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
22# LDFLAGS = -Wl,--gc-sections
23
24# This defines the operations performed on the linked executable.
25# is currently required.
26define bsp-post-link
27        $(OBJCOPY) -O binary --strip-all \
28            $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
29        $(SIZE) $(basename $@)$(EXEEXT)
30endef
Note: See TracBrowser for help on using the repository browser.