I'm implementing a buildroot package, foo, which can't be included together with a specific other package, bar. I'm trying to define the packages mutually exclusive by writing depends on
-statements in the respective Config.in
-files.
In foo/Config.in
:
config BR2_PACKAGE_FOO
depends on !BR2_PACKAGE_BAR
...
in bar/Config.in
:
config BR2_PACKAGE_BAR
depends on !BR2_PACKAGE_FOO
...
Which results in make menuconfig
behaving strangely and giving the following error message:
package/foo/Config.in:1:error: recursive dependency detected!
package/foo/Config.in:1: symbol BR2_PACKAGE_FOO depends on BR2_PACKAGE_BAR
package/bar/Config.in:1: symbol BR2_PACKAGE_BAR depends on BR2_PACKAGE_FOO
What's the correct way of declaring such a mutually exclusive dependency?