From 4b95473656c2ca633350fbcf66ae1ddd888da88a Mon Sep 17 00:00:00 2001 From: root Date: Wed, 27 Sep 2023 15:39:15 +0800 Subject: [PATCH 1/2] This patch is required to support ppc64le. --- kernel.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel.spec b/kernel.spec index 8d0beecd..96425ce1 100644 --- a/kernel.spec +++ b/kernel.spec @@ -16,7 +16,7 @@ %define modsign_cmd %{SOURCE10} -%global Arch $(echo %{_host_cpu} | sed -e s/i.86/x86/ -e s/x86_64/x86/ -e s/aarch64.*/arm64/ -e s/riscv.*/riscv/) +%global Arch $(echo %{_host_cpu} | sed -e s/i.86/x86/ -e s/x86_64/x86/ -e s/aarch64.*/arm64/ -e s/riscv.*/riscv/ -e s/powerpc64le/powerpc) %global KernelVer %{version}-%{release}.%{_target_cpu} %global debuginfodir /usr/lib/debug @@ -129,7 +129,7 @@ Provides: kernel-uname-r = %{KernelVer} kernel=%{KernelVer} Requires: dracut >= 001-7 grubby >= 8.28-2 initscripts >= 8.11.1-1 linux-firmware >= 20100806-2 module-init-tools >= 3.16-2 -ExclusiveArch: noarch aarch64 i686 x86_64 riscv64 +ExclusiveArch: noarch aarch64 i686 x86_64 riscv64 ppc64le ExclusiveOS: Linux %if %{with_perf} -- Gitee From 97aebbcc2ee7ef7a4165746f2a2d5bcd32b2f910 Mon Sep 17 00:00:00 2001 From: "jiahua.yu" Date: Wed, 13 Dec 2023 15:08:27 +0800 Subject: [PATCH 2/2] remove clang --- kernel.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel.spec b/kernel.spec index 96425ce1..e26fa67d 100644 --- a/kernel.spec +++ b/kernel.spec @@ -138,7 +138,9 @@ BuildRequires: java-devel %endif BuildRequires: dwarves +%ifnarch ppc64le BuildRequires: clang >= 10.0.0 +%endif BuildRequires: llvm %if %{with clang_lto} BuildRequires: lld -- Gitee