uboot中预编译中的宏定义

[复制链接]
 楼主| maxlogic 发表于 2008-5-5 14:18 | 显示全部楼层 |阅读模式
在对uboot中start.s进行分析的时候,我时常看到<br />#if&nbsp;defined(CONFIG_S3C2400)<br />&nbsp;&nbsp;...<br />&nbsp;&nbsp;...<br />#ifndef&nbsp;CONFIG_SKIP_LOWLEVEL_INIT<br />&nbsp;&nbsp;...<br />&nbsp;&nbsp;...<br />#ifndef&nbsp;CONFIG_SKIP_RELOCATE_UBOOT<br />&nbsp;&nbsp;...<br />&nbsp;&nbsp;...<br />&nbsp;&nbsp;...<br />诸如以上的宏,这些宏到底定义在哪个文件里面?<br />start.s中包含的头文件为:<br />#include&nbsp;&ltconfig.h&gt<br />#include&nbsp;&ltversion.h&gt<br /><br />(1)config.h&nbsp;文件中的内容如下:<br />#ifndef&nbsp;_LINUX_CONFIG_H<br />#define&nbsp;_LINUX_CONFIG_H<br /><br />/*&nbsp;#include&nbsp;&ltlinux/autoconf.h&gt&nbsp;*/<br /><br />#endif<br /><br />(2)version.h&nbsp;文件中内容如下:<br />#ifndef&nbsp;&nbsp;&nbsp;&nbsp;__VERSION_H__<br />#define&nbsp;&nbsp;&nbsp;&nbsp;__VERSION_H__<br /><br />#include&nbsp;&quot;version_autogenerated.h&quot;<br /><br />#endif&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;__VERSION_H__&nbsp;*/<br /><br /><br />但这些头文件没有任何声明和定义的信息..<br /><br />有哪位大侠帮帮我解释解释,偶已经在这里被困了几天几夜了....<br />
icecut 发表于 2008-5-5 23:28 | 显示全部楼层

一般在board/****/****.h,c

定义。<br />建议你找本移植教程看看
您需要登录后才可以回帖 登录 | 注册

本版积分规则

4

主题

29

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部

4

主题

29

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部