Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]How can kernel with parameter in make.conf?
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
walterguo
Apprentice
Apprentice


Joined: 15 Jul 2005
Posts: 155

PostPosted: Mon Aug 18, 2008 12:24 pm    Post subject: [solved]How can kernel with parameter in make.conf? Reply with quote

Part of my /etc/make.conf is:
Quote:
CFLAGS="-march=prescott -O3 -pipe -msse3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"


I use the kernel source directly download from kernel.org. How can compile the kernel with the above parameters?

Can I do it by the following steps?
Code:
export CFLAGS="-march=prescott -O3 -pipe -msse3 -fomit-frame-pointer"
export CHOST="i686-pc-linux-gnu"
export CXXFLAGS="${CFLAGS}"
export MAKEOPTS="-j3"
cc=gcc make && make modules_install


Thanks in advance.


Last edited by walterguo on Mon Aug 18, 2008 8:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
nixnut
Administrator
Administrator


Joined: 09 Apr 2004
Posts: 10459
Location: the dutch mountains

PostPosted: Mon Aug 18, 2008 12:47 pm    Post subject: Reply with quote

Nope. Edit the Makefile in linux source tree and change HOSTCFLAGS. And happy crashes :)
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
jcat
Veteran
Veteran


Joined: 26 May 2006
Posts: 1304

PostPosted: Mon Aug 18, 2008 2:33 pm    Post subject: Reply with quote

Why are you downloading from kernel.org direct? There are ebuilds for vanilla-sources and git-sources in the portage tree.



Cheers,
jcat
Back to top
View user's profile Send private message
walterguo
Apprentice
Apprentice


Joined: 15 Jul 2005
Posts: 155

PostPosted: Mon Aug 18, 2008 8:56 pm    Post subject: Reply with quote

Thank you nixnut
Done by put them into Makefile. BTW, I don't know why I download kernel source directory from kernel.org, I used to do that. :)
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 - 5 Hours
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