make menuconfig 配置

1 在编译success 的driver中 添加文件夹


mkdir bunfly


创建3个文件, bunfly.c 
 vim Kconfig


<span style="font-size:18px;"> menuconfig bunfly_MODULE
  2         bool "bunfly modul"
  3         help
  4         "bunfly test module"</span>

vim Makefile

<span style="font-size:18px;">obj-$(MENUCONFIG_BUNFLY_MODULE)  += bunfly.oh</span>


到上一个目录配置Kconfig  和 Mak'file

Kconfig

<span style="font-size:18px;">source "drivers/memory/Kconfig"
148 
149 source "drivers/iio/Kconfig"
150 
151 source "drivers/vme/Kconfig"
152 source "drivers/bunfly/Kconfig"</span>


Makfile

<span style="font-size:18px;">obj-$(CONFIG_MEMORY)            += memory/
139 obj-$(CONFIG_IIO)               += iio/
140 obj-$(CONFIG_VME_BUS)           += vme/
141 obj-$(MENUCONFIG_BUNFLY_MODULE)     += bunfly/
</span>




make menuconfig

<span style="font-size:18px;">   Remoteproc drivers (EXPERIMENTAL)  --->                               │ │  
  │ │        Rpmsg drivers (EXPERIMENTAL)  --->                                    │ │  
  │ │    [ ] Virtualization drivers  --->                                          │ │  
  │ │    [*] Generic Dynamic Voltage and Frequency Scaling (DVFS) support  --->    │ │  
  │ │    < > External Connector Class (extcon) support  --->                       │ │  
  │ │    [ ] Memory Controller drivers  --->                                       │ │  
  │ │    < > Industrial I/O support  --->                                          │ │  
  │ │    [ ] bunfly modul  --->     </span>


你可能感兴趣的:(make menuconfig 配置)