网上找到linux 简单模块编译脚本
2012-04-02 17:07
316 查看
[code]PWD=$(shell pwd) VER=$(shell uname -r) KERNEL_BUILD=/lib/modules/$(VER)/build # Later if you want to package the module binary you can provide an INSTALL_ROOT # INSTALL_ROOT=/tmp/install-root
around the end add:
[code]install: $(MAKE) -C $(KERNEL_BUILD) M=$(PWD) \ INSTALL_MOD_PATH=$(INSTALL_ROOT) modules_install
and then you can issue
[code] sudo make install
this will put it either in /lib/modules/$(uname -r)/extra/
or /lib/modules/$(uname -r)/misc/
and run depmod appropriately
相关文章推荐
- linux下自用简单go app编译脚本
- 简单实例讲解linux的module模块编译步骤
- linux下使用git和gradle编译项目,编写简单的自动发布脚本
- 简单实例讲解linux的module模块编译步骤
- 简单实例讲解linux的module模块编译步骤
- 最简单的helloworld模块编译加载(linux3.5内核源码树建立)
- 简单实例讲解linux的module模块编译步骤
- linux简单命令与Shell脚本
- Linux 2.6内核的编译步骤及模块的动态加载
- 编译链接-----Linux下的lds链接脚本简介
- Linux简单入门(十二)shell脚本之前的基础知识
- 谢烟客---------Linux之理解内核、内核模块、编译内核
- LINUX下PHP编译添加相应的动态扩展模块so(不需要重新编译PHP,以openssl.so为例)
- linux 单独编译一个模块
- linux模块驱动简单的Makefile
- 在Linux下如何使用GCC编译程序、简单生成静态库及动态库。
- Windows+cygwin下构造arm-linux交叉编译环境最简单的方法
- linux 内核模块编程之编译多个源文件(三)
- linux 模块编译步骤
- Linux2.6下内核模块编译