frno7 / linux

Linux 2.2, 2.6, 3.x, 4.x and 5.x kernels for the PlayStation 2.
Other
84 stars 5 forks source link

Remove unnecessary kernel modules from downloadable initramfs archives #77

Closed frno7 closed 2 years ago

frno7 commented 2 years ago

Kernel modules (*.ko files) are generally entirely dependent on the exact kernel used, and are therefore almost unusable for any other kernel (even the same kernel version having a slightly different .config won’t work).

For details, see also https://github.com/frno7/gentoo-mipsr5900el/issues/5#issuecomment-1117549943.

frno7 commented 2 years ago

Done in .github/workflows/compilation.yml with

tar cvzf usr/initramfs_data.tar.gz -C /srv --exclude initramfs/lib/modules initramfs