Skip to content

Commit 38990cf

Browse files
author
Cheng Jin
committed
Add support to the installed cross-compiler for RISCV
The change is to ensure the installed cross-compiler is correctly set up on the host system from OpenJDK11 perspective by changing the prefix of the cross-toolchain if users prefer the installed cross-compiler rather than building a cross-compiler from the source. Issue: ibmruntimes#218 Signed-off-by: Cheng Jin <[email protected]>
1 parent cc6eef2 commit 38990cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

closed/autoconf/custom-spec.gmk.in

+7
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,13 @@ endif
138138
ifeq (riscv64,$(OPENJDK_TARGET_CPU))
139139
ifeq (cross,$(COMPILE_TYPE))
140140
export SYSROOT_CFLAGS
141+
# Change the prefix of the cross toolchain if the corresponding
142+
# software package is installed on the host system.
143+
ifeq (install,$(RISCV_TOOLCHAIN_TYPE))
144+
export RISCV_CROSSTOOLS_PREFIX := riscv64-linux-gnu
145+
else
146+
export RISCV_CROSSTOOLS_PREFIX := riscv64-unknown-linux-gnu
147+
endif
141148
else
142149
JAVA_FLAGS += -DserverStartupTimeout=36000
143150
endif

0 commit comments

Comments
 (0)