This is an automated email from the ASF dual-hosted git repository.

linguini1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit a7352902aeaf9775dec2aa541ab8273d3abd2b44
Author: Kerogit <[email protected]>
AuthorDate: Thu Feb 19 12:15:16 2026 +0100

    arch/avr/src/avrdx: fix Make.defs when CONFIG_ENABLE_ALL_SIGNALS unset
    
    This patch amends commit dfd3426aa59 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 <[email protected]>
---
 arch/avr/src/avrdx/Make.defs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/arch/avr/src/avrdx/Make.defs b/arch/avr/src/avrdx/Make.defs
index 1b92a37994b..4978f92b3a4 100644
--- a/arch/avr/src/avrdx/Make.defs
+++ b/arch/avr/src/avrdx/Make.defs
@@ -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

Reply via email to