Reputation:
Is there an opposite for depends on
in Kconfig
? Which at least prints a warning when a specific CONFIG_*
switch is set, which isn't compatible after the full configuration is written (.config
) after a make *_defconfig
?
My current problem:
I'm working on a new driver for the ARMv7-M Systick timer
. There exists an old version, but this version lacks in some functionality and isn't ported to the new U-Boot device model
(DM). When a new vendor use both driver, then this leads in an linker error.
So I want prevent with Kconfig
to use my driver, when the old driver is selected.
Or any other suggestion how to solve this?
(This is a generic question for projects which use Kbuild/Kconfig
as build system.)
Upvotes: 0
Views: 839
Reputation: 69346
The documentation states you can use depends on <expr>
, so you can do:
depends on !OTHER_DRIVER
Upvotes: 1