You are not logged in.

#1 2011-12-05 18:19:33

jlindgren
Member
Registered: 2011-02-27
Posts: 260

How to safely clean up kernel build folder

I build my own Linux kernels (from upstream sources) for a couple of reasons.  After the build is complete, I have a 1.4 GB folder under /usr/src.  My question is, what is the best way to reclaim as much disk space as possible without losing the ability to compile third-party modules (for example, VirtualBox modules)?  My guess is that few if any of the *.o and *.c files will be needed but a lot of the *.h files need to remain.

Offline

#2 2011-12-05 23:34:39

matse
Member
Registered: 2011-04-27
Posts: 299

Re: How to safely clean up kernel build folder

Just stick to the official PKGBUILD when building your own kernel and adjust it to your needs - you will get pretty small kernel and kernel header packages that work with foreign modules,
matse

Offline

Board footer

Powered by FluxBB