Skip to content

Commit

Permalink
Add support to the installed cross-compiler for RISCV
Browse files Browse the repository at this point in the history
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: #218

Signed-off-by: Cheng Jin <jincheng@ca.ibm.com>
  • Loading branch information
ChengJin01 committed Apr 16, 2020
1 parent cc6eef2 commit 38990cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions closed/autoconf/custom-spec.gmk.in
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ endif
ifeq (riscv64,$(OPENJDK_TARGET_CPU))
ifeq (cross,$(COMPILE_TYPE))
export SYSROOT_CFLAGS
# Change the prefix of the cross toolchain if the corresponding
# software package is installed on the host system.
ifeq (install,$(RISCV_TOOLCHAIN_TYPE))
export RISCV_CROSSTOOLS_PREFIX := riscv64-linux-gnu
else
export RISCV_CROSSTOOLS_PREFIX := riscv64-unknown-linux-gnu
endif
else
JAVA_FLAGS += -DserverStartupTimeout=36000
endif
Expand Down

0 comments on commit 38990cf

Please sign in to comment.