| View previous topic :: View next topic |
| Author |
Message |
walterguo Apprentice

Joined: 15 Jul 2005 Posts: 155
|
Posted: Mon Aug 18, 2008 12:24 pm Post subject: [solved]How can kernel with parameter in make.conf? |
|
|
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 |
|
 |
nixnut Administrator


Joined: 09 Apr 2004 Posts: 10459 Location: the dutch mountains
|
Posted: Mon Aug 18, 2008 12:47 pm Post subject: |
|
|
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 |
|
 |
jcat Veteran


Joined: 26 May 2006 Posts: 1304
|
Posted: Mon Aug 18, 2008 2:33 pm Post subject: |
|
|
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 |
|
 |
walterguo Apprentice

Joined: 15 Jul 2005 Posts: 155
|
Posted: Mon Aug 18, 2008 8:56 pm Post subject: |
|
|
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 |
|
 |
|