'Is it possible to have if/else logic in a kconfig file?

I am new to kconfig. Excuse me if this is a dumb question.

I want to prepare kconfig file for an application. This application runs on multiple platforms. These platforms are similar but have different config values for the same set of config entries.

Is there a way to add some if/else or switch/case logic in a single kconfig file so that I can assign different values based on platform choice. Otherwise I'll have to create multiple kconfig files for each platform.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source