Add support for ppc64le

Signed-off-by: Ren Zhijie <zhijie.ren@shingroup.cn>
This commit is contained in:
Ren Zhijie 2024-06-19 17:13:55 +08:00
parent 0cda70951d
commit 2a651b0444

View File

@ -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
@ -25,7 +25,7 @@
%global upstream_sublevel 0
%global devel_release 16
%global maintenance_release .0.0
%global pkg_release .15
%global pkg_release .16
%global openeuler_lts 1
%global openeuler_major 2403
@ -151,7 +151,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}
@ -666,7 +666,9 @@ find $RPM_BUILD_ROOT/usr/include -name "\.*" -exec rm -rf {} \;
%endif
# deal with vdso
%ifnarch ppc64le
%{make} -s ARCH=%{Arch} INSTALL_MOD_PATH=$RPM_BUILD_ROOT vdso_install KERNELRELEASE=%{KernelVer}
%endif
if [ ! -s ldconfig-kernel.conf ]; then
echo "# Placeholder file, no vDSO hwcap entries used in this kernel." >ldconfig-kernel.conf
fi
@ -1018,6 +1020,9 @@ fi
%endif
%changelog
* Wed Jun 19 2024 Ren Zhijie <zhijie.ren@shingroup.cn> - 6.6.0-16.0.0.16
- add support for arch ppc64le
* Tue Apr 02 2024 Zheng Zengkai <zhengzengkai@huawei.com> - 6.6.0-16.0.0.15
- !5647 hisilicon - some bugfix and cleanup
- crypto: hisilicon/sec2: fix memory use-after-free issue