- 论坛徽章:
- 0
|
各位大虾们,麻烦帮忙看看,我想将驱动模块在编译内核时显示可选可配置,我做了如下动作,可是在make menuconfig时就是看不到我配的选项,why?
1,在drive目录下新建mydrive文件夹,里面有Kconfig ledproc.c Makefile文件。
[root@localhost mydrive]# ls
Kconfig ledproc.c Makefile
[root@localhost mydrive]#
2,/drive/mydrive/Kconfig内容为:
menuconfig MY_LED
bool "My led support"
help
NNNNNNNNNNNNNNNN
if MY_LED
config DRIVE_MYLED
tristate "MyLed Driver"
help
My led driver support.
endif
3,/drivers/Kconfig内容为:
menu "Device Drivers"
source "drivers/mydrive/Kconfig"
source "drivers/base/Kconfig"
执行了menuconfig时就是看不到我新添加的选项. 死了…… |
|