[嵌入式linux]

奇怪的内核编译 求大神

[复制链接]
1155|8
手机看帖
扫描二维码
随时随地手机跟帖
jack821119| | 2018-3-23 21:18 | 显示全部楼层
把错误信息贴出来看看

使用特权

评论回复
yanghelovehuang|  楼主 | 2018-3-26 11:31 | 显示全部楼层
jack821119 发表于 2018-3-23 21:18
把错误信息贴出来看看

drivers/staging/wilc1000/wilc_sdio.c: In function 'linux_sdio_probe':
drivers/staging/wilc1000/wilc_sdio.c:128: error: implicit declaration of function 'IS_ENABLED'
drivers/staging/wilc1000/wilc_sdio.c:128: error: 'CONFIG_WILC1000_HW_OOB_INTR' undeclared (first use in this function)
drivers/staging/wilc1000/wilc_sdio.c:128: error: (Each undeclared identifier is reported only once
drivers/staging/wilc1000/wilc_sdio.c:128: error: for each function it appears in.)
drivers/staging/wilc1000/wilc_sdio.c: At top level:
drivers/staging/wilc1000/wilc_sdio.c:237: warning: data definition has no type or storage class
drivers/staging/wilc1000/wilc_sdio.c:239: warning: type defaults to 'int' in declaration of 'module_driver'
drivers/staging/wilc1000/wilc_sdio.c:239: warning: parameter names (without types) in function declaration
make[3]: *** [drivers/staging/wilc1000/wilc_sdio.o] 错误 1
make[2]: *** [drivers/staging/wilc1000] 错误 2
make[1]: *** [drivers/staging] 错误 2
make: *** [drivers] 错误 2
就是这个错误大虾,好像是无线驱动移植问题

使用特权

评论回复
john_lee| | 2018-3-26 12:04 | 显示全部楼层
你在源码目录做了什么?比如在不同版本的源码之间copy文件。

使用特权

评论回复
yanghelovehuang|  楼主 | 2018-3-27 15:29 | 显示全部楼层
john_lee 发表于 2018-3-26 12:04
你在源码目录做了什么?比如在不同版本的源码之间copy文件。

没有啊 就移植个驱动

使用特权

评论回复
john_lee| | 2018-3-27 16:32 | 显示全部楼层
yanghelovehuang 发表于 2018-3-27 15:29
没有啊 就移植个驱动

linux 的版本号是多少?

使用特权

评论回复
yanghelovehuang|  楼主 | 2018-3-28 15:02 | 显示全部楼层
john_lee 发表于 2018-3-27 16:32
linux 的版本号是多少?

linux 2.6.39

使用特权

评论回复
john_lee| | 2018-3-28 22:22 | 显示全部楼层
IS_ENABLED 宏,是 linux 3.1 之后才加入的,在 kconfig.h 文件中定义。
看你出错的 wilc_sdio.c 用到了这个宏,至少应该在 linux 3.1 之后才能用。
我就估计你可能是在不同版本的 linux 之间 copy 文件了。

使用特权

评论回复
yanghelovehuang|  楼主 | 2018-3-29 09:40 | 显示全部楼层
john_lee 发表于 2018-3-28 22:22
IS_ENABLED 宏,是 linux 3.1 之后才加入的,在 kconfig.h 文件中定义。
看你出错的 wilc_sdio.c 用到了这 ...

是吗?  大神啊 咱俩做朋友吧 抱你大腿

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

156

主题

324

帖子

1

粉丝