Skip to content
Snippets Groups Projects
Unverified Commit 493cad03 authored by cladmi's avatar cladmi
Browse files

atmega_common: make rom and ram length definition mandatory

Now all atmega cpu define them so use them by default.
parent e4635004
No related branches found
No related tags found
No related merge requests found
...@@ -28,9 +28,10 @@ ifeq ($(LTO),1) ...@@ -28,9 +28,10 @@ ifeq ($(LTO),1)
endif endif
# Use ROM_LEN and RAM_LEN during link # Use ROM_LEN and RAM_LEN during link
# It is made optional until all boards are updated $(if $(ROM_LEN),,$(error ROM_LEN is not defined))
LINKFLAGS += $(if $(ROM_LEN),$(LINKFLAGPREFIX)--defsym=__TEXT_REGION_LENGTH__=$(ROM_LEN)) $(if $(RAM_LEN),,$(error RAM_LEN is not defined))
LINKFLAGS += $(if $(RAM_LEN),$(LINKFLAGPREFIX)--defsym=__DATA_REGION_LENGTH__=$(RAM_LEN)) LINKFLAGS += $(LINKFLAGPREFIX)--defsym=__TEXT_REGION_LENGTH__=$(ROM_LEN)
LINKFLAGS += $(LINKFLAGPREFIX)--defsym=__DATA_REGION_LENGTH__=$(RAM_LEN)
# Use newer linker script to have ROM/RAM configuration symbols in binutils<2.26 # Use newer linker script to have ROM/RAM configuration symbols in binutils<2.26
LDSCRIPT_COMPAT = $(if $(shell $(TARGET_ARCH)-ld --verbose | grep __TEXT_REGION_LENGTH__),,\ LDSCRIPT_COMPAT = $(if $(shell $(TARGET_ARCH)-ld --verbose | grep __TEXT_REGION_LENGTH__),,\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment