LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-09-2015, 08:11 PM   #1
Fred Caro
Senior Member
 
Registered: May 2007
Posts: 1,007

Rep: Reputation: 167Reputation: 167
post kernel compile clear up


I have a src directory that now is 20GB after compiling 3 kernels, is this normal and if so how can I reduce it.
It is a home computer and relies on no other.
Using Debian 8.
Are "headers" refering to something in /src?

Fred.
 
Old 07-10-2015, 03:37 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
You can run
1. make clean
2. make depclean
 
Old 07-10-2015, 07:27 PM   #3
Fred Caro
Senior Member
 
Registered: May 2007
Posts: 1,007

Original Poster
Rep: Reputation: 167Reputation: 167
Thanks.
I have not heard of 'make depclean' before, what does that do? I take it I would have to do it for each kernel directory?
Also 'make clean' is usually done to prepare for the next configuration.
And does the working kernel reference what is in the /src directory?

Fred.
 
Old 07-11-2015, 07:07 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Make clean gets ready for another possible compilation. This is useful if you are not building the same kernel several times due to edits. It will delete all the object files (and object libraries). The result is as if you had done a make menuconfig, but not built the kernel yet.

Make depclean deletes configuration files generated as part of the make menuconfig step as well.

A running kernel does not depend on anything from the source directory. Usually, the kernel is configured and compiled in a user directory - only the install (which writes into /boot) steps require root.

Once the install is complete it is possible to delete the entire source kit.

Last edited by jpollard; 07-11-2015 at 07:09 AM.
 
1 members found this post helpful.
Old 07-12-2015, 01:56 PM   #5
Fred Caro
Senior Member
 
Registered: May 2007
Posts: 1,007

Original Poster
Rep: Reputation: 167Reputation: 167
Thanks.

This is what I wanted to hear
Quote:
Once the install is complete it is possible to delete the entire source kit.
I will run make clean and make depclean to see how much space it clears up. Probably keep the Documentation and the .config files as well.

Fred.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Syntax not clear in a kernel patch. tkmsr Programming 2 04-02-2010 11:20 PM
Post compile Kernel problems khaleel5000 Linux - Kernel 9 05-27-2006 07:12 PM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 04:22 PM
post kernel compile stuf? e1000 Slackware 8 12-13-2003 09:18 AM
post 2.4.19 kernel compile blues hopinator Linux - Software 5 09-20-2002 04:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration