From 509d7471a5e4f2d41f46d23cebbdf094ce032a7e Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Thu, 29 Sep 2022 10:27:02 +0300 Subject: [PATCH] Add support for riscv64 Signed-off-by: David Abdurachmanov --- java-17-openjdk.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/java-17-openjdk.spec b/java-17-openjdk.spec index cbef4a4..c46c552 100644 --- a/java-17-openjdk.spec +++ b/java-17-openjdk.spec @@ -127,7 +127,7 @@ # Set of architectures with a Just-In-Time (JIT) compiler %global jit_arches %{arm} %{aarch64} %{ix86} %{power64} s390x sparcv9 sparc64 x86_64 # Set of architectures which use the Zero assembler port (!jit_arches) -%global zero_arches ppc s390 +%global zero_arches ppc s390 riscv64 # Set of architectures which run a full bootstrap cycle %global bootstrap_arches %{jit_arches} # Set of architectures which support SystemTap tapsets @@ -296,6 +296,10 @@ %global archinstall aarch64 %global stapinstall arm64 %endif +%ifarch riscv64 +%global archinstall riscv64 +%global stapinstall %{nil} +%endif # 32 bit sparc, optimized for v9 %ifarch sparcv9 %global archinstall sparc @@ -1285,7 +1289,7 @@ Provides: java-%{origin}-src%{?1} = %{epoch}:%{version}-%{release} Name: java-17-%{origin} Version: %{newjavaver}.%{buildver} -Release: %{?eaprefix}%{rpmrelease}%{?extraver}%{?dist} +Release: %{?eaprefix}%{rpmrelease}%{?extraver}.0.riscv64%{?dist} # java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons # and this change was brought into RHEL-4. java-1.5.0-ibm packages # also included the epoch in their virtual provides. This created a @@ -1936,7 +1940,7 @@ export NUM_PROC=${NUM_PROC:-1} [ ${NUM_PROC} -gt %{?_smp_ncpus_max} ] && export NUM_PROC=%{?_smp_ncpus_max} %endif -%ifarch s390x sparc64 alpha %{power64} %{aarch64} +%ifarch s390x sparc64 alpha %{power64} %{aarch64} riscv64 export ARCH_DATA_MODEL=64 %endif %ifarch alpha @@ -2669,6 +2673,9 @@ cjc.mainProgram(args) %endif %changelog +* Thu Sep 29 2022 David Abdurachmanov - 1:17.0.4.1.1-3.0.riscv64 +- Add support for riscv64 + * Tue Aug 30 2022 Andrew Hughes - 1:17.0.4.1.1-3 - Switch to static builds, reducing system dependencies and making build more portable