diff --git a/arch/xtensa/src/esp32s2/Make.defs b/arch/xtensa/src/esp32s2/Make.defs index e7d44f12a8..3fde1cbf27 100644 --- a/arch/xtensa/src/esp32s2/Make.defs +++ b/arch/xtensa/src/esp32s2/Make.defs @@ -40,14 +40,9 @@ CMN_CSRCS += xtensa_puts.c xtensa_releasepending.c xtensa_releasestack.c CMN_CSRCS += xtensa_reprioritizertr.c xtensa_schedsigaction.c CMN_CSRCS += xtensa_sigdeliver.c xtensa_stackframe.c xtensa_udelay.c CMN_CSRCS += xtensa_unblocktask.c xtensa_usestack.c -CMN_CSRCS += esp32s2_systemreset.c # Configuration-dependent common XTENSA files -ifneq ($(CONFIG_ARCH_IDLE_CUSTOM),y) - CMN_CSRCS += esp32s2_idle.c -endif - ifeq ($(CONFIG_DEBUG_ALERT),y) CMN_CSRCS += xtensa_dumpstate.c endif @@ -70,15 +65,20 @@ endif CHIP_CSRCS = esp32s2_allocateheap.c esp32s2_clockconfig.c esp32s2_cpuint.c CHIP_CSRCS += esp32s2_gpio.c esp32s2_intdecode.c esp32s2_irq.c esp32s2_region.c CHIP_CSRCS += esp32s2_timerisr.c esp32s2_user.c esp32s2_lowputc.c +CHIP_CSRCS += esp32s2_systemreset.c # Configuration-dependent ESP32S2 files +ifneq ($(CONFIG_ARCH_IDLE_CUSTOM),y) +CHIP_CSRCS += esp32s2_idle.c +endif + ifeq ($(CONFIG_ESP32S2_UART),y) -CMN_CSRCS += esp32s2_serial.c +CHIP_CSRCS += esp32s2_serial.c endif ifeq ($(CONFIG_ESP32S2_RNG),y) -CMN_CSRCS += esp32s2_rng.c +CHIP_CSRCS += esp32s2_rng.c endif ifeq ($(CONFIG_ESP32S2_TIMER),y)