update menuconfig entries without recompiling all the kernel

559 Views Asked by At

I succesfully compiled the default linux distro for the Dragino Yun. It took me several hours.

I added a new .c file under Dragino-Yun/openwrt/build_dir/linux-ar71xx_generic/linux-3.3.8/drivers/spi/ , the driver is spi-gpio-custom.c

I added this to drivers/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.

And this to the Makefile:

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

However, when I do: make menuconfig I cannot see this new entry.

I tried with: make CONFIG_SPI_GPIO_CUSTOM=y, but still I cannot see the entry with make menuconfig

How can I get to see the new entry in menuconfig without recompiling all the OS?

1

There are 1 best solutions below

1
Kaaviya Anu On

Please try with make kernel_menuconfig instead of make menuconfig