Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Who the hell is MrProper anyway?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
NicZak
n00b
n00b


Joined: 21 Apr 2002
Posts: 29

PostPosted: Wed Jun 05, 2002 5:59 pm    Post subject: Who the hell is MrProper anyway? Reply with quote

In different books / other sources I have seen that it is reccomended to do a 'make mrproper' before make menuconfig -> make dep && make clean bzImage modules modules_install .. As far as I know make mrproper just removes symlinks that the kernel old sources may have created. My question is basically what is the difference between make mrproper and make clean and when/if at all should one use make mrproper? Thanks -

NicZak
Back to top
View user's profile Send private message
Utoxin
Guru
Guru


Joined: 19 Apr 2002
Posts: 411
Location: Springville, UT

PostPosted: Wed Jun 05, 2002 6:12 pm    Post subject: Reply with quote

Use make mrproper if you have made any change to the kernel source. Be it adding a patch, or installing a new version. It does more than make clean. Not sure how /much/ more, but I know I've had times when the kernel wouldn't compile till I did a make mrproper.
Back to top
View user's profile Send private message
brain
Apprentice
Apprentice


Joined: 16 May 2002
Posts: 229
Location: Farmington Hills, MI

PostPosted: Wed Jun 05, 2002 9:19 pm    Post subject: Reply with quote

Basically the rule is, a "make clean" will clean up the src directory...removing any temp files and compiled kernels...

a "make mrproper" wipes the tree clean...removing any changes you've made...in theory, giving you a "clean" tree...just like when it was unzipped.
_________________
--brain
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Wed Jun 05, 2002 9:56 pm    Post subject: Reply with quote

brain wrote:
a "make mrproper" wipes the tree clean...removing any changes you've made...in theory, giving you a "clean" tree...just like when it was unzipped.


Not exactly, make mrproper, doesn't remove my patched files, it just removes a lot of files created by dependsalong with object files etc. So it just look like a clean kernel including all the patches you made, so all sourcecode remain untouched.

FACTS:
Code:
# files removed with 'make mrproper'
MRPROPER_FILES = \
        .......
   include/linux/autoconf.h include/linux/version.h \
   .version .config* config.in config.old \
   scripts/tkparse scripts/kconfig.tk scripts/kconfig.tmp \
   scripts/lxdialog/*.o scripts/lxdialog/lxdialog \
   .menuconfig.log \
   include/asm \
   .hdepend scripts/mkdep scripts/split-include scripts/docproc \
   $(TOPDIR)/include/linux/modversions.h \
   kernel.spec

# directories removed with 'make mrproper'
MRPROPER_DIRS = \
   include/config \
   $(TOPDIR)/include/linux/modules

Code:

   find . \( -size 0 -o -name .depend \) -type f -print | xargs rm -f
   rm -f $(MRPROPER_FILES)
   rm -rf $(MRPROPER_DIRS)
   $(MAKE) -C Documentation/DocBook mrproper

and cleans the arch dir, but think removing .depends file and the two dirs are the most important.

Cya lX
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
Zu`
l33t
l33t


Joined: 26 May 2002
Posts: 716
Location: BE

PostPosted: Wed Jun 05, 2002 10:30 pm    Post subject: Reply with quote

Useful info,

thanks guys
Back to top
View user's profile Send private message
mellofone
Apprentice
Apprentice


Joined: 13 Apr 2002
Posts: 286

PostPosted: Wed Jun 05, 2002 10:35 pm    Post subject: Reply with quote

Can you simply say that you don't need mrproper if the kernel compiled?
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Wed Jun 05, 2002 10:48 pm    Post subject: Reply with quote

mellofone wrote:
Can you simply say that you don't need mrproper if the kernel compiled?

If the kernel compiled and all seperate modules (alsa, nvidia, lmsensors, ...) compiled, and you don't get missing dependencies when installing these modules, well then you can say you didn't need mrproper. So just do it if you make changes, it can save you a recompile and it takes less then a second well don't forget to backup the /usr/src/linux/.config file)

Cya lX.
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
NicZak
n00b
n00b


Joined: 21 Apr 2002
Posts: 29

PostPosted: Thu Jun 06, 2002 8:44 am    Post subject: Reply with quote

Thank you all for the input, my question was definately answered. Now how about checking my post under the hardware topic about usb gamepads! I am out of ideas and seriously want to use my gamepad;p. thx again! - NicZak
Back to top
View user's profile Send private message
brain
Apprentice
Apprentice


Joined: 16 May 2002
Posts: 229
Location: Farmington Hills, MI

PostPosted: Thu Jun 06, 2002 1:16 pm    Post subject: Reply with quote

Quote:

Not exactly, make mrproper, doesn't remove my patched files, it just removes a lot of files created by dependsalong with object files etc. So it just look like a clean kernel including all the patches you made, so all sourcecode remain untouched.


Good point and well said...
_________________
--brain
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum