[Answered] How to build a subset of the possible components in ESP-IDF?
Posted: Mon Oct 24, 2016 4:40 am
The way I understand the story is that ESP-IDF provides a set of components. When we then download an application template and compile it, the default is that ALL the components in ESP-IDF are compiled and linked together along with the code in <apptemplate>/main.
However what if I only want a subset of all possible ESP-IDF components included in the compile/link steps? If I read the "build_system.rst" file found here:
https://github.com/espressif/esp-idf/bl ... system.rst
It seems that I can edit the <apptemplate>/Makefile and add a:
COMPONENTS=<component names>
entry to explicitly name the the components I wish to include (the default would otherwise be all that could be found). However when I try this (for example setting COMPONENTS=nvs_flash), I find that the compilation of my app template now fails:
However what if I only want a subset of all possible ESP-IDF components included in the compile/link steps? If I read the "build_system.rst" file found here:
https://github.com/espressif/esp-idf/bl ... system.rst
It seems that I can edit the <apptemplate>/Makefile and add a:
COMPONENTS=<component names>
entry to explicitly name the the components I wish to include (the default would otherwise be all that could be found). However when I try this (for example setting COMPONENTS=nvs_flash), I find that the compilation of my app template now fails:
Code: Select all
GENCONFIG
#
# configuration written to /home/kolban/esp32/esptest/apps/workspace/cpp/sdkconfig
#
make: *** No rule to make target '/home/kolban/esp32/esptest/apps/workspace/cpp/build/app-template.bin', needed by 'all_binaries'. Stop.