arch/avr/src/avrdx: fix Make.defs when CONFIG_ENABLE_ALL_SIGNALS unset

This patch amends commit dfd3426aa5 which added support for running
with some signals disabled to AVR architecture. AVR DA/DB architecture
was not covered by the commit and failed to build
with CONFIG_ENABLE_ALL_SIGNALS unset (which includes building
with CONFIG_ENABLE_PARTIAL_SIGNALS, the default value.)

Change is replicated from the commit and tested by a custom stress
application which spawns some always-busy threads and uses preemptive
multitasking to switch between them. Additionally, ability to sleep
in the application was tested by a simple LED blinking application.

Signed-off-by: Kerogit <kr.git@kerogit.eu>
This commit is contained in:
Kerogit 2026-02-19 12:15:16 +01:00 committed by Matteo Golin
parent ce0e715254
commit a7352902ae

View file

@ -31,11 +31,15 @@ CMN_CSRCS = avr_allocateheap.c avr_copystate.c avr_createstack.c
CMN_CSRCS += avr_doirq.c avr_exit.c avr_idle.c avr_initialize.c
CMN_CSRCS += avr_initialstate.c avr_irq.c avr_lowputs.c
CMN_CSRCS += avr_nputs.c avr_releasestack.c avr_registerdump.c
CMN_CSRCS += avr_schedulesigaction.c avr_sigdeliver.c avr_getintstack.c
CMN_CSRCS += avr_getintstack.c
CMN_CSRCS += avr_stackframe.c avr_switchcontext.c avr_usestack.c
# Configuration-dependent common files
ifeq ($(CONFIG_ENABLE_ALL_SIGNALS),y)
CMN_CSRCS += avr_schedulesigaction.c avr_sigdeliver.c
endif
ifeq ($(CONFIG_AVR_SPI),y)
CMN_CSRCS += avr_spi.c
endif