Kconfig 'select' forcing config selecting even if dependent undefined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This is my kconfig file.

config MTD_SPI_NOR
      tristate "SPI-NOR support"
      select HAVE_MTD_SPI_NOR
      help

config HAVE_MTD_SPI_NOR
     tristate
     depends on SPI_MASTER

My intention was not to add extra config HAVE_MTD_SPI_NOR on
individual defconfigs. So  MTD_SPI_NOR is selecting HAVE_MTD_SPI_NOR
and there HAVE_MTD_SPI_NOR is depends on SPI_MASTER config.

1) HAVE_MTD_SPI_NOR will select If SPI_MASTER defined
2) HAVE_MTD_SPI_NOR will un-select if SPI_MASTER undefined

case 2) here is forcing HAVE_MTD_SPI_NOR selecting even if SPI_MASTER
is undefined, any idea how to fix this? I saw the Linux
Documentation/kbuild/kconfig-language.txt have similar issue with
"Adding common features and make the usage configurable" but couldn't
find any solution.

thanks!
-- 
Jagan.
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux