Gentoo Linux安装--Intel CPU类型设置及优化
主机平台:Gentoo 11.2
内核版本:Linux Kernel 3.2.1
CPU型号:Pentium Dual-Core T2370 32-bit
1、通过查看CPU的信息可以看到Intel Core 2 Duo/Quad / Xeon 51xx/53xx, Pentium Dual-Core T23xx+/Exxxx的硬件信息如下:
首先设置/etc/make.conf中CFLAGS
我的make.conf文件如下:
- CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
- CXXFLAGS="${CFLAGS}"
- # WARNING: Changing your CHOST is not something that should be done lightly.
- # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
- CHOST="i686-pc-linux-gnu"
- MAKEOPTS="-j3"
- USE="gnome X dbus hal v4l -qt3 -qt4 gtk laptop samba -kde -arts consolekit policykit udev alsa cdr -cups -bluetooth"
- GENTOO_MIRRORS="http://mirrors.163.com/gentoo"
- SYNC="rsync://mirrors.163.com/gentoo-portage/"
- LINGUAS="en_US en_GB uk zh_CN "
如果机器是64位的,则设置CFLAGS如下:
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
2、内核编译选项
相关推荐
cuixingwudi 2020-06-14
xushxbigbear微信 2019-12-02
bugsycrack 2013-08-11
yoshubom 2013-09-20
DEPHI 2011-08-16
哥哥的CSDN集 2013-02-25
xidaoliang 2012-10-11
linjava 2012-10-09
哥哥的CSDN集 2011-09-12
jinkun00 2011-09-05
jiangxinyu 2011-08-06
lfjjia 2011-08-05
xiyoukeke 2011-08-02
vagrant00 2011-05-17
cuixingwudi 2011-04-27
LucyGill 2011-02-27
xiefei0 2011-02-25
chenchuang 2010-05-22