From 8bc18c09f3034ce920d7d64a802bc1f28d2767c4 Mon Sep 17 00:00:00 2001 From: "jiahua.yu" Date: Wed, 25 Oct 2023 17:03:34 +0800 Subject: [PATCH] Add ppc64le support --- 0001-Add-ppc64le-support.patch | 38 ++++++++++++++++++++++++++++++++++ openEuler-rpm-config.spec | 1 + 2 files changed, 39 insertions(+) create mode 100644 0001-Add-ppc64le-support.patch diff --git a/0001-Add-ppc64le-support.patch b/0001-Add-ppc64le-support.patch new file mode 100644 index 0000000..8ee3f44 --- /dev/null +++ b/0001-Add-ppc64le-support.patch @@ -0,0 +1,38 @@ +From c6d355a6997ac10403181015b5ca9d17dcf8d1a7 Mon Sep 17 00:00:00 2001 +From: JianChunfu +Date: Tue, 24 Oct 2023 18:38:38 +0800 +Subject: [PATCH] add ppc64le support + +--- + macros | 2 +- + rpmrc | 2 ++ + 2 files changed, 3 insertions(+), 1 deletion(-) + +diff --git a/macros b/macros +index 5c7447b..38dc694 100644 +--- a/macros ++++ b/macros +@@ -225,7 +225,7 @@ + %pkg_vcmp() (%{expand:%%{pkg_version_cmp %1 %3}} %2 0) + + #arches macros +-%generic_arches %{ix86} x86_64 %{arm} aarch64 ++%generic_arches %{ix86} x86_64 %{arm} aarch64 ppc64le + %ldc_arches %{generic_arches} + %valgrind_arches %{generic_arches} + %nodejs_arches %{generic_arches} +diff --git a/rpmrc b/rpmrc +index 8ba756d..10d7c86 100644 +--- a/rpmrc ++++ b/rpmrc +@@ -8,6 +8,8 @@ optflags: x86_64 %{__global_compiler_flags} -m64 -mtune=generic -fasynchronous-u + optflags: aarch64 %{__global_compiler_flags} -fasynchronous-unwind-tables -fstack-clash-protection + optflags: riscv64 %{__global_compiler_flags} -fasynchronous-unwind-tables -fstack-clash-protection + ++optflags: ppc64le %{__global_compiler_flags} -fasynchronous-unwind-tables -fstack-clash-protection ++ + buildarchtranslate: athlon: i686 + buildarchtranslate: geode: i686 + buildarchtranslate: pentium4: i686 +-- +2.33.0 diff --git a/openEuler-rpm-config.spec b/openEuler-rpm-config.spec index 9c2ad6a..b87be02 100644 --- a/openEuler-rpm-config.spec +++ b/openEuler-rpm-config.spec @@ -27,6 +27,7 @@ Patch13: add-loongarch64-support-for-config.guess-and-config.sub.patch Patch14: backport-kmp-feature.patch Patch15: 0001-add-loongarch64-for-golang_arches.patch Patch16: fix-config-error-for-loongarch64.patch +Patch17: 0001-Add-ppc64le-support.patch Provides: python-rpm-macros = %{?epoch:%{epoch}:}%{version}-%{release} Provides: python2-rpm-macros = %{?epoch:%{epoch}:}%{version}-%{release} -- Gitee