idf.py build compiles every esp-idf library component
Posted: Thu Aug 25, 2022 3:53 pm
After a project config change or clean, 'idf.py build' compiles every esp-idf library component regardless of whether the components are used in the project or not.
Is there any way to avoid compiling 1000+ source files when building even just a simple blank test project?
An example:
. ~/ESP32/esp-idf-v4.4.2/export.sh
idf.py create-project cli_test
cd cli_test/
idf.py set-target esp32
idf.py menuconfig
idf.py build
idf.py clean
idf.py build
[74/1035] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/home/l.../programming/ESP32/Eclipse_ESP-IDF/esp-idf-v4.4.2/components/mbedtls/port/esp_hardware.c.obj^C
ninja: build stopped: interrupted by user.
Is there any way to avoid compiling 1000+ source files when building even just a simple blank test project?
An example:
. ~/ESP32/esp-idf-v4.4.2/export.sh
idf.py create-project cli_test
cd cli_test/
idf.py set-target esp32
idf.py menuconfig
idf.py build
idf.py clean
idf.py build
[74/1035] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/home/l.../programming/ESP32/Eclipse_ESP-IDF/esp-idf-v4.4.2/components/mbedtls/port/esp_hardware.c.obj^C
ninja: build stopped: interrupted by user.