boards/xtensa: update Make.defs for linker scripts on ESP32|S2

This commit is contained in:
Filipe Cavalcanti 2025-01-06 11:35:13 -03:00 committed by Xiang Xiao
parent 91511ae280
commit 407a62a33a
15 changed files with 39 additions and 77 deletions

View file

@ -34,12 +34,10 @@ ifeq ($(CONFIG_BUILD_PROTECTED),y)
else
ARCHSCRIPT += $(call FINDSCRIPT,flat_memory.ld)
ifeq ($(CONFIG_ESP32_APP_FORMAT_MCUBOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,mcuboot_sections.ld)
else ifeq ($(CONFIG_ESPRESSIF_SIMPLE_BOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,simple_boot_sections.ld)
else
ifeq ($(CONFIG_ESP32_APP_FORMAT_LEGACY),y)
ARCHSCRIPT += $(call FINDSCRIPT,legacy_sections.ld)
else
ARCHSCRIPT += $(call FINDSCRIPT,esp32_sections.ld)
endif
endif

View file

@ -34,12 +34,10 @@ ifeq ($(CONFIG_BUILD_PROTECTED),y)
else
ARCHSCRIPT += $(call FINDSCRIPT,flat_memory.ld)
ifeq ($(CONFIG_ESP32_APP_FORMAT_MCUBOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,mcuboot_sections.ld)
else ifeq ($(CONFIG_ESPRESSIF_SIMPLE_BOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,simple_boot_sections.ld)
else
ifeq ($(CONFIG_ESP32_APP_FORMAT_LEGACY),y)
ARCHSCRIPT += $(call FINDSCRIPT,legacy_sections.ld)
else
ARCHSCRIPT += $(call FINDSCRIPT,esp32_sections.ld)
endif
endif

View file

@ -34,12 +34,10 @@ ifeq ($(CONFIG_BUILD_PROTECTED),y)
else
ARCHSCRIPT += $(call FINDSCRIPT,flat_memory.ld)
ifeq ($(CONFIG_ESP32_APP_FORMAT_MCUBOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,mcuboot_sections.ld)
else ifeq ($(CONFIG_ESPRESSIF_SIMPLE_BOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,simple_boot_sections.ld)
else
ifeq ($(CONFIG_ESP32_APP_FORMAT_LEGACY),y)
ARCHSCRIPT += $(call FINDSCRIPT,legacy_sections.ld)
else
ARCHSCRIPT += $(call FINDSCRIPT,esp32_sections.ld)
endif
endif

View file

@ -34,12 +34,10 @@ ifeq ($(CONFIG_BUILD_PROTECTED),y)
else
ARCHSCRIPT += $(call FINDSCRIPT,flat_memory.ld)
ifeq ($(CONFIG_ESP32_APP_FORMAT_MCUBOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,mcuboot_sections.ld)
else ifeq ($(CONFIG_ESPRESSIF_SIMPLE_BOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,simple_boot_sections.ld)
else
ifeq ($(CONFIG_ESP32_APP_FORMAT_LEGACY),y)
ARCHSCRIPT += $(call FINDSCRIPT,legacy_sections.ld)
else
ARCHSCRIPT += $(call FINDSCRIPT,esp32_sections.ld)
endif
endif

View file

@ -34,12 +34,10 @@ ifeq ($(CONFIG_BUILD_PROTECTED),y)
else
ARCHSCRIPT += $(call FINDSCRIPT,flat_memory.ld)
ifeq ($(CONFIG_ESP32_APP_FORMAT_MCUBOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,mcuboot_sections.ld)
else ifeq ($(CONFIG_ESPRESSIF_SIMPLE_BOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,simple_boot_sections.ld)
else
ifeq ($(CONFIG_ESP32_APP_FORMAT_LEGACY),y)
ARCHSCRIPT += $(call FINDSCRIPT,legacy_sections.ld)
else
ARCHSCRIPT += $(call FINDSCRIPT,esp32_sections.ld)
endif
endif

View file

@ -34,12 +34,10 @@ ifeq ($(CONFIG_BUILD_PROTECTED),y)
else
ARCHSCRIPT += $(call FINDSCRIPT,flat_memory.ld)
ifeq ($(CONFIG_ESP32_APP_FORMAT_MCUBOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,mcuboot_sections.ld)
else ifeq ($(CONFIG_ESPRESSIF_SIMPLE_BOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,simple_boot_sections.ld)
else
ifeq ($(CONFIG_ESP32_APP_FORMAT_LEGACY),y)
ARCHSCRIPT += $(call FINDSCRIPT,legacy_sections.ld)
else
ARCHSCRIPT += $(call FINDSCRIPT,esp32_sections.ld)
endif
endif

View file

@ -34,12 +34,10 @@ ifeq ($(CONFIG_BUILD_PROTECTED),y)
else
ARCHSCRIPT += $(call FINDSCRIPT,flat_memory.ld)
ifeq ($(CONFIG_ESP32_APP_FORMAT_MCUBOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,mcuboot_sections.ld)
else ifeq ($(CONFIG_ESPRESSIF_SIMPLE_BOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,simple_boot_sections.ld)
else
ifeq ($(CONFIG_ESP32_APP_FORMAT_LEGACY),y)
ARCHSCRIPT += $(call FINDSCRIPT,legacy_sections.ld)
else
ARCHSCRIPT += $(call FINDSCRIPT,esp32_sections.ld)
endif
endif

View file

@ -34,12 +34,10 @@ ifeq ($(CONFIG_BUILD_PROTECTED),y)
else
ARCHSCRIPT += $(call FINDSCRIPT,flat_memory.ld)
ifeq ($(CONFIG_ESP32_APP_FORMAT_MCUBOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,mcuboot_sections.ld)
else ifeq ($(CONFIG_ESPRESSIF_SIMPLE_BOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,simple_boot_sections.ld)
else
ifeq ($(CONFIG_ESP32_APP_FORMAT_LEGACY),y)
ARCHSCRIPT += $(call FINDSCRIPT,legacy_sections.ld)
else
ARCHSCRIPT += $(call FINDSCRIPT,esp32_sections.ld)
endif
endif

View file

@ -34,12 +34,10 @@ ifeq ($(CONFIG_BUILD_PROTECTED),y)
else
ARCHSCRIPT += $(call FINDSCRIPT,flat_memory.ld)
ifeq ($(CONFIG_ESP32_APP_FORMAT_MCUBOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,mcuboot_sections.ld)
else ifeq ($(CONFIG_ESPRESSIF_SIMPLE_BOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,simple_boot_sections.ld)
else
ifeq ($(CONFIG_ESP32_APP_FORMAT_LEGACY),y)
ARCHSCRIPT += $(call FINDSCRIPT,legacy_sections.ld)
else
ARCHSCRIPT += $(call FINDSCRIPT,esp32_sections.ld)
endif
endif

View file

@ -34,12 +34,10 @@ ifeq ($(CONFIG_BUILD_PROTECTED),y)
else
ARCHSCRIPT += $(call FINDSCRIPT,flat_memory.ld)
ifeq ($(CONFIG_ESP32_APP_FORMAT_MCUBOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,mcuboot_sections.ld)
else ifeq ($(CONFIG_ESPRESSIF_SIMPLE_BOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,simple_boot_sections.ld)
else
ifeq ($(CONFIG_ESP32_APP_FORMAT_LEGACY),y)
ARCHSCRIPT += $(call FINDSCRIPT,legacy_sections.ld)
else
ARCHSCRIPT += $(call FINDSCRIPT,esp32_sections.ld)
endif
endif

View file

@ -34,12 +34,10 @@ ifeq ($(CONFIG_BUILD_PROTECTED),y)
else
ARCHSCRIPT += $(call FINDSCRIPT,flat_memory.ld)
ifeq ($(CONFIG_ESP32_APP_FORMAT_MCUBOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,mcuboot_sections.ld)
else ifeq ($(CONFIG_ESPRESSIF_SIMPLE_BOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,simple_boot_sections.ld)
else
ifeq ($(CONFIG_ESP32_APP_FORMAT_LEGACY),y)
ARCHSCRIPT += $(call FINDSCRIPT,legacy_sections.ld)
else
ARCHSCRIPT += $(call FINDSCRIPT,esp32_sections.ld)
endif
endif

View file

@ -34,12 +34,10 @@ ifeq ($(CONFIG_BUILD_PROTECTED),y)
else
ARCHSCRIPT += $(call FINDSCRIPT,flat_memory.ld)
ifeq ($(CONFIG_ESP32_APP_FORMAT_MCUBOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,mcuboot_sections.ld)
else ifeq ($(CONFIG_ESPRESSIF_SIMPLE_BOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,simple_boot_sections.ld)
else
ifeq ($(CONFIG_ESP32_APP_FORMAT_LEGACY),y)
ARCHSCRIPT += $(call FINDSCRIPT,legacy_sections.ld)
else
ARCHSCRIPT += $(call FINDSCRIPT,esp32_sections.ld)
endif
endif

View file

@ -32,12 +32,7 @@ ARCHSCRIPT += $(BOARD_COMMON_DIR)$(DELIM)scripts$(DELIM)esp32s2_peripherals.ld
# pick the common linker scripts.
ARCHSCRIPT += $(call FINDSCRIPT,flat_memory.ld)
ifeq ($(CONFIG_ESP32S2_APP_FORMAT_MCUBOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,mcuboot_sections.ld)
else ifeq ($(CONFIG_ESPRESSIF_SIMPLE_BOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,simple_boot_sections.ld)
endif
ARCHSCRIPT += $(call FINDSCRIPT,esp32s2_sections.ld)
ARCHPICFLAGS = -fpic

View file

@ -32,12 +32,7 @@ ARCHSCRIPT += $(BOARD_COMMON_DIR)$(DELIM)scripts$(DELIM)esp32s2_peripherals.ld
# pick the common linker scripts.
ARCHSCRIPT += $(call FINDSCRIPT,flat_memory.ld)
ifeq ($(CONFIG_ESP32S2_APP_FORMAT_MCUBOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,mcuboot_sections.ld)
else ifeq ($(CONFIG_ESPRESSIF_SIMPLE_BOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,simple_boot_sections.ld)
endif
ARCHSCRIPT += $(call FINDSCRIPT,esp32s2_sections.ld)
ARCHPICFLAGS = -fpic

View file

@ -32,12 +32,8 @@ ARCHSCRIPT += $(BOARD_COMMON_DIR)$(DELIM)scripts$(DELIM)esp32s2_peripherals.ld
# pick the common linker scripts.
ARCHSCRIPT += $(call FINDSCRIPT,flat_memory.ld)
ARCHSCRIPT += $(call FINDSCRIPT,esp32s2_sections.ld)
ifeq ($(CONFIG_ESP32S2_APP_FORMAT_MCUBOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,mcuboot_sections.ld)
else ifeq ($(CONFIG_ESPRESSIF_SIMPLE_BOOT),y)
ARCHSCRIPT += $(call FINDSCRIPT,simple_boot_sections.ld)
endif
ARCHPICFLAGS = -fpic