From df54cf16f91ca1fb1e0a886758435adc6b9a4ab4 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Tue, 3 Oct 2023 11:04:00 -0400 Subject: [PATCH] Restrict tracing to light app, fix include paths in main, add ignore for authkey since that should not be checked in --- examples/lighting-app/esp32/.gitignore | 1 + examples/lighting-app/esp32/main/main.cpp | 2 +- scripts/build/build/targets.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/lighting-app/esp32/.gitignore b/examples/lighting-app/esp32/.gitignore index a90ab6f1e57d5a..601ff1b8e9e01e 100644 --- a/examples/lighting-app/esp32/.gitignore +++ b/examples/lighting-app/esp32/.gitignore @@ -1,3 +1,4 @@ /build/ /sdkconfig /sdkconfig.old +main/insights_auth_key.txt diff --git a/examples/lighting-app/esp32/main/main.cpp b/examples/lighting-app/esp32/main/main.cpp index a62b5b67b1ba00..280131263efa96 100644 --- a/examples/lighting-app/esp32/main/main.cpp +++ b/examples/lighting-app/esp32/main/main.cpp @@ -60,7 +60,7 @@ #if CONFIG_ENABLE_ESP_INSIGHTS_TRACE #include -#include +#include #include #endif diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 5c69dfbe2d79df..7fb187a279f075 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -206,7 +206,7 @@ def BuildEsp32Target(): target.AppendModifier('rpc', enable_rpcs=True) target.AppendModifier('ipv6only', enable_ipv4=False) - target.AppendModifier('tracing', enable_insights_trace=True) + target.AppendModifier('tracing', enable_insights_trace=True).OnlyIfRe("light") return target