Skip to content

Commit fc8c2d8

Browse files
zackrmasahir0y
authored andcommitted
kbuild: Stop including vmlinux.bz2 in the rpm's
vmlinux.bz2 was added to the rpm packages in 2009 in the fc370ec ("kbuild: add vmlinux to kernel rpm") but seemingly hasn't been used since. Originally this should have been split up in a seperate debugging package because it massively increases the size of the generated rpm's e.g. kernel rpm built using binrpm-pkg on Fedora 36 default 5.19.8 kernel config and localmodconfig is ~255MB with vmlinux.bz2 and only ~65MB without it. Make the kernel built rpms about 4x smaller by not including the unused vmlinux.bz2 in them. Signed-off-by: Zack Rusin <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent bb1435f commit fc8c2d8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

scripts/package/mkspec

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ $M $MAKE %{?_smp_mflags} INSTALL_MOD_PATH=%{buildroot} modules_install
9797
$MAKE %{?_smp_mflags} INSTALL_HDR_PATH=%{buildroot}/usr headers_install
9898
cp System.map %{buildroot}/boot/System.map-$KERNELRELEASE
9999
cp .config %{buildroot}/boot/config-$KERNELRELEASE
100-
bzip2 -9 --keep vmlinux
101-
mv vmlinux.bz2 %{buildroot}/boot/vmlinux-$KERNELRELEASE.bz2
102100
$S$M rm -f %{buildroot}/lib/modules/$KERNELRELEASE/build
103101
$S$M rm -f %{buildroot}/lib/modules/$KERNELRELEASE/source
104102
$S$M mkdir -p %{buildroot}/usr/src/kernels/$KERNELRELEASE

0 commit comments

Comments
 (0)