How to check the esp-idf version in Kconfig.projbuild
Posted: Sun Nov 30, 2025 7:15 am
I want to do something like this.
But I don't know how.
Only the major version of IDF needs to be checked.
Not minor versions.
But I don't know how.
Only the major version of IDF needs to be checked.
Not minor versions.
Code: Select all
menu "Application Configuration"
if IDF_VER_MAJOR == 5
config LEGACY_DRIVER
bool "Force legacy i2c driver"
default false
help
Force legacy i2c driver.
endif
endmenu