Tentative fix for AVR regressions.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15822 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2022-10-10 18:40:53 +00:00
parent a67449f20f
commit 401b51b089
20 changed files with 102 additions and 0 deletions

View File

@ -30,6 +30,11 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT =
endif
# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT = --defsym=__main_thread_stack_base__=0,--defsym=__main_thread_stack_end__=0
endif
# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = no

View File

@ -30,6 +30,11 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT =
endif
# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT = --defsym=__main_thread_stack_base__=0,--defsym=__main_thread_stack_end__=0
endif
# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = no

View File

@ -30,6 +30,11 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT =
endif
# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT = --defsym=__main_thread_stack_base__=0,--defsym=__main_thread_stack_end__=0
endif
# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = no

View File

@ -30,6 +30,11 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT =
endif
# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT = --defsym=__main_thread_stack_base__=0,--defsym=__main_thread_stack_end__=0
endif
# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = no

View File

@ -30,6 +30,11 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT =
endif
# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT = --defsym=__main_thread_stack_base__=0,--defsym=__main_thread_stack_end__=0
endif
# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = no

View File

@ -30,6 +30,11 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT =
endif
# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT = --defsym=__main_thread_stack_base__=0,--defsym=__main_thread_stack_end__=0
endif
# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = no

View File

@ -30,6 +30,11 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT =
endif
# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT = --defsym=__main_thread_stack_base__=0,--defsym=__main_thread_stack_end__=0
endif
# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = no

View File

@ -30,6 +30,11 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT =
endif
# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT = --defsym=__main_thread_stack_base__=0,--defsym=__main_thread_stack_end__=0
endif
# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = no

View File

@ -30,6 +30,11 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT =
endif
# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT = --defsym=__main_thread_stack_base__=0,--defsym=__main_thread_stack_end__=0
endif
# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = no

View File

@ -30,6 +30,11 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT =
endif
# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT = --defsym=__main_thread_stack_base__=0,--defsym=__main_thread_stack_end__=0
endif
# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = no

View File

@ -30,6 +30,11 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT =
endif
# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT = --defsym=__main_thread_stack_base__=0,--defsym=__main_thread_stack_end__=0
endif
# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = no

View File

@ -30,6 +30,11 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT =
endif
# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT = --defsym=__main_thread_stack_base__=0,--defsym=__main_thread_stack_end__=0
endif
# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = no

View File

@ -30,6 +30,11 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT =
endif
# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT = --defsym=__main_thread_stack_base__=0,--defsym=__main_thread_stack_end__=0
endif
# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = no

View File

@ -30,6 +30,11 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT =
endif
# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT = --defsym=__main_thread_stack_base__=0,--defsym=__main_thread_stack_end__=0
endif
# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = no

View File

@ -30,6 +30,16 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT =
endif
# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT = --defsym=__main_thread_stack_base__=0,--defsym=__main_thread_stack_end__=0
endif
# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT = --defsym=__main_thread_stack_base__=0,--defsym=__main_thread_stack_end__=0
endif
# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = no

View File

@ -30,6 +30,11 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT =
endif
# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT = --defsym=__main_thread_stack_base__=0,--defsym=__main_thread_stack_end__=0
endif
# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = no

View File

@ -30,6 +30,11 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT =
endif
# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT = --defsym=__main_thread_stack_base__=0,--defsym=__main_thread_stack_end__=0
endif
# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = no

View File

@ -30,6 +30,11 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT =
endif
# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT = --defsym=__main_thread_stack_base__=0,--defsym=__main_thread_stack_end__=0
endif
# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = no

View File

@ -131,6 +131,11 @@ MATH_LIB = -lm
LDFLAGS = -Wl,-Map=$(BUILDDIR)/$(PROJECT).map,--cref,--gc-sections
LDFLAGS += -Wl,-u,vfprintf -lprintf_min -Wl,-u,vfscanf -lscanf_min -lm
# Linker extra options
ifneq ($(USE_LDOPT),)
LDFLAGS += -Wl,$(USE_LDOPT)
endif
#
# Makefile rules
#

View File

@ -20,8 +20,10 @@ SECTIONS
{
. = ALIGN(8);
__user_psp_base__ = .;
__main_thread_stack_base__ = .;
. += __process_stack_size__;
. = ALIGN(8);
__user_psp_end__ = .;
__main_thread_stack_end__ = .;
} > DATA_SPACE
}