Skip to content

Draft: replace full sdkconfig files with sdkconfig.defaults #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

igrr
Copy link
Member

@igrr igrr commented Jan 28, 2022

1st step: sdkconfig.TARGET -> sdkconfig.defaults.TARGET

In this step, sdkconfig file for each target is replaced with an sdkconfig.defaults file. All the options which are set to default values are removed, only the options different from the default values are kept.

This is done using idf.py save-defconfig script (cherry-picked from IDF commit 5118dd7c). ESP-IDF version used for generating the configs: v4.4 release tag.

Generated sdkconfig file is moved into the build directory.

The build scripts adjusted accordingly.

2nd step (TODO)

From the generated sdkconfig.defaults.TARGET files it can be seen that the settings for the 3 targets are different, even for some options which don't seem to be target-specific.

Need to make a list of all the options which aren't the same for the 3 targets and to check whether this is expected.

Related

Generated using idf.py save-defconfig (cherry-picked from IDF
commit 5118dd7c).
ESP-IDF version used for generating the configs: v4.4 release tag.
@igrr igrr self-assigned this Jan 28, 2022
@me-no-dev
Copy link
Member

Seems that sdkconfig.defaults.TARGET are not applied when building. Is it possible that the build system expects them to be where sdkconfig will be generated? BTW what is the reason to relocate it to the build folder?

@Jason2866
Copy link
Contributor

It would be nice if the idf.py save-defconfig would be backported to IDF4.4.
(Had to install idf master to be able to convert the sdkconfig files)
Thx!

@me-no-dev
Copy link
Member

or you could have entered menuconfig and pressed D to export the file

@me-no-dev
Copy link
Member

closing in favor of the s3 support branch, where such configs are used

@me-no-dev me-no-dev closed this Feb 22, 2022
@me-no-dev me-no-dev deleted the feature/minimal_config branch February 22, 2022 13:59
@VojtechBartoska
Copy link
Contributor

@me-no-dev Can I consider issue 6187 as closed?

@me-no-dev
Copy link
Member

will be closed when we merge S3 support :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enabling C++ Exceptions compiler option
4 participants