Skip to content

Commit 3f32238

Browse files
Martin Abergstephanosio
authored andcommitted
Add LEON multilibs for sparc-zephyr-elf
Adds the necessary bits for building libraries for the LEON -mcpu targets. Signed-off-by: Martin Åberg <martin.aberg@gaisler.com>
1 parent 41ab318 commit 3f32238

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

gcc/config.gcc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3372,6 +3372,9 @@ sh-wrs-vxworks)
33723372
sparc-*-elf*)
33733373
tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp-elf.h"
33743374
case ${target} in
3375+
sparc-zephyr*)
3376+
tmake_file="sparc/t-sparc sparc/t-zephyr"
3377+
;;
33753378
*-leon-*)
33763379
tmake_file="sparc/t-sparc sparc/t-leon"
33773380
;;

gcc/config/sparc/t-zephyr

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Copyright (C) 2012-2014 Free Software Foundation, Inc.
2+
#
3+
# This file is part of GCC.
4+
#
5+
# GCC is free software; you can redistribute it and/or modify
6+
# it under the terms of the GNU General Public License as published by
7+
# the Free Software Foundation; either version 3, or (at your option)
8+
# any later version.
9+
#
10+
# GCC is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU General Public License for more details.
14+
#
15+
# You should have received a copy of the GNU General Public License
16+
# along with GCC; see the file COPYING3. If not see
17+
# <http://www.gnu.org/licenses/>.
18+
19+
# Multilibs for Zephyr
20+
MULTILIB_OPTIONS =
21+
MULTILIB_DIRNAMES =
22+
23+
MULTILIB_OPTIONS += mcpu=leon/mcpu=leon3/mcpu=leon3v7
24+
MULTILIB_DIRNAMES += leon leon3 leon3v7
25+
26+
MULTILIB_OPTIONS += msoft-float
27+
MULTILIB_DIRNAMES += soft
28+
29+
MULTILIB_OPTIONS += mflat
30+
MULTILIB_DIRNAMES += flat
31+
32+
MULTILIB_MATCHES = msoft-float=mno-fpu
33+
34+
35+
# This is the complete list of multilibs to build
36+
MULTILIB_REQUIRED =
37+
38+
39+
MULTILIB_REQUIRED += msoft-float
40+
41+
MULTILIB_REQUIRED += mcpu=leon
42+
MULTILIB_REQUIRED += mcpu=leon/msoft-float
43+
MULTILIB_REQUIRED += mcpu=leon/mflat
44+
MULTILIB_REQUIRED += mcpu=leon/msoft-float/mflat
45+
46+
47+
MULTILIB_REQUIRED += mcpu=leon3
48+
MULTILIB_REQUIRED += mcpu=leon3/msoft-float
49+
MULTILIB_REQUIRED += mcpu=leon3/mflat
50+
MULTILIB_REQUIRED += mcpu=leon3/msoft-float/mflat
51+
52+
MULTILIB_REQUIRED += mcpu=leon3v7
53+
MULTILIB_REQUIRED += mcpu=leon3v7/msoft-float
54+
MULTILIB_REQUIRED += mcpu=leon3v7/mflat
55+
MULTILIB_REQUIRED += mcpu=leon3v7/msoft-float/mflat

0 commit comments

Comments
 (0)