From bd48d0bb824828c92068968de57db439f467dcf6 Mon Sep 17 00:00:00 2001 From: AnnsAnn Date: Wed, 16 Oct 2024 16:02:32 +0200 Subject: [PATCH] cpu/esp32: improve build error messages --- cpu/esp32/Makefile.features | 2 +- cpu/esp32/Makefile.include | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cpu/esp32/Makefile.features b/cpu/esp32/Makefile.features index 95f518ffba..7ff0e3ade6 100644 --- a/cpu/esp32/Makefile.features +++ b/cpu/esp32/Makefile.features @@ -8,7 +8,7 @@ else ifneq (,$(filter esp32s2 esp32s3,$(CPU_FAM))) CPU_ARCH = xtensa CPU_CORE = xtensa-lx7 else - $(error Unkwnown ESP32x SoC variant (family)) + $(error Unknown ESP32x SoC variant (family): $(CPU_FAM)) endif # MCU defined features that are provided independent on board definitions diff --git a/cpu/esp32/Makefile.include b/cpu/esp32/Makefile.include index 3b1bed8517..dea8f3289d 100644 --- a/cpu/esp32/Makefile.include +++ b/cpu/esp32/Makefile.include @@ -25,7 +25,7 @@ else ifneq (,$(filter esp32s2,$(CPU_FAM))) export FLASH_SIZE ?= 4 BOOTLOADER_POS = 0x1000 else - $(error Unkwnown ESP32x SoC variant (family)) + $(error No known flash config for ESP32x SoC variant (family): $(CPU_FAM)) endif # RAM configuration @@ -56,7 +56,7 @@ else ifeq (esp32c3,$(CPU_FAM)) RAM_LEN = 320K RAM_START_ADDR = 0x3FC80000 else - $(error Unkwnown ESP32x SoC variant (family)) + $(error Missing ram configuration for ESP32x SoC variant (family): $(CPU_FAM)) endif ifneq (,$(filter periph_flashpage,$(USEMODULE))) @@ -103,7 +103,7 @@ ifeq (xtensa,$(CPU_ARCH)) else ifeq (rv32,$(CPU_ARCH)) TARGET_ARCH ?= riscv32-esp-elf else - $(error Unkwnown ESP32x SoC architecture) + $(error Unknown ESP32x SoC architecture: $(CPU_ARCH)) endif 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.version.ld else - $(error Unkwnown ESP32x SoC variant (family)) + $(error Unknown link flags for ESP32x SoC variant (family): $(CPU_FAM)) endif LINKFLAGS += -nostdlib -lgcc -Wl,-gc-sections