ITKeyword,专注技术干货聚合推荐

注册 | 登录

Add kernel module to Linux/Android kernel srouce code tree.

wenxy1 分享于

2021腾讯云限时秒杀,爆款1核2G云服务器298元/3年!(领取2860元代金券),
地址https://cloud.tencent.com/act/cps/redirect?redirect=1062

2021阿里云最低价产品入口+领取代金券(老用户3折起),
入口地址https://www.aliyun.com/minisite/goods

推荐:Android—Step by step - Compile kernel module for Samsung Galaxy S3 (Linux)

http://www.edv-huber.com/index.php/problemloesungen/20-step-by-step-compile-kernel-module-for-samsung-galaxy-s3-linux 1. Download the Source for your

For example, kernel version: 2.6.29.

Driver: g-sensor.

1. Copy drivers or kernel modules srouce code to ./devices/misc/g-sensor

 

2. Modification ./devices/misc/Kconfig, add some code:

#wenxy add it, for g-sensor driver, 20100717,pm.
source "drivers/misc/g-sensor/Kconfig"

 

3. Modification ./devices/misc/Makefile, add some code:

#wenxy add it, for g-sensor driver, 20100717,pm.
obj-y                                   += g-sensor/

or obj-$(CONFIG_XXX)        += g-sensor/

 

this line code depend on Kconfig or Makefile of your drivers or kernel modules

 

4. Run "make menuconfig", you can see menu items for support the drivers or kernel modules.

 

PS. tips, use "/" for search a menu item.

For example, kernel version: 2.6.29. Driver: g-sensor. 1. Copy drivers or kernel modules srouce code to ./devices/misc/g-sensor   2. Modification ./devices/misc/Kconfig, add some c

相关阅读排行


相关内容推荐

最新文章

×

×

请激活账号

为了能正常使用评论、编辑功能及以后陆续为用户提供的其他产品,请激活账号。

您的注册邮箱: 修改

重新发送激活邮件 进入我的邮箱

如果您没有收到激活邮件,请注意检查垃圾箱。