[ESP32] cmake option to set software version and software version string (#22229)
* [ESP32] cmake option to set software version and software version string
ESP-IDF lets user set software version string by two ways: Project's
CMakeLists.txt file or configuration option. It depends on
CONFIG_APP_PROJECT_VER_FROM_CONFIG option so making the same provision
for software version number.
Also, Reading the software version string from the app description
which is set using any one of above method.
Setting the default software version as per spec i.e. 0.
Setting PROJECT_VER and PROJECT_VER_NUMBER in all the examples
* Fix the QEMU tests
* Set software version to 0 if not set using cmake or config option
* Override GetSoftwareVersion in configuration manager
diff --git a/config/esp32/components/chip/Kconfig b/config/esp32/components/chip/Kconfig
index 55cafa1..402d9ad 100644
--- a/config/esp32/components/chip/Kconfig
+++ b/config/esp32/components/chip/Kconfig
@@ -301,15 +301,9 @@
This is a default value which is used when a hardware version has not been stored in device
persistent storage (e.g. by a factory provisioning process).
- config DEVICE_SOFTWARE_VERSION
- string "Device Software Version String"
- default "v1.0"
- help
- A string identifying the software version running on the device.
-
config DEVICE_SOFTWARE_VERSION_NUMBER
int "Device Software Version Number"
- default 1
+ default 0
help
Software version number running on the device.