Add support for RISCV (riscv64)

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
David Abdurachmanov 2021-05-07 15:23:41 +03:00
parent e4b8afc785
commit a46faec420
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
3 changed files with 3586 additions and 2 deletions

1704
config.guess vendored Normal file

File diff suppressed because it is too large Load Diff

1864
config.sub vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -251,6 +251,9 @@
%ifarch %{aarch64} %ifarch %{aarch64}
%global archinstall aarch64 %global archinstall aarch64
%endif %endif
%ifarch riscv64
%global archinstall riscv64
%endif
# 32 bit sparc, optimized for v9 # 32 bit sparc, optimized for v9
%ifarch sparcv9 %ifarch sparcv9
%global archinstall sparc %global archinstall sparc
@ -1083,7 +1086,7 @@ Version: %{newjavaver}.%{buildver}
# This package needs `.rolling` as part of Release so as to not conflict on install with # 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. 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 # java-X-openjdk. See: https://bugzilla.redhat.com/show_bug.cgi?id=1647298
Release: %{?eaprefix}%{rpmrelease}%{?extraver}.rolling%{?dist} Release: %{?eaprefix}%{rpmrelease}%{?extraver}.rolling.0.riscv64%{?dist}
# java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons # 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 # 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 # also included the epoch in their virtual provides. This created a
@ -1146,6 +1149,10 @@ Source14: TestECDSA.java
# Verify system crypto (policy) can be disabled via a property # Verify system crypto (policy) can be disabled via a property
Source15: TestSecurityProperties.java Source15: TestSecurityProperties.java
# New versions of config files with RISC-V (riscv64) support.
Source100: config.guess
Source101: config.sub
############################################ ############################################
# #
# RPM/distribution specific patches # RPM/distribution specific patches
@ -1512,6 +1519,12 @@ if [ $prioritylength -ne 8 ] ; then
exit 14 exit 14
fi fi
%ifarch riscv64
# Update config.{guess,sub} with RISC-V (riscv64) support
cp %{SOURCE100} openjdk/make/autoconf/build-aux/autoconf-config.guess
cp %{SOURCE101} openjdk/make/autoconf/build-aux/autoconf-config.sub
%endif
# OpenJDK patches # OpenJDK patches
# Remove libraries that are linked by both static and dynamic builds # Remove libraries that are linked by both static and dynamic builds
sh %{SOURCE12} %{top_level_dir_name} sh %{SOURCE12} %{top_level_dir_name}
@ -1585,7 +1598,7 @@ export NUM_PROC=${NUM_PROC:-1}
[ ${NUM_PROC} -gt %{?_smp_ncpus_max} ] && export NUM_PROC=%{?_smp_ncpus_max} [ ${NUM_PROC} -gt %{?_smp_ncpus_max} ] && export NUM_PROC=%{?_smp_ncpus_max}
%endif %endif
%ifarch s390x sparc64 alpha %{power64} %{aarch64} %ifarch s390x sparc64 alpha %{power64} %{aarch64} riscv64
export ARCH_DATA_MODEL=64 export ARCH_DATA_MODEL=64
%endif %endif
%ifarch alpha %ifarch alpha
@ -2229,6 +2242,9 @@ require "copy_jdk_configs.lua"
%endif %endif
%changelog %changelog
* Fri May 07 2021 David Abdurachmanov <david.abdurachmanov@gmail.com> - 1:16.0.1.0.9-2.rolling.0.riscv64
- Add support for RISC-V (riscv64)
* Fri Apr 29 2021 Jiri Vanek <jvanek@redhat.com> - 1:16.0.1.0.9-2.rolling * Fri Apr 29 2021 Jiri Vanek <jvanek@redhat.com> - 1:16.0.1.0.9-2.rolling
- adapted to debug handling in newer cjc - adapted to debug handling in newer cjc
- The rest of the "rpm 4.17" patch must NOT be backported, as on rpm 4.16 and down, it would casue double execution - The rest of the "rpm 4.17" patch must NOT be backported, as on rpm 4.16 and down, it would casue double execution