Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
is this normal in kernel compilation?
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
tscolari
l33t
l33t


Joined: 02 May 2004
Posts: 602
Location: curitiba - pr - Brazil

PostPosted: Tue May 25, 2004 2:59 pm    Post subject: is this normal in kernel compilation? Reply with quote

I've done a little changes in my kernel config, then I when to re compile it, this:

Quote:

#/usr/src/linux> make && make modules_install
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/asm-i386/asm_offsets.h
CHK include/linux/compile.h
Kernel: arch/i386/boot/bzImage is ready
Building modules, stage 2.
MODPOST
INSTALL drivers/char/agp/agpgart.ko
INSTALL drivers/net/dummy.ko
INSTALL drivers/char/agp/nvidia-agp.ko
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.5-gentoo-r1; fi


But the last time i did a make in the kernel, it was very extensive, this time just a few lines, is this right? I would like to know if this is normal or something went wrong :(
Back to top
View user's profile Send private message
Agitator[RoX]
n00b
n00b


Joined: 10 Mar 2003
Posts: 27
Location: Kalmar/Sweden

PostPosted: Tue May 25, 2004 3:16 pm    Post subject: Reply with quote

When my kernel compiled like that, it didn't work.
_________________
"Linux is metal"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43754
Location: 56N 3W

PostPosted: Tue May 25, 2004 3:36 pm    Post subject: Reply with quote

tscolari,

It depends on what you have done. If you have added things, thats OK.

Make compares the timestamps on the souce code files and on the output files (which were still in the tree from last time) and only compiles files if the source code is newer than the object file. This saves a lot of time.

If you really wanted to do it all over again, you need to run
Code:
make clean
to get rid of all the output files in the tree. Then make has to compile everything.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
tscolari
l33t
l33t


Joined: 02 May 2004
Posts: 602
Location: curitiba - pr - Brazil

PostPosted: Tue May 25, 2004 9:19 pm    Post subject: Reply with quote

NeddySeagoon wrote:
tscolari,

It depends on what you have done. If you have added things, thats OK.

Make compares the timestamps on the souce code files and on the output files (which were still in the tree from last time) and only compiles files if the source code is newer than the object file. This saves a lot of time.

If you really wanted to do it all over again, you need to run
Code:
make clean
to get rid of all the output files in the tree. Then make has to compile everything.


hmmm

to make it compile all again I should run:
make clean && make modules_install
or:
make clean
make && make modules_install
?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43754
Location: 56N 3W

PostPosted: Tue May 25, 2004 9:23 pm    Post subject: Reply with quote

tscolari,

Code:
make clean
make
make modules_install
will build everything in a 2.6 kernel from the ground up. 2.4 is slightly different.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
tscolari
l33t
l33t


Joined: 02 May 2004
Posts: 602
Location: curitiba - pr - Brazil

PostPosted: Tue May 25, 2004 9:25 pm    Post subject: Reply with quote

NeddySeagoon wrote:
tscolari,

Code:
make clean
make
make modules_install
will build everything in a 2.6 kernel from the ground up. 2.4 is slightly different.


thanks friend :)
Back to top
View user's profile Send private message
Rainmaker
Veteran
Veteran


Joined: 12 Feb 2004
Posts: 1650
Location: /home/NL/ehv/

PostPosted: Wed May 26, 2004 1:44 am    Post subject: Reply with quote

for people stumbling across this thread using a 2.4 kernel:

Code:
make mrproper
make menuconfig
make dep && make bzImage && make modules && make modules_install


You probably just added a module to your kernel configuration, which causes make to build the extra modules, agpgart.ko,dummy.ko and nvidia-agp.ko in your case. The bzImage doesn't have to be recompiled, because you didin't change anything...

All with all: your kernel works fine, and you will have the extra 3 modules available when you reboot.

If you just change modules, you don't have to make clean / mrproper. You can just do make && make modules_install, or make modules && make modules_install for 2.4
_________________
If you can't dazzle them with brilliance, baffle them with bullshit.
Back to top
View user's profile Send private message
sklettke
Guru
Guru


Joined: 05 Nov 2002
Posts: 352
Location: Madison, WI

PostPosted: Wed May 26, 2004 4:47 am    Post subject: Reply with quote

NeddySeagoon wrote:
tscolari,

Code:
make clean
make
make modules_install
will build everything in a 2.6 kernel from the ground up. 2.4 is slightly different.


I always use "make mrproper." Does that do the same thing as make clean?

Scott
_________________
Jab.ID: scottk@jabber.org

Kernel: 2.6.11-rc3-nitro0
KDE 3.3.2 with Xorg
MythBox: 2.6.5-gentoo-dev-r2 (LVMed 360GB in XFS; Athlon 2500+)
Back to top
View user's profile Send private message
darksbane
n00b
n00b


Joined: 15 Apr 2004
Posts: 28
Location: Fredonia, NY

PostPosted: Wed May 26, 2004 5:53 am    Post subject: Reply with quote

make clean erases the compiled kernel and .o files. make mrproper also deletes the .config file.
_________________
:wq
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