diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2018-03-22 14:46:39 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-03-22 14:46:39 +0100 |
commit | fa26b355cb2e9d89cdfb77c1e6e0a7c2ec4ceb9d (patch) | |
tree | 60b82f58f5b3714be34985c3f9e08709fee34f3f /kernel.spec.template | |
parent | 9081920c28682cb2710290b22c33c07e50fe2b41 (diff) | |
download | jenkinsfiles-fa26b355cb2e9d89cdfb77c1e6e0a7c2ec4ceb9d.tar.gz |
rm firmware
Diffstat (limited to 'kernel.spec.template')
-rw-r--r-- | kernel.spec.template | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel.spec.template b/kernel.spec.template index 09b3210..ea4a279 100644 --- a/kernel.spec.template +++ b/kernel.spec.template @@ -50,13 +50,17 @@ make INSTALL_PATH=%{buildroot}/boot \ INSTALLKERNEL=/bin/true \ -C build \ install modules_install headers_install + mv %{buildroot}/boot/System.map \ %{buildroot}/boot/System.map-%{KVERREL} mv %{buildroot}/boot/vmlinuz \ %{buildroot}/boot/vmlinuz-%{KVERREL} cp build/.config %{buildroot}/boot/config-%{KVERREL} + +rm -rf %{buildroot}/lib/firmware find %{buildroot}/usr -name .install -print | xargs rm find %{buildroot}/usr -name ..install.cmd -print | xargs rm + find %{buildroot}/lib/modules -name "*.ko" | xargs strip --strip-debug find %{buildroot}/lib/modules -name "*.ko" | xargs gzip -v |