Add ppc64le support

This commit is contained in:
peng.zou 2024-02-02 11:07:43 +08:00
parent 2ab8c61ba9
commit c95bc86c96

View File

@ -4,7 +4,7 @@
Name: kexec-tools
Version: 2.0.23
Release: 11
Release: 12
License: GPLv2
Summary: The kexec/kdump userspace component
URL: https://www.kernel.org/
@ -138,7 +138,7 @@ rm -f kexec-tools.spec.in
cp %{SOURCE21} %{SOURCE26} %{SOURCE27} .
make
%ifarch %{ix86} x86_64 aarch64 sw_64 loongarch64
%ifarch %{ix86} x86_64 aarch64 sw_64 loongarch64 ppc64le
make -C eppic-%{eppic_ver}/libeppic
make -C makedumpfile-%{mkdf_ver} LINKTYPE=dynamic USELZO=on USESNAPPY=on
make -C makedumpfile-%{mkdf_ver} LDFLAGS="$LDFLAGS -I../eppic-%{eppic_ver}/libeppic -L../eppic-%{eppic_ver}/libeppic" eppic_makedumpfile.so
@ -182,7 +182,7 @@ install -m 644 %{SOURCE16} %{buildroot}%{_unitdir}/kdump.service
install -m 755 -D %{SOURCE22} %{buildroot}%{_prefix}/lib/systemd/system-generators/kdump-dep-generator.sh
install -m 644 %{SOURCE13} $RPM_BUILD_ROOT%{_udevrulesdir}/98-kexec.rules
%ifarch %{ix86} x86_64 aarch64 sw_64 loongarch64
%ifarch %{ix86} x86_64 aarch64 sw_64 loongarch64 ppc64le
install -m 755 makedumpfile-%{mkdf_ver}/makedumpfile $RPM_BUILD_ROOT/usr/sbin/makedumpfile
install -m 644 makedumpfile-%{mkdf_ver}/makedumpfile.8.gz $RPM_BUILD_ROOT/%{_mandir}/man8/makedumpfile.8.gz
install -m 644 makedumpfile-%{mkdf_ver}/makedumpfile.conf.5.gz $RPM_BUILD_ROOT/%{_mandir}/man5/makedumpfile.conf.5.gz
@ -287,14 +287,14 @@ done
%{dracutlibdir}/modules.d/*
%{_unitdir}/kdump.service
%{_prefix}/lib/systemd/system-generators/kdump-dep-generator.sh
%ifarch %{ix86} x86_64 aarch64 sw_64 loongarch64
%ifarch %{ix86} x86_64 aarch64 sw_64 loongarch64 ppc64le
%{_libdir}/eppic_makedumpfile.so
/usr/share/makedumpfile/
%endif
%ifarch %{ix86} x86_64 aarch64 sw_64 loongarch64
%ifarch %{ix86} x86_64 aarch64 sw_64 loongarch64 ppc64le
%{_sysconfdir}/makedumpfile.conf.sample
%endif
%ifarch %{ix86} x86_64 aarch64 sw_64 loongarch64
%ifarch %{ix86} x86_64 aarch64 sw_64 loongarch64 ppc64le
/usr/sbin/makedumpfile
%endif
@ -307,11 +307,14 @@ done
%{_mandir}/man8/mkdumprd.8.gz
%{_mandir}/man8/vmcore-dmesg.8.gz
%{_mandir}/man5/*
%ifarch %{ix86} x86_64 aarch64 sw_64 loongarch64
%ifarch %{ix86} x86_64 aarch64 sw_64 loongarch64 ppc64le
%{_mandir}/man8/makedumpfile.8.gz
%endif
%changelog
* Fri Feb 2 2024 peng.zou <peng.zou@shingroup.cn> - 2.0.23-12
- Add ppc64le support
* Fri Dec 30 2022 chenhaixiang <chenhaixiang3@huawei.com> - 2.0.23-11
- fix shellcheck error in dracut module setup