0

我成功为 Dragino Yun 编译了默认的 linux 发行版。我花了几个小时。

我在下添加了一个新的.c文件Dragino-Yun/openwrt/build_dir/linux-ar71xx_generic/linux-3.3.8/drivers/spi/,驱动程序是spi-gpio-custom.c

我将此添加到驱动程序/spi/Kconfig:

config SPI_GPIO_CUSTOM
    tristate "Custom GPIO-based SPI driver"
    depends on GENERIC_GPIO
    select SPI_GPIO
    help
      This is an SPI driver to register 1 to 4 custom SPI buses using
      GPIO lines. Each bus can have up to 8 slaves.
      The devices will be exposed to userspace as /dev/spidevX.X
      
      This module is maily intended to interface microcontrollers
      and other SPI devices without a specific kernel driver.

      This support is also available as a module.  If so, the module
      will be called spi-gpio-custom.

这对Makefile:

obj-$(CONFIG_SPI_GPIO_CUSTOM)   += spi-gpio-custom.o

但是,当我这样做时:make menuconfig我看不到这个新条目。

我试过:make CONFIG_SPI_GPIO_CUSTOM=y,但我仍然看不到条目make menuconfig

如何在不重新编译所有操作系统的情况下查看 menuconfig 中的新条目?

4

0 回答 0