Skip to content

Commit 5e84784

Browse files
duynguyenxanashif
authored andcommitted
[rx] Support RX GCC Zephyr build
This commit add RX zephyr build config Signed-off-by: Duy Nguyen <[email protected]>
1 parent 1367e8e commit 5e84784

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

gcc/config.gcc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3250,7 +3250,14 @@ rl78-*-elf*)
32503250
;;
32513251
rx-*-elf*)
32523252
tm_file="elfos.h newlib-stdint.h ${tm_file}"
3253-
tmake_file="${tmake_file} rx/t-rx"
3253+
case ${target} in
3254+
rx-zephyr*)
3255+
tmake_file="${tmake_file} rx/t-zephyr"
3256+
;;
3257+
*)
3258+
tmake_file="${tmake_file} rx/t-rx"
3259+
;;
3260+
esac
32543261
extra_options="${extra_options} rx/elf.opt"
32553262
;;
32563263
rx-*-linux*)

gcc/config/rx/t-zephyr

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Makefile fragment for building GCC for the Renesas RX target.
2+
# Copyright (C) 2008-2022 Free Software Foundation, Inc.
3+
# Contributed by Red Hat.
4+
#
5+
# This file is part of GCC.
6+
#
7+
# GCC is free software; you can redistribute it and/or modify it
8+
# under the terms of the GNU General Public License as published
9+
# by the Free Software Foundation; either version 3, or (at your
10+
# option) any later version.
11+
#
12+
# GCC is distributed in the hope that it will be useful, but
13+
# WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
15+
# the GNU General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU General Public
18+
# License along with GCC; see the file COPYING3. If not see
19+
# <http://www.gnu.org/licenses/>.
20+
21+
# Enable multilibs:
22+
23+
MULTILIB_OPTIONS = m64bit-doubles nofpu mbig-endian-data mpid
24+
MULTILIB_DIRNAMES = 64-bit-double no-fpu-libs big-endian-data pid
25+
26+
# If necessary uncomment the next two lines to generate multilibs
27+
# using the old, broken, ABI.
28+
# MULTILIB_OPTIONS += mgcc-abi
29+
# MULTILIB_DIRNAMES += gcc-abi
30+
31+
MULTILIB_OPTIONS += mno-allow-string-insns
32+
MULTILIB_DIRNAMES += no-strings
33+
34+
MULTILIB_MATCHES = nofpu=mnofpu nofpu=mcpu?rx200 nofpu=mcpu?rx100
35+
36+
MULTILIB_EXCEPTIONS =
37+
MULTILIB_EXTRA_OPTS =

0 commit comments

Comments
 (0)