Changeset dc32b6a in rtems


Ignore:
Timestamp:
Aug 31, 2018, 6:21:05 AM (15 months ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
master
Children:
84a5921d
Parents:
6dc0b5f
git-author:
Daniel Hellstrom <daniel@…> (08/31/18 06:21:05)
git-committer:
Daniel Hellstrom <daniel@…> (10/09/18 10:36:41)
Message:

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.

Location:
bsps/sparc/leon3/config
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bsps/sparc/leon3/config/gr712rc.cfg

    r6dc0b5f rdc32b6a  
    99#  This contains the compiler options necessary to select the CPU model
    1010#  and (hopefully) optimize for it.
    11 CPU_CFLAGS = -mcpu=leon3 -mfix-gr712rc
     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
    1217
    1318# optimize flag: typically -O2
  • bsps/sparc/leon3/config/gr740.cfg

    r6dc0b5f rdc32b6a  
    1 include $(RTEMS_ROOT)/make/custom/leon3.cfg
     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 TracChangeset for help on using the changeset viewer.