!630 Sw64: Add sw64 architecture support.

From: @little-huaduo 
Reviewed-by: @alexanderbill 
Signed-off-by: @alexanderbill
This commit is contained in:
openeuler-ci-bot 2025-03-18 08:29:55 +00:00 committed by Gitee
commit 77a646453f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 82779 additions and 7 deletions

82748
add-sw_64-support.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -56,9 +56,10 @@
%global aarch64 aarch64
%global riscv64 riscv64
%global ppc64le ppc64le
%global jit_arches x86_64 %{aarch64} loongarch64 ppc64le
%global sa_arches x86_64 %{aarch64} loongarch64
%global jfr_arches x86_64 %{aarch64} loongarch64 ppc64le
%global sw_64 sw_64
%global jit_arches x86_64 %{aarch64} loongarch64 ppc64le sw_64
%global sa_arches x86_64 %{aarch64} loongarch64 sw_64
%global jfr_arches x86_64 %{aarch64} loongarch64 ppc64le sw_64
# By default, we build a debug build during main build on JIT architectures
%global include_debug_build 1
@ -134,6 +135,11 @@
%global stapinstall powerpc64le
%endif
%ifarch sw_64
%global archinstall sw64
%global stapinstall sw64
%endif
# Need to support noarch for srpm build
%ifarch noarch
%global archinstall %{nil}
@ -621,7 +627,7 @@ exit 0
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libunpack.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libverify.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libzip.so
%ifnarch loongarch64
%ifnarch loongarch64 sw_64
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libz.so
%endif
%{_jvmdir}/%{jredir -- %{?1}}/lib/charsets.jar
@ -947,7 +953,7 @@ Provides: java-%{javaver}-%{origin}-accessibility%{?1} = %{epoch}:%{version}-%{r
Name: java-%{javaver}-%{origin}
Version: %{javaver}.%{updatever}.%{buildver}
Release: 0
Release: 1
# 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
@ -1416,6 +1422,14 @@ Patch2000: add-riscv64-support.patch
Patch4000: LoongArch64-support.patch
############################################
#
# sw_64 specific patches
#
############################################
Patch6000: add-sw_64-support.patch
#############################################
#
# Dependencies
@ -1707,7 +1721,7 @@ ln -s %{top_level_dir_name} jdk8
pushd %{top_level_dir_name}
# OpenJDK patches
%ifnarch loongarch64 ppc64le
%ifnarch loongarch64 ppc64le sw_64
%patch8 -p1
%patch10 -p1
@ -2041,6 +2055,10 @@ pushd %{top_level_dir_name}
%endif
%ifarch sw_64
%patch6000 -p1
%endif
%ifarch riscv64
%patch2000 -p1
%endif
@ -2158,7 +2176,7 @@ bash ${top_srcdir_abs_path}/configure \
--with-milestone="fcs" \
--with-update-version=%{updatever} \
--with-build-number=%{buildver} \
%ifnarch loongarch64 ppc64le
%ifnarch loongarch64 ppc64le sw_64
--with-company-name="BiSheng" \
--with-vendor-name="BiSheng" \
%endif
@ -2166,7 +2184,9 @@ bash ${top_srcdir_abs_path}/configure \
--with-vendor-bug-url="https://gitee.com/src-openeuler/openjdk-1.8.0/issues/" \
--with-vendor-vm-bug-url="https://gitee.com/src-openeuler/openjdk-1.8.0/issues/" \
--with-debug-level=$debugbuild \
%ifnarch sw_64
--enable-unlimited-crypto \
%endif
%ifarch aarch64
--enable-kae \
%endif
@ -2690,6 +2710,10 @@ cjc.mainProgram(args) -- the returns from copy_jdk_configs.lua should not affect
%endif
%changelog
* Tue Mar 18 2025 swcompiler <lc@wxiat.com> -1:1.8.0.442.b06-1
- Add sw64 architecture support to 8u442
* Wed Jan 22 2025 Autistic_boyya <wangzhongyi7@huawei.com> -1:1.8.0.442.b06-0
- modified add-missing-test-case.patch