source: rtems/bsps/sparc/leon3/config/gr712rc.cfg @ dc32b6a

Last change on this file since dc32b6a was dc32b6a, checked in by Daniel Hellstrom <daniel@…>, on Aug 31, 2018 at 6:21:05 AM

leon: do not use -mfix-{device} with Clang

Clang do not support -mfix-gr712rc, -mfix-ut700 and -mfix-ut699.
Therefore we adjust the CPU_CFLAGS to remove these when compiling with
Clang. Instead use

GR712RC: -mcpu=gr712rc
GR740: -mcpu=gr740
UT699/UT700: Not currently supported by clang, use LEON3 BSP.

  • Property mode set to 100644
File size: 550 bytes
Line 
1#
2#  Config file for the GR712RC LEON3 SPARC processor.
3#
4
5include $(RTEMS_ROOT)/make/custom/default.cfg
6
7RTEMS_CPU=sparc
8
9#  This contains the compiler options necessary to select the CPU model
10#  and (hopefully) optimize for it.
11#  GCC and clang use different switches to select target:
12ifneq (,$(findstring clang,$(CC)))
13  CPU_CFLAGS = -mcpu=gr712rc
14else
15  CPU_CFLAGS = -mcpu=leon3 -mfix-gr712rc
16endif
17
18# optimize flag: typically -O2
19CFLAGS_OPTIMIZE_V = -O2 -g
20CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
21
22LDFLAGS = -Wl,--gc-sections
Note: See TracBrowser for help on using the repository browser.