Compare commits

...

6 Commits

Author SHA1 Message Date
David Abdurachmanov 3c3d742777
Disable ssbd for riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-03-09 13:17:15 +02:00
David Abdurachmanov ded241d6e2
Enable debug, fastdebug, ssbd, svml for riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-03-08 19:09:17 +02:00
David Abdurachmanov 636d335379
Set stapinstall for riscv64 to _target_cpu
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-03-08 16:37:08 +02:00
David Abdurachmanov ad44f0f81c
Add riscv64 to zgc_arches
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-03-08 16:36:26 +02:00
David Abdurachmanov 8b80ba1820
Use JDK 19 to boostrap
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-03-08 16:35:04 +02:00
David Abdurachmanov 39691d3d00
Build riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-03-08 16:18:04 +02:00
1 changed files with 26 additions and 12 deletions

View File

@ -131,11 +131,11 @@
# Set of architectures which support multiple ABIs
%global multilib_arches %{power64} sparc64 x86_64
# Set of architectures for which we build slowdebug builds
%global debug_arches %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64} s390x
%global debug_arches %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64} s390x riscv64
# Set of architectures for which we build fastdebug builds
%global fastdebug_arches x86_64 ppc64le aarch64
%global fastdebug_arches x86_64 ppc64le aarch64 riscv64
# Set of architectures with a Just-In-Time (JIT) compiler
%global jit_arches %{arm} %{aarch64} %{ix86} %{power64} s390x sparcv9 sparc64 x86_64
%global jit_arches %{arm} %{aarch64} %{ix86} %{power64} s390x sparcv9 sparc64 x86_64 riscv64
# Set of architectures which use the Zero assembler port (!jit_arches)
%global zero_arches ppc s390
# Set of architectures which run a full bootstrap cycle
@ -143,21 +143,21 @@
# Set of architectures which support SystemTap tapsets
%global systemtap_arches %{jit_arches}
# Set of architectures with a Ahead-Of-Time (AOT) compiler
%global aot_arches x86_64 %{aarch64}
%global aot_arches x86_64 %{aarch64} riscv64
# Set of architectures which support the serviceability agent
%global sa_arches %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64} %{arm}
%global sa_arches %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64} %{arm} riscv64
# Set of architectures which support class data sharing
# See https://bugzilla.redhat.com/show_bug.cgi?id=513605
# MetaspaceShared::generate_vtable_methods is not implemented for the PPC JIT
%global share_arches %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{arm} s390x
%global share_arches %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{arm} s390x riscv64
# Set of architectures for which we build the Shenandoah garbage collector
%global shenandoah_arches x86_64 %{aarch64}
%global shenandoah_arches x86_64 %{aarch64} riscv64
# Set of architectures for which we build the Z garbage collector
%global zgc_arches x86_64
%global zgc_arches x86_64 riscv64
# Set of architectures for which alt-java has SSB mitigation
%global ssbd_arches x86_64
# Set of architectures for which java has short vector math library (libsvml.so)
%global svml_arches x86_64
%global svml_arches x86_64 riscv64
# Set of architectures where we verify backtraces with gdb
# s390x fails on RHEL 7 so we exclude it there
%if (0%{?rhel} > 0 && 0%{?rhel} < 8)
@ -307,6 +307,10 @@
%global archinstall aarch64
%global stapinstall arm64
%endif
%ifarch riscv64
%global archinstall riscv64
%global stapinstall %{_target_cpu}
%endif
# 32 bit sparc, optimized for v9
%ifarch sparcv9
%global archinstall sparc
@ -338,7 +342,7 @@
# buildjdkver is usually same as %%{featurever},
# but in time of bootstrap of next jdk, it is featurever-1,
# and this it is better to change it here, on single place
%global buildjdkver %{featurever}
%global buildjdkver 19
# We don't add any LTS designator for STS packages (Fedora and EPEL).
# We need to explicitly exclude EPEL as it would have the %%{rhel} macro defined.
%if 0%{?rhel} && !0%{?epel}
@ -561,7 +565,7 @@ Version: %{newjavaver}.%{buildver}
# This package needs `.rolling` as part of Release so as to not conflict on install with
# java-X-openjdk. I.e. when latest rolling release is also an LTS release packaged as
# java-X-openjdk. See: https://bugzilla.redhat.com/show_bug.cgi?id=1647298
Release: %{?eaprefix}%{rpmrelease}%{?extraver}.rolling%{?dist}
Release: %{?eaprefix}%{rpmrelease}%{?extraver}.rolling.2.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
@ -1072,7 +1076,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
@ -1627,6 +1631,16 @@ done
%license %{unpacked_licenses}/%{jdkportablesourcesarchiveForFiles}
%changelog
* Sat Mar 09 2024 David Abdurachmanov <davidlt@rivosinc.com> - 1:20.0.2.0.9-1.rolling.2.riscv64
- Disable ssbd for riscv64
* Fri Mar 08 2024 David Abdurachmanov <davidlt@rivosinc.com> - 1:20.0.2.0.9-1.rolling.1.riscv64
- Enable more options for riscv64:
- debug, fastdebug, ssbd, svml
* Fri Mar 08 2024 David Abdurachmanov <davidlt@rivosinc.com> - 1:20.0.2.0.9-1.rolling.0.riscv64
- Rebuild for riscv64
* Thu Aug 03 2023 Jiri Vanek <jvanek@redhat.com> - 1:20.0.2.0.9-1.rolling
- Update to jdk-20.0.2+9
- Update release notes to 20.0.2+9