linux内核中增加驱动模块

Makefile文件中增加

obj-$(CONFIG_MINI2440_LED) += micro2440_leds.o

 

在相应目录下的konfig文件中加入:

 

点击(此处)折叠或打开

config MINI2440_LED

tristate "LED driver for FriendlyARM Mini2440 development boards"

depends on MACH_MINI2440

default y if MACH_MINI2440

help

this is LED driver for FriendlyARM Mini2440 development boards

你可能感兴趣的:(linux内核中增加驱动模块)