1、mkdirdrivers/zhangshaoyan
2、在此目录下新建一个测试用驱动 i_mx53_led.c
3、在此目录下新建Kconfig
Menu “i.MX53 Ledsupport”
ConfigI_MX53_LED
Tristate “i.MX53LED support by zsy”
Default y
Help
Flash the sixled on the i.mx53 board.
endmenu
4、在此目录下新建Makefile
Obj-$(CONFIG_I_MX53_LED)+=i_mx53_led.o
5、修改上一层目录的Kconfig
Source “drivers/zhangshaoyan/Kconfig
6、修改上一层目录的Makefile
Obj-$(CONFIG_I_MX53_LED) +=zhangshaoyan/
现在执行makemenuconfig就能选择此驱动程序啦。