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

5
Last change on this file since dc32b6a was dc32b6a, checked in by Daniel Hellstrom <daniel@…>, on 08/31/18 at 06:21:05

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: 526 bytes
Line 
1#
2#  Config file for the 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=gr740
14else
15  CPU_CFLAGS = -mcpu=leon3
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.