LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1139|回复: 4

探讨Xorg的精简编译方案

[复制链接]
发表于 2006-2-18 14:54:52 | 显示全部楼层 |阅读模式
很多东西还不是很明白。
blfs6.1里有一个host.def的C文件,是不是定义xorg的编译选项的?
/* Begin Xorg host.def file */

/* System Related Information.  If you read and configure only one
* section then it should be this one.  The Intel architecture defaults
* are set for a i686 and higher.  Axp is for the Alpha architecture
* and Ppc is for the Power PC.  AMD64 is for the Opteron processor.
* Note that there have been reports that the Ppc optimization line
* causes segmentation faults during build.  If that happens, try
* building without the DefaultGcc2PpcOpt line.  ***********/

[color="Red"]/* #define DefaultGcc2i386Opt  -O2 -fno-strength-reduce \
                               -fno-strict-aliasing -march=i686 */
/* #define DefaultGcc2AMD64Opt -O2 -fno-strength-reduce \
                               -fno-strict-aliasing */
/* #define DefaultGcc2AxpOpt   -O2 -mcpu=ev6 */
/* #define DefaultGcc2PpcOpt   -O2 -mcpu=750 */
[color="Red"]这里的都是注解吧?好像没有定义呀,应该是第一个吧?是否去掉它的/*   */就可以了?

#define HasFreetype2            YES
#define HasFontconfig           YES
#define HasExpat                YES
#define HasLibpng               YES
#define HasZlib                 YES

/*
* Which drivers to build.  When building a static server, each of
* these will be included in it.  When building the loadable server
* each of these modules will be built.
*
[color="red"]
#define XF86CardDrivers         mga glint nv tga s3virge sis rendition \
                                neomagic i740 tdfx savage \
                                cirrus vmware tseng trident chips apm \
                                GlideDriver fbdev i128 \
                                ati DevelDrivers ark \
                                cyrix siliconmotion vesa vga \
                                XF86OSCardDrivers XF86ExtraCardDrivers
[color="red"]这里是内衔的驱动吗?有很多呀,可以去掉一些吗?我用不着的
*/

/*
* Select the XInput devices you want by uncommenting this.
*
[color="red"]
#define XInputDrivers           mouse keyboard acecad calcomp citron \
                                digitaledge dmc dynapro elographics \
                                microtouch mutouch penmount spaceorb \
                                summa wacom void magictouch aiptek
[color="Red"]这里是可以选择的输入设备选项,可以在下面定义需要的设备
*/

/* Most installs will only need this */

#define XInputDrivers           mouse keyboard

/* Disable building Xprint server and clients until we get them figured
* out but build Xprint libraries to allow precompiled binaries such as
* Acrobat Reader to run.
*/

#define XprtServer              NO
#define BuildXprintClients      NO

/* Uncomment the following define if you would prefer to install X into
* /usr or change it to any other location that you prefer.
* The GL related defines disable compatibility symlinks (the links are not needed
* when X is installed in /usr).
#define ProjectRoot             /usr
#define LinkGLToUsrInclude      NO
#define LinkGLToUsrLib          NO
*/

/* Uncomment the following define if you would prefer to install the
* fonts into /usr/share/fonts, a directory that is fontconfig's default
* font search path.
#define FontDir /usr/share/fonts
*/

/* End Xorg host.def file */
发表于 2006-2-18 15:03:28 | 显示全部楼层
可以去掉点不用的显卡
回复 支持 反对

使用道具 举报

发表于 2006-2-18 15:41:40 | 显示全部楼层
这里的都是注解吧?好像没有定义呀,应该是第一个吧?是否去掉它的/* */就可以了?

是的,就是这样。不过不同体系的,就要去掉相应的行。

其他的两个,按照你的系统配置,可以去掉一些,不过我都懒得管,因为有的时候去掉会引起X的编译失败。
回复 支持 反对

使用道具 举报

发表于 2006-2-18 15:57:55 | 显示全部楼层
http://www.freedesktop.org/wiki/Software_2fXephyr
http://www.pps.jussieu.fr/~jch/software/kdrive.html

你只是想精简吗?

看看上面的网页,可以把 X 缩减到 700k .
On Linux/x86, a KDrive server with RENDER support but without support for scalable fonts compiles into less than 700 KB of text.

#define BuildServersOnly YES
#define KDriveXServer YES
#define TinyXServer YES
#define XfbdevServer YES
回复 支持 反对

使用道具 举报

发表于 2006-2-20 10:32:03 | 显示全部楼层
我用的是nvidia显卡,xorg里面的显卡驱动我一个没要,只用nvidia官方驱动就可以了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表