source: rtems/c/src/lib/libbsp/m68k/mcf5235/make/custom/mcf5235.cfg @ 6a1cbb74

5
Last change on this file since 6a1cbb74 was 6a1cbb74, checked in by Joel Sherrill <joel@…>, on 02/06/16 at 15:58:55

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

updates #2571.

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