u-boot-2012.10 官方文档翻译--软件配置

来源:互联网 发布:淘宝助理历史宝贝记录 编辑:程序博客网 时间:2024/05/17 03:13
Software Configuration:
=======================
软件配置

Configuration is usually done using C preprocessor defines; the rationale behind that is to avoid dead code whenever possible.
通常使用C预处理来配置,原因是为了尽可能避免破坏代码。

There are two classes of configuration variables:

有两类配置变量:


* Configuration _OPTIONS_:

*配置选项:

  These are selectable by the user and have names beginning with  "CONFIG_".
这些都是由用户选择,并且命名以"CONFIG_"开头。

* Configuration _SETTINGS_:

*配置设置:

  These depend on the hardware etc. and should not be meddled with if  you don't know what you're doing; they have names beginning with  "CONFIG_SYS_".

 这些依赖硬件,如果你不知道你在作什么,就不应该干涉,它们命名以"CONFIG_SYS_"开头。


Later we will add a configuration tool - probably similar to or even identical to what's used for the Linux kernel. Right now, we have todo the configuration by hand, which means creating some symbolic links and editing some configuration files. We use the TQM8xxL boards as an example here.

稍后我们将增加一个配置工具--和用于linux内核的工具可能类似,甚至是相同。现在,我们不得不手动配置,这意味着要建立一些链接符号,并且编辑一些配置文件。在这里,我们使用 TQM8xxL 板作为例子。

原创粉丝点击