主题 : denpends on后面的标识符在哪定义的? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 4450
精华: 0
发帖: 9
金钱: 90 两
威望: 90 点
综合积分: 18 分
注册时间: 2009-03-15
最后登录: 2009-08-17
楼主  发表于: 2009-03-24 13:59

 denpends on后面的标识符在哪定义的?

在/kernal-2.6.13/drivers/char目录的Kconfig文件里面有一行:
config QQ2440_HELLO_MODULE
           tristate  “QQ2440/mini2440 HELLO MODULE SAMPLE"
           depends on ARCH_S3C2410

请问这里的ARCH_S3C2410在哪定义的?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-03-24 18:17
搜索内核源代码的arch/arm目录
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 4450
精华: 0
发帖: 9
金钱: 90 两
威望: 90 点
综合积分: 18 分
注册时间: 2009-03-15
最后登录: 2009-08-17
2楼  发表于: 2009-03-26 11:15
谢谢
级别: 新手上路
UID: 3508
精华: 0
发帖: 6
金钱: 70 两
威望: 70 点
综合积分: 12 分
注册时间: 2009-01-14
最后登录: 2009-05-19
3楼  发表于: 2009-03-31 21:18
编写Kconfig 文件时,config 关键字后面的是一个随便给出的标示符吗 ?有什么规定没有啊?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2009-03-31 22:23
没有特殊的规定, 只要能表示出代表的意思就行
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."