求助:Android驱动开发

kingoflower 2014-07-25 05:15:46
本人新手,在看老罗的Android blog,http://blog.csdn.net/luoshengyang/article/details/6568411
我在/linux/kernel/drivers目录下新建了hello目录,里面就是hello.c, hello.h, Kconfig, Makefile, 照搬老罗开发案例。
在drivers目录下的Kconfig文件中加入了source "drivers/hello/Kconfig", 在drivers目录下的Makefile中加入obj-$(CONFIG_HELLO) += hello/. 在kernel目录下make menuconfig后勾选My First Driver = y.(此时.config里 已经CONFIG_HELLO =y)
这样编译还是有问题,First Android Driver (HELLO) [N/m/y/?] (NEW) aborted!
console input/output is redirected. Run ‘make oldconfig' to update configuration.
make[5]:*** [silentoldconfig] Error 1
make[4]:*** [silentoldconfig] Error 2

请教一下怎么才能build自己的driver ?




测试环境:UBUNTU 12.04
...全文
305 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
大磊大 2016-03-31
  • 打赏
  • 举报
回复
引用 3 楼 liudongming_1985 的回复:
[quote=引用 2 楼 lyl494223339 的回复:] 你这个错误可能在你的makefile编写有误,我的已经解决了。求给满分
请问怎么解决的?谢谢[/quote]很可能就是你的makefile编写有误
东明星 2016-01-14
  • 打赏
  • 举报
回复
引用 2 楼 lyl494223339 的回复:
你这个错误可能在你的makefile编写有误,我的已经解决了。求给满分
请问怎么解决的?谢谢
大磊大 2014-08-12
  • 打赏
  • 举报
回复
你这个错误可能在你的makefile编写有误,我的已经解决了。求给满分
大磊大 2014-08-12
  • 打赏
  • 举报
回复
遇到同样问题,解决中。。。

80,359

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧