Move chip specific file compilation to CHIP_CSRCS

This commit is contained in:
Alan C. Assis 2021-10-22 16:02:41 -03:00 committed by Xiang Xiao
parent 03738622a1
commit 7e8003cba1

View File

@ -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)