!151 Sw64: Add support for sw_64 architecture.

From: @little-huaduo 
Reviewed-by: @alexanderbill 
Signed-off-by: @alexanderbill
This commit is contained in:
openeuler-ci-bot 2025-03-24 06:27:12 +00:00 committed by Gitee
commit a3f34a93af
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 63432 additions and 4 deletions

View File

@ -72,7 +72,7 @@
%global is_system_jdk 0
%global aarch64 aarch64 arm64 armv8
%global jit_arches x86_64 %{aarch64} loongarch64 riscv64
%global jit_arches x86_64 %{aarch64} loongarch64 riscv64 sw_64
%global aot_arches x86_64 %{aarch64}
%global linux_x64_aarch64 aarch64 x86_64
@ -143,6 +143,9 @@
%ifarch loongarch64
%global archinstall loongarch64
%endif
%ifarch sw_64
%global archinstall sw64
%endif
%ifarch %{riscv64}
%global archinstall riscv64
%endif
@ -914,7 +917,7 @@ Provides: java-src%{?1} = %{epoch}:%{version}-%{release}
Name: java-%{javaver}-%{origin}
Version: %{newjavaver}.%{buildver}
Release: 2
Release: 3
# 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
@ -1068,6 +1071,12 @@ Patch78: Fix-a-concurrent-issue-of-program-data-ref-cnt.patch
############################################
Patch2000: LoongArch64-support.patch
############################################
#
# Sw64 specific patches
#
############################################
Patch6000: sw_64-support.patch
BuildRequires: autoconf
BuildRequires: automake
@ -1289,7 +1298,7 @@ fi
# OpenJDK patches
%ifnarch loongarch64 riscv64
%ifnarch loongarch64 riscv64 sw_64
pushd %{top_level_dir_name}
%patch 1 -p1
%patch 3 -p1
@ -1403,6 +1412,11 @@ pushd %{top_level_dir_name}
popd
%endif
%ifarch sw_64
pushd %{top_level_dir_name}
%patch 6000 -p1
popd
%endif
# Extract systemtap tapsets
%if %{with_systemtap}
@ -1458,7 +1472,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} loongarch64
%ifarch s390x sparc64 alpha %{power64} %{aarch64} loongarch64 sw_64
export ARCH_DATA_MODEL=64
%endif
%ifarch alpha
@ -1541,9 +1555,18 @@ bash ../configure \
--with-giflib=system \
--with-libpng=system \
--with-harfbuzz=system \
%ifarch sw_64
--enable-jvm-feature-epsilongc=no --enable-jvm-feature-compiler1=no \
--enable-jvm-feature-jfr=no --enable-jvm-feature-jvmci=no --enable-jvm-feature-shenandoahgc=no --enable-jvm-feature-zgc=no \
--enable-cds-archive=no \
--with-extra-cflags="-mieee -mgprel-size=32" \
--with-extra-cxxflags="-mieee -mgprel-size=32" \
--with-extra-ldflags="-mieee -Wl,-no-relax" \
%else
--with-extra-cxxflags="$EXTRA_CPP_FLAGS" \
--with-extra-cflags="$EXTRA_CFLAGS" \
--with-extra-ldflags="%{ourldflags}" \
%endif
--with-num-cores="$NUM_PROC" \
--with-source-date="${SOURCE_DATE_EPOCH}" \
--disable-javac-server \
@ -1963,6 +1986,9 @@ cjc.mainProgram(args) -- the returns from copy_jdk_configs.lua should not affect
%changelog
* Wed Mar 19 2025 swcompiler <lc@wxiat.cn> - 1:17.0.14.7-3
- add sw64 architecture support to 17.0.14.7
* Fri Feb 21 2025 songliyang <songliyang@kylinos.cn> - 1:17.0.14.7-2
- fix LoongArch64 support patch apply error

63402
sw_64-support.patch Normal file

File diff suppressed because it is too large Load Diff