Linux: 添加内核模块步骤
来源:互联网 发布:京东杭州程序员招聘 编辑:程序博客网 时间:2024/05/18 10:13
下面以例子说明, 我加了一个watchdog的模块
1. menuconfig: 在config.in文件添加下面几行
mainmenu_option next_comment
comment 'Watchdog support'
bool 'Watchdog support' CONFIG_WATCHDOG_SUPPORT
endmenu
Then : make menuconfig , will add
#
# Watchdog support
#
CONFIG_WATCHDOG_SUPPORT=y to .config
will add :
/*
* Watchdog support
*/
#define CONFIG_WATCHDOG_SUPPORT to inclue/linux/autoconf.h
2. Makefile: 顶层
DRIVERS-$(CONFIG_WATCHDOG_SUPPORT) += drivers/watchdog/watchdog.o
3. drivers/Makefile:
subdir-$(CONFIG_WATCHDOG_SUPPORT) += watchdog
mod-subdirs := dio mtd sbus video macintosh usb input telephony sgi ide /
message/i2o message/fusion scsi md ieee1394 pnp isdn atm /
fc4 net/hamradio i2c acpi bluetooth watchdog
1. menuconfig: 在config.in文件添加下面几行
mainmenu_option next_comment
comment 'Watchdog support'
bool 'Watchdog support' CONFIG_WATCHDOG_SUPPORT
endmenu
Then : make menuconfig , will add
#
# Watchdog support
#
CONFIG_WATCHDOG_SUPPORT=y to .config
will add :
/*
* Watchdog support
*/
#define CONFIG_WATCHDOG_SUPPORT to inclue/linux/autoconf.h
2. Makefile: 顶层
DRIVERS-$(CONFIG_WATCHDOG_SUPPORT) += drivers/watchdog/watchdog.o
3. drivers/Makefile:
subdir-$(CONFIG_WATCHDOG_SUPPORT) += watchdog
mod-subdirs := dio mtd sbus video macintosh usb input telephony sgi ide /
message/i2o message/fusion scsi md ieee1394 pnp isdn atm /
fc4 net/hamradio i2c acpi bluetooth watchdog
- Linux: 添加内核模块步骤
- linux 添加内核模块
- linux内核模块编译步骤
- LINUX内核模块编译步骤
- linux中添加内核模块
- Linux 内核编译步骤和模块加载
- linux内核添加新的模块
- 如何在LINUX内核中添加模块
- Linux内核中添加hello_world模块
- linux ubuntu编写内核模块并添加
- Linux 驱动开发内核模块的添加
- linux 添加内核模块和应用程序
- linux内核添加新的模块
- Linux内核模块动态添加方法
- Kconfig、Makefile、.config 与编译内核模块添加 -- linux内核
- Linux 2.6内核的编译步骤及模块动态加载
- Linux 2.6内核的编译步骤及模块动态加载
- Linux 内核的编译步骤及模块动态加载
- 成功者35岁前必须完成的十件事
- JasperReport学习必备手册
- 移植Boa Web服务器到ARM-Linux系统
- 收药!
- 高技术! 动态加载切换Ajax模式!! , 动态添加ScriptManager,UpdatePanel
- Linux: 添加内核模块步骤
- IReport与JasperReport生成HTML报表的线条图片问题
- hibernate 一对多双向自身关联
- 常用正则表达式
- 参数传递(编码)
- Factory Pattern
- 工程商(安防行业)如何避免陪标?[转]
- Asp.net: GridView72绝技之 1~18
- Zend Studio for Eclipse 环境搭建