免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 868 | 回复: 0
打印 上一主题 下一主题

Porting XFree86 4.2.0 for mipsel (龙芯) linux [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-19 11:32 |只看该作者 |倒序浏览
Porting XFree86 4.2.0 for mipsel (龙芯) linux
mailto:asmcos at hotmail dot com 2003-08-25
1.环境:redhat 8.0,
tools: cross compiler gcc 2.96
XFree86 4.2.0 (xfree86.org download release )
注意:XFree86 目前支持多种CPU,这里下载的代码没有专门针对mips做改动。
需要改动的地方都是下面我们说的地方。
2.展开代码
tar zxvf X420src-1.tgz
tar zxvf X420src-2.tgz
tar zxvf X420src-3.tgz
3.修改编译选项
host.def
cross.def
见10.附件
4.增加头文件
cp /usr/include/z*.h xc/include/
主要有 zlib.h 等
5.修改
Xserver/hw/xfree86/os-support/linux/lnx_video.c
增加对mips的支持
IOPortBase = mmap(,,,,,,IO_ADDRESS);
6.修改
Xserver/hw/xfree86/common/xf86pciBus.c
#####line 2250 左右:
/*=================〉原有内容===================*/
if (pvp->ioBase) {
PV_I_RANGE(range,pvp,i,ResExcIoBlock);
if (xf86IsSubsetOf(range,res_m_io)
&& ! ChkConflict(&range,own,SETUP)
&& ! ChkConflict(&range,avoid,SETUP)
&& ! ChkConflict(&range,NonSys,SETUP)) {
xf86FreeResList(own);
continue;
}
/***********************add start ******************************************************/
if (range.rBegin  
cross.def
/*
* This file contains redefinitions of some symbols to enable
* cross compilation: e.g. paths for include files and paths to
* compiler images. It will have to be edited to reflect these
* given your local configuration.
*/
#undef OptimizedCDebugFlags
#define OptimizedCDebugFlags -O2 -mips2
#define ServerCDebugFlags -O2 -mips2
#undef CcCmd
#undef StdIncDir
#undef PreIncDir
#undef PostIncDir
#define CcCmd mipsel-linux-gcc
#define HasCplusplus YES
#undef CplusplusCmd
#define CplusplusCmd mipsel-linux-g++
#undef LdCmd
#define LdCmd mipsel-linux-ld
#undef AsCmd
#define AsCmd mipsel-linux-gcc -c -x assembler-with-cpp
#undef ArCmd
#define ArCmd mipsel-linux-ar cr
#define DoRanlibCmd YES
#define RanlibCmd mipsel-linux-ranlib
#undef ExtraLoadFlags
#define ExtraLoadFlags
#define FbNoPixelAddrCode
#undef TermcapLibrary
#define TermcapLibrary -ltermcap
#undef LdPreLib
#undef LdPostLib
#define LdPostLib -L$(BUILDLIBDIR) -Wl,-rpath-link,$(BUILDLIBDIR)
#undef ExtensionOSDefines
#define ExtensionOSDefines
#include  


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/93290/showart_1868382.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP