disable arm64 kernel debuginfo (#1776)

This commit is contained in:
Andrew Phelps 2021-12-16 02:24:02 -08:00 committed by GitHub
parent 774b5ffbf4
commit b63a911e90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,9 @@
%global security_hardening none
%global sha512hmac bash %{_sourcedir}/sha512hmac-openssl.sh
%define uname_r %{version}-%{release}
%ifarch aarch64
%define debug_package %{nil}
%endif
Summary: Linux Kernel
Name: kernel
Version: 5.10.78.1
@ -534,6 +537,10 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
%ifarch x86_64
%exclude /lib/modules/%{uname_r}/kernel/arch/x86/oprofile/
%endif
%ifarch aarch64
%exclude /usr/lib/debug/lib/modules/%{uname_r}/vmlinux-%{uname_r}
%exclude /usr/lib/debug/lib/modules/%{uname_r}/vmlinux
%endif
%files docs
%defattr(-,root,root)