在drivers中加入kwan 文件夹
在kwan中
Kconfig
menuconfig KWAN
tristate "kwan for testdefault n
help
nothing
if KWAN
config VMS_INPUT
tristate "vms support"
default n
help
nothing
endif
Makefile
obj-$(CONFIG_VMS_INPUT) += vms.o
在driver中
Kconfig
source "drivers/kwan/Kconfig"
Makfile 中
obj-y += kwan/
在arch/arm/Kconfig中
source "drivers/kwan/Kconfig"