1.在drive/mydrv
2.在mydrv里建立a.c b.c
写Kconfig
如下 menu "test"
config LINGYUN
bool "fsdffsdf"
help
kl;ks;kf;skdf
config LINGYUN_AA //为上面的子菜单
tristate "d dsfsdfs"
depends on LINGYUN
help
fsfsadf
endmenu
建立/mydrv/Makefile
为 obj-y := a.o
obj-$(CONFIG_LINGYUN) += b.o
obj-$(CONFIG_LINGYUN_AA) += c.o
转到 drive/ 目录
修改Kconfig
加上 source "drive/mydrv"
修改 /drive/Makefile
obj-$(CONFIG_LINGYUN) += drive/mydrv
mount //192.168.0.123/test /newdisk/share/
阅读(491) | 评论(0) | 转发(0) |