Skip to content

Commit e6592cf

Browse files
author
Cheng Jin
committed
Update configure scripts for RISC-V (make)
The changes are to modify the scripts in the make directory to enable RISC-V from the configuration perspective. Issue: ibmruntimes#218 Signed-off-by: Cheng Jin <[email protected]>
1 parent 3cc03bc commit e6592cf

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

make/autoconf/build-aux/autoconf-config.guess

+7
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ timestamp='2012-02-10'
6161
# You can get the latest version of this script from:
6262
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
6363

64+
# ===========================================================================
65+
# (c) Copyright IBM Corp. 2019, 2019 All Rights Reserved
66+
# ===========================================================================
67+
6468
me=`echo "$0" | sed -e 's,.*/,,'`
6569

6670
usage="\
@@ -1000,6 +1004,9 @@ EOF
10001004
ppc:Linux:*:*)
10011005
echo powerpc-unknown-linux-gnu
10021006
exit ;;
1007+
riscv64:Linux:*:*)
1008+
echo ${UNAME_MACHINE}-unknown-linux-gnu
1009+
exit ;;
10031010
s390:Linux:*:* | s390x:Linux:*:*)
10041011
echo ${UNAME_MACHINE}-ibm-linux
10051012
exit ;;

make/autoconf/build-aux/autoconf-config.sub

+6
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ timestamp='2008-01-16'
8080
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
8181
# It is wrong to echo any other type of specification.
8282

83+
# ===========================================================================
84+
# (c) Copyright IBM Corp. 2019, 2019 All Rights Reserved
85+
# ===========================================================================
86+
8387
me=`echo "$0" | sed -e 's,.*/,,'`
8488

8589
usage="\
@@ -302,6 +306,7 @@ case $basic_machine in
302306
| pdp10 | pdp11 | pj | pjl \
303307
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
304308
| pyramid \
309+
| riscv64 \
305310
| score \
306311
| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
307312
| sh64 | sh64le \
@@ -383,6 +388,7 @@ case $basic_machine in
383388
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
384389
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
385390
| pyramid-* \
391+
| riscv64-* \
386392
| romp-* | rs6000-* \
387393
| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
388394
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \

make/autoconf/platform.m4

+10
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
# questions.
2424
#
2525

26+
# ===========================================================================
27+
# (c) Copyright IBM Corp. 2019, 2019 All Rights Reserved
28+
# ===========================================================================
29+
2630
# Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
2731
# Converts autoconf style CPU name to OpenJDK style, into
2832
# VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
@@ -114,6 +118,12 @@ AC_DEFUN([PLATFORM_EXTRACT_VARS_FROM_CPU],
114118
VAR_CPU_BITS=64
115119
VAR_CPU_ENDIAN=little
116120
;;
121+
riscv64)
122+
VAR_CPU=riscv64
123+
VAR_CPU_ARCH=riscv64
124+
VAR_CPU_BITS=64
125+
VAR_CPU_ENDIAN=little
126+
;;
117127
s390)
118128
VAR_CPU=s390
119129
VAR_CPU_ARCH=s390

0 commit comments

Comments
 (0)