LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-07-2005, 06:25 AM   #1
jackandking
Member
 
Registered: Dec 2004
Posts: 92

Rep: Reputation: 15
kernel remake after make modules_install,???


I have two machines both installed RH90,
in machineA, I download kernel 2.6.11,do config and make, no problem.
then, cp the complied kernel to machineB, do make modules_install ,still ok ,
but , when i try to make install, it begins to make again,
why?
my doubt is if it's due to time stamp, why make modules_install doesn't invoke remake?
 
Old 04-07-2005, 06:28 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your thread/question get the exposure it deserves.

It's all about timestamp, so I think that one (or more) of the non-module files have different timestamp. The way make is run is affected only by files it has to deal with using the pass it's running.

I'm guessing, in fact, here, but it may be the explanation.
 
Old 04-07-2005, 08:00 PM   #3
winsnomore
Member
 
Registered: May 2004
Location: USA
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315

Rep: Reputation: 31
well your questions is not exactly clear .. but I assume you are questioning about running make install on the second machine.
First you have to explain how you copied the kernel/tree over.

Make works by making sure that *.o and target file is newer than ALL source (.c/.h .. ) files ... if any source is "newer" .. it will rebuild target
make moodule_install really does nothing but copies files .. make modules will buld them .. make install typically will also copy target unless the target doesn't exist and then it might build (depends who wrote the makefile)
 
Old 04-10-2005, 10:12 AM   #4
jackandking
Member
 
Registered: Dec 2004
Posts: 92

Original Poster
Rep: Reputation: 15
thanks for all your help!
i cp the whole dir with:
machineA] scp -r kernel-2.6.11 jak@machineB:~/tmp/kernel/

how could the *.c become newer than *.o for they had been copied the same time and same way?
 
Old 04-10-2005, 04:04 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
Copying changes timestamps. So it all depends on the order the file are compied. If .c is copied after its .o, you have a problem.

What to do? Compress it - make it .tar.gz. It keeps timestamps.
 
Old 04-11-2005, 07:25 AM   #6
jackandking
Member
 
Registered: Dec 2004
Posts: 92

Original Poster
Rep: Reputation: 15
ok,i'll keep this good method in mind ,thanks a lot!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
kernel compilation error : in "make modules_install" b0nd Linux - Newbie 5 06-11-2013 08:15 AM
Kernel 2.6.11.6 make modules_install returns error Ac1db0rN Slackware 13 03-29-2005 11:16 AM
Kernel 2.6.5 make modules_install problem ss_ffs Linux - General 0 05-06-2004 06:54 AM
stuck compiling kernel: make modules_install arpi Linux - General 2 03-20-2004 10:52 PM
modinst error when "make modules_install", kernel 2.4.22 kc00l Slackware 7 01-23-2004 03:28 PM


All times are GMT -5. The time now is 09:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration