I have a project where I would like to have a different platform io “environment” for different build types (like developement vs production).
The production version would have no console uart configured.
I have run menuconfig and have two different resulting sdkconfig files (sdkconfig.defaults.dev and sdkconfig.defaults.prod).
My CMakeLists.txt contains:
list(APPEND SDKCONFIG_DEFAULTS "sdkconfig.defaults.dev")
and everything works in the dev case. How can get platformio to tell cmake to use the other file?
The reason I want this is because other devs on the team derive/inherit their configs from what I am trying to provide. IOW, I have
[env:device-dev] ... build_flags = [env:device-prod] ... build_flags = -DPRODUCTION [env:alice] extends = env:device-dev upload_port = ... [env:alice-prod] extends = env:device-prod upload_port = ...
(of course, the reason each dev needs their own env is because each esp32 device gets a unique /dev filename on a Mac)
Perfectly willing to accept that I’ve painted myself into a corner and there’s another way. Hit me!
Thanks for any pointers.