Description
Settings in menuconfig are not saved and will not take effect when built.
Steps to reproduce:
./build.sh -t esp32 -b menuconfig
Change any config and save.
./build.sh -t esp32 -b menuconfig
Observe that the previous setting is on the default value.
Optionally - build and observe that the setting did not take any effect, and is not mentioned in the built sdkconfig.
I have modified a section in sdkconfig and tried to build libs without menuconfig but it was built with the default log level set to error.
#
# Debug Log Configuration
#
# CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_NONE is not set
# CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_ERROR is not set
# CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_WARN is not set
# CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_INFO is not set
# CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_DEBUG is not set
# CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_VERBOSE=y
CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL=5
# CONFIG_ARDUHAL_LOG_COLORS is not set
CONFIG_ARDUHAL_ESP_LOG=y
# end of Debug Log Configuration
The next thing I tried (with the manual changes in sdkconfig) was that I have placed some debug outputs sed -n "218 p" sdkconfig
around line 118 of the build.sh
and before the rm -rf build sdkconfig
The simplified code looks like this:
sed -n "218 p" sdkconfig
rm -rf build sdkconfig
sed -n "218 p" sdkconfig
idf.py -DIDF_TARGET="$TARGET" -DSDKCONFIG_DEFAULTS="$configs" $BUILD_TYPE
sed -n "218 p" sdkconfig
And the output from the sed+menuconfig:
CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL=5 #manual override
sed: can't read sdkconfig: No such file or directory
Loaded configuration '/home/username/esp32-arduino-lib-builder/sdkconfig'
No changes to save (for '/home/username/esp32-arduino-lib-builder/sdkconfig')
CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL=1
What is strange is that even though the sdkconfig is deleted before calling idf.py menuconfig, I can see the manual change in the menuconfig, but after saving it without change, the settings goes back to defaults.