QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2615|回复: 1

请问2.6中模块如何编译

[复制链接]
发表于 2006-9-15 09:16:50 | 显示全部楼层 |阅读模式
我按照linux设备驱动程序中写了个hello.c,然后在makefile里写了obj-m:=hello.o.接着make -C /usr/src/linux-2.6.10 M='pwd' hello.o.提示
make: Entering directory `/usr/src/linux-2.6.10'
make: *** No rule to make target `hello.o'. Stop.
make: Leaving directory `/usr/src/linux-2.6.10'
请大家帮忙
发表于 2006-9-15 11:10:24 | 显示全部楼层
同问
有个网站有类似的,但我没实验成功
http://dirac.org/linux/writing/lkmpg/2.4/chinese/lkmpg_chs/
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-26 11:33 , Processed in 0.112685 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表