驱动程序makefile注意事项
来源:互联网 发布:yum install snmp 编辑:程序博客网 时间:2024/05/09 11:18
最近研究QQ2440,想做水下机器人的位姿检测,用Linux需要对设备驱动编程,学了学,挺麻烦的,麻烦在编译和加载上,在网上找到一个例子不错,抄下来备用。
PC机上的:
- obj-m := hello.o
- KERNELDIR := /lib/modules/$(shell uname -r)/build
- default:
- make -C $(KERNELDIR) M=$(shell pwd) modules
- install:
- insmod hello.ko
- uninstall:
- rmmod hello.ko
- clean:
- make -C $(KERNELDIR) M=$(shell pwd) clean
ARM上的:
- obj-m := hello.o
- KERNELDIR :=/opt/friendlyARMQQ2440/ghCodes/kernel-2.6.13 #对应到自己开发板得内核目录
- default:
- make -C $(KERNELDIR) M=$(shell pwd) modules
- install:
- insmod hello.ko #www.linuxidc.com
- uninstall:
- rmmod hello.ko
- clean:
- make -C $(KERNELDIR) M=$(shell pwd) clean
0 0
- 驱动程序makefile注意事项
- 驱动程序makefile注意事项
- makefile注意事项
- makefile注意事项
- 驱动程序--Makefile
- 驱动程序的Makefile
- 驱动程序的Makefile
- 驱动程序的Makefile
- 驱动程序makefile解读
- 驱动程序Makefile 的解释
- 驱动程序的Makefile
- Makefile编写入门注意事项
- 编写makefile时注意事项
- makefile 格式注意事项
- Makefile的注意事项
- MakeFile编写注意事项
- 开发板驱动程序makefile模板
- 关于驱动程序编译的makefile
- Angularjs 性能优化
- log4j.properties
- gnuplot画图
- C# 類別(Class)和結構(Struct)
- 设置VIP段位
- 驱动程序makefile注意事项
- C++函数动态链接库及静态链接
- php Iterator 接口详解
- 面向对象封装,继承,多态(二)
- BASE64Decoder报错问题解决方案
- mysql的 myisam引擎锁问题
- sql中查询关键字
- 极客必读的自传
- ReentrantLock和synchronized同步的概述