Skip to content

Commit 9bd0f11

Browse files
duynguyenxanashif
authored andcommitted
[rx] Support RX GCC Zephyr build
This commit add RX zephyr build config Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
1 parent e8b0df3 commit 9bd0f11

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
@@ -3206,7 +3206,14 @@ rl78-*-elf*)
32063206
;;
32073207
rx-*-elf*)
32083208
tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
3209-
tmake_file="${tmake_file} rx/t-rx"
3209+
case ${target} in
3210+
rx-zephyr*)
3211+
tmake_file="${tmake_file} rx/t-zephyr"
3212+
;;
3213+
*)
3214+
tmake_file="${tmake_file} rx/t-rx"
3215+
;;
3216+
esac
32103217
extra_options="${extra_options} rx/elf.opt"
32113218
;;
32123219
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)