I have two builds in my project depending of the following "Build OTA" checkbox:
Which is configured in Kconfig.projbuild:
Code: Select all
bool "Build OTA"
Build OTA partition
bool "enable BME280 sensor"
depends on BUILD_OTA
If checked - its an OTA build, all checked sensors are included in the source, some source is removed, etc.
If unchecked, its a small build for only factory partition.
I,ve build a dedicated website and tools to manage/upload the built images. My goal is to close the process and build factory/ota image by clicking on a single button. My question is:
How to change CONFIG_BUILD_OTA only during the build (ex: $ make CONFIG_BUILD_OTA=n), also all dependencies have to be processed.