diff --git a/arch/xtensa/src/esp32/Make.defs b/arch/xtensa/src/esp32/Make.defs index f90195d53bf..5bfdac40b38 100644 --- a/arch/xtensa/src/esp32/Make.defs +++ b/arch/xtensa/src/esp32/Make.defs @@ -47,7 +47,6 @@ ifeq ($(CONFIG_DEBUG_TCBINFO),y) CMN_CSRCS += xtensa_tcbinfo.c endif - ifeq ($(CONFIG_DEBUG_ALERT),y) CMN_CSRCS += xtensa_dumpstate.c endif diff --git a/arch/xtensa/src/esp32s2/Make.defs b/arch/xtensa/src/esp32s2/Make.defs index 7f389613fb2..ed40a7082fa 100644 --- a/arch/xtensa/src/esp32s2/Make.defs +++ b/arch/xtensa/src/esp32s2/Make.defs @@ -44,6 +44,10 @@ CMN_CSRCS += xtensa_switchcontext.c # Configuration-dependent common XTENSA files +ifeq ($(CONFIG_DEBUG_TCBINFO),y) + CMN_CSRCS += xtensa_tcbinfo.c +endif + ifeq ($(CONFIG_DEBUG_ALERT),y) CMN_CSRCS += xtensa_dumpstate.c endif diff --git a/arch/xtensa/src/esp32s3/Make.defs b/arch/xtensa/src/esp32s3/Make.defs index a703e77ce1e..2ffe1d149a7 100644 --- a/arch/xtensa/src/esp32s3/Make.defs +++ b/arch/xtensa/src/esp32s3/Make.defs @@ -44,6 +44,10 @@ CMN_CSRCS += xtensa_switchcontext.c # Configuration-dependent common XTENSA files +ifeq ($(CONFIG_DEBUG_TCBINFO),y) + CMN_CSRCS += xtensa_tcbinfo.c +endif + ifeq ($(CONFIG_DEBUG_ALERT),y) CMN_CSRCS += xtensa_dumpstate.c endif