| # Commands will be run in CHIP project root. |
| cd "{root}" |
| |
| # Generating esp32-devkitc-light-rpc |
| mkdir -p {out}/esp32-devkitc-light-rpc |
| |
| cp examples/lighting-app/esp32/sdkconfig_rpc.defaults {out}/esp32-devkitc-light-rpc/sdkconfig.defaults |
| |
| rm -f examples/lighting-app/esp32/sdkconfig |
| |
| bash -c 'echo -e "\nCONFIG_ESP_INSIGHTS_ENABLED=n\nCONFIG_ENABLE_ESP_INSIGHTS_TRACE=n\n" >>{out}/esp32-devkitc-light-rpc/sdkconfig.defaults' |
| |
| bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; |
| export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-light-rpc/sdkconfig.defaults |
| idf.py -C examples/lighting-app/esp32 -B {out}/esp32-devkitc-light-rpc reconfigure' |
| |
| rm -f examples/lighting-app/esp32/sdkconfig |
| |
| # Building esp32-devkitc-light-rpc |
| bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; |
| export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-light-rpc/sdkconfig.defaults |
| idf.py -C examples/lighting-app/esp32 -B {out}/esp32-devkitc-light-rpc build' |