From 9bb17a2cf035b99ea674604c1d9b17b5c00e8c81 Mon Sep 17 00:00:00 2001 From: "jiahua.yu" Date: Sun, 8 Oct 2023 14:10:12 +0800 Subject: [PATCH 1/2] Init support for ppc64le --- 0001-support-ppc64le.patch | 77 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 0001-support-ppc64le.patch diff --git a/0001-support-ppc64le.patch b/0001-support-ppc64le.patch new file mode 100644 index 0000000..5d14988 --- /dev/null +++ b/0001-support-ppc64le.patch @@ -0,0 +1,77 @@ +From b7dc671985859c9ac3627f500e3124a9236c8a0d Mon Sep 17 00:00:00 2001 +From: jiahua.yu +Date: Sun, 8 Oct 2023 11:31:51 +0800 +Subject: [PATCH] support ppc64le + +--- + openjdk-1.8.0.spec | 15 +++++++++++++-- + 1 file changed, 13 insertions(+), 2 deletions(-) + +diff --git a/openjdk-1.8.0.spec b/openjdk-1.8.0.spec +index e261ab8..5530ec1 100644 +--- a/openjdk-1.8.0.spec ++++ b/openjdk-1.8.0.spec +@@ -51,10 +51,11 @@ + %global build_loop1 %{nil} + %endif + ++%global ppc64le ppc64le + %global aarch64 aarch64 +-%global jit_arches x86_64 %{aarch64} ++%global jit_arches x86_64 %{aarch64} ppc64le + %global sa_arches x86_64 %{aarch64} +-%global jfr_arches x86_64 %{aarch64} ++%global jfr_arches x86_64 %{aarch64} ppc64le + + # By default, we build a debug build during main build on JIT architectures + %global include_debug_build 1 +@@ -115,6 +116,10 @@ + %global archinstall aarch64 + %global stapinstall arm64 + %endif ++%ifarch %{ppc64le} ++%global archinstall ppc64le ++%global stapinstall powerpc ++%endif + + %ifarch %{jit_arches} + %global with_systemtap 1 +@@ -1463,6 +1468,7 @@ ln -s %{top_level_dir_name} jdk8 + pushd %{top_level_dir_name} + # OpenJDK patches + ++%ifnarch ppc64le + %patch8 -p1 + %patch10 -p1 + %patch18 -p1 +@@ -1600,6 +1606,7 @@ pushd %{top_level_dir_name} + %patch227 -p1 + %patch228 -p1 + %patch229 -p1 ++%endif + popd + + # System library fixes +@@ -1701,15 +1708,19 @@ bash ${top_srcdir_abs_path}/configure \ + --with-milestone="fcs" \ + --with-update-version=%{updatever} \ + --with-build-number=%{buildver} \ ++%ifnarch ppc64le + --with-company-name="Bisheng" \ + --with-vendor-name="Bisheng" \ ++%endif + --with-vendor-url="https://openeuler.org/" \ + --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 \ + --enable-unlimited-crypto \ + --with-zlib=system \ ++%ifnarch ppc64le + --enable-kae=yes \ ++%endif + --with-stdc++lib=dynamic \ + --with-extra-cflags="$EXTRA_CFLAGS" \ + --with-extra-cxxflags="$EXTRA_CPP_FLAGS" \ +-- +2.33.0 + -- Gitee From e20ca7f5e834fa41f167acde350991b9674542d9 Mon Sep 17 00:00:00 2001 From: "jiahua.yu" Date: Mon, 27 Nov 2023 16:38:27 +0800 Subject: [PATCH 2/2] init support for ppc64le --- openjdk-1.8.0.spec | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/openjdk-1.8.0.spec b/openjdk-1.8.0.spec index 8bf3484..b3fb063 100644 --- a/openjdk-1.8.0.spec +++ b/openjdk-1.8.0.spec @@ -53,9 +53,10 @@ %global aarch64 aarch64 %global riscv64 riscv64 -%global jit_arches x86_64 %{aarch64} +%global ppc64le ppc64le +%global jit_arches x86_64 %{aarch64} ppc64le %global sa_arches x86_64 %{aarch64} -%global jfr_arches x86_64 %{aarch64} +%global jfr_arches x86_64 %{aarch64} ppc64le # By default, we build a debug build during main build on JIT architectures %global include_debug_build 1 @@ -120,6 +121,10 @@ %global archinstall riscv64 %global stapinstall %{nil} %endif +%ifarch %{ppc64le} +%global archinstall ppc64le +%global stapinstall powerpc +%endif %ifarch %{jit_arches} %global with_systemtap 1 @@ -1617,6 +1622,7 @@ ln -s %{top_level_dir_name} jdk8 pushd %{top_level_dir_name} # OpenJDK patches +%ifnarch ppc64le %patch8 -p1 %patch10 -p1 %patch18 -p1 @@ -1888,6 +1894,7 @@ pushd %{top_level_dir_name} %ifarch riscv64 %patch2000 -p1 %endif +%endif popd # System library fixes @@ -2003,8 +2010,10 @@ bash ${top_srcdir_abs_path}/configure \ --with-milestone="fcs" \ --with-update-version=%{updatever} \ --with-build-number=%{buildver} \ +%ifnarch ppc64le --with-company-name="Bisheng" \ --with-vendor-name="Bisheng" \ +%endif --with-vendor-url="https://openeuler.org/" \ --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/" \ @@ -2529,6 +2538,8 @@ cjc.mainProgram(arg) %endif %changelog +* Mon Sep 25 2023 jihua.yu - 1:1.8.0.382-b05.10 +- init support for ppc64le * Mon Sep 25 2023 kuenking111 - 1:1.8.0.382-b05.10 - del useless code -- Gitee