1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

cpu/esp32: improve build error messages

This commit is contained in:
AnnsAnn 2024-10-16 16:02:32 +02:00
parent 0ffad1d65f
commit bd48d0bb82
2 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@ else ifneq (,$(filter esp32s2 esp32s3,$(CPU_FAM)))
CPU_ARCH = xtensa CPU_ARCH = xtensa
CPU_CORE = xtensa-lx7 CPU_CORE = xtensa-lx7
else else
$(error Unkwnown ESP32x SoC variant (family)) $(error Unknown ESP32x SoC variant (family): $(CPU_FAM))
endif endif
# MCU defined features that are provided independent on board definitions # MCU defined features that are provided independent on board definitions

View File

@ -25,7 +25,7 @@ else ifneq (,$(filter esp32s2,$(CPU_FAM)))
export FLASH_SIZE ?= 4 export FLASH_SIZE ?= 4
BOOTLOADER_POS = 0x1000 BOOTLOADER_POS = 0x1000
else else
$(error Unkwnown ESP32x SoC variant (family)) $(error No known flash config for ESP32x SoC variant (family): $(CPU_FAM))
endif endif
# RAM configuration # RAM configuration
@ -56,7 +56,7 @@ else ifeq (esp32c3,$(CPU_FAM))
RAM_LEN = 320K RAM_LEN = 320K
RAM_START_ADDR = 0x3FC80000 RAM_START_ADDR = 0x3FC80000
else else
$(error Unkwnown ESP32x SoC variant (family)) $(error Missing ram configuration for ESP32x SoC variant (family): $(CPU_FAM))
endif endif
ifneq (,$(filter periph_flashpage,$(USEMODULE))) ifneq (,$(filter periph_flashpage,$(USEMODULE)))
@ -103,7 +103,7 @@ ifeq (xtensa,$(CPU_ARCH))
else ifeq (rv32,$(CPU_ARCH)) else ifeq (rv32,$(CPU_ARCH))
TARGET_ARCH ?= riscv32-esp-elf TARGET_ARCH ?= riscv32-esp-elf
else else
$(error Unkwnown ESP32x SoC architecture) $(error Unknown ESP32x SoC architecture: $(CPU_ARCH))
endif endif
PSEUDOMODULES += esp_ble PSEUDOMODULES += esp_ble
@ -286,7 +286,7 @@ else ifeq (esp32s3,$(CPU_FAM))
LINKFLAGS += -T$(ESP32_SDK_DIR)/components/esp_rom/$(CPU_FAM)/ld/$(CPU_FAM).rom.newlib.ld LINKFLAGS += -T$(ESP32_SDK_DIR)/components/esp_rom/$(CPU_FAM)/ld/$(CPU_FAM).rom.newlib.ld
LINKFLAGS += -T$(ESP32_SDK_DIR)/components/esp_rom/$(CPU_FAM)/ld/$(CPU_FAM).rom.version.ld LINKFLAGS += -T$(ESP32_SDK_DIR)/components/esp_rom/$(CPU_FAM)/ld/$(CPU_FAM).rom.version.ld
else else
$(error Unkwnown ESP32x SoC variant (family)) $(error Unknown link flags for ESP32x SoC variant (family): $(CPU_FAM))
endif endif
LINKFLAGS += -nostdlib -lgcc -Wl,-gc-sections LINKFLAGS += -nostdlib -lgcc -Wl,-gc-sections