freertos,esp_system: make dependencies on some components optional

Dependencies on gdbstub, espcoredump, app_trace will only be added
if these components are present in the build.
This commit is contained in:
Ivan Grokhotkov
2021-12-13 10:52:22 +01:00
parent 7a5ed12c6b
commit 8df306ab60
6 changed files with 39 additions and 17 deletions
@@ -61,7 +61,9 @@
#include "esp_system.h"
#include "esp_log.h"
#include "esp_int_wdt.h"
#ifdef CONFIG_APPTRACE_ENABLE
#include "esp_app_trace.h" /* Required for esp_apptrace_init. [refactor-todo] */
#endif
#include "FreeRTOS.h" /* This pulls in portmacro.h */
#include "task.h" /* Required for TaskHandle_t, tskNO_AFFINITY, and vTaskStartScheduler */
#include "port_systick.h"