From 3dade55fa542ec0b542fad44241d5aae3600996f Mon Sep 17 00:00:00 2001 From: mikee47 Date: Mon, 3 Jun 2024 07:30:25 +0100 Subject: [PATCH] Add esp32 idf deprecation warnings after final link step --- Sming/Arch/Esp32/app.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Sming/Arch/Esp32/app.mk b/Sming/Arch/Esp32/app.mk index 6cc8658584..f06d8165a6 100644 --- a/Sming/Arch/Esp32/app.mk +++ b/Sming/Arch/Esp32/app.mk @@ -21,8 +21,16 @@ ifdef IDF_TARGET_ARCH_RISCV --specs=nosys.specs endif + .PHONY: application application: $(TARGET_BIN) +ifeq ($(IDF_VERSION),v4.3) + @printf "\033[47;1;31mWARNING! ESP-IDF 4.3 reached 'End of Life' in December 2023.\033[0m Upgrade to v5.2 recommended.\n" +else ifeq ($(IDF_VERSION),v4.4) + @printf "\033[47;1;31mWARNING! ESP-IDF 4.4 support ends August 2024!\033[0m Upgrade to v5.2 recommended.\n" +else ifeq ($(IDF_VERSION),v5.0) + @printf "\033[47;1;34mNOTE! ESP-IDF 5.0 not recommended for new designs.\033[0m Please consider upgrading to v5.2.\n" +endif $(TARGET_OUT): $(COMPONENTS_AR) $(info $(notdir $(PROJECT_DIR)): Linking $@)