From 780697266db01827342ad4ee6e8df0015f7bc5bf Mon Sep 17 00:00:00 2001 From: Mike Date: Tue, 25 Jun 2024 12:15:03 +0100 Subject: [PATCH] Don't use ROM time functions, they're 32-bit only (#2835) Fixes #2834. Checked HostTests with IDF 4.4 and 5.2 on esp32-wroom32. Note that using ROM routines are an optimisation for pre SDK 5 so not worth the effort using them. --- Sming/Arch/Esp32/Components/esp32/component.mk | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Sming/Arch/Esp32/Components/esp32/component.mk b/Sming/Arch/Esp32/Components/esp32/component.mk index 8a78673a58..586ffbe0f7 100644 --- a/Sming/Arch/Esp32/Components/esp32/component.mk +++ b/Sming/Arch/Esp32/Components/esp32/component.mk @@ -350,14 +350,12 @@ LDFLAGS_esp32 := \ $(call LinkerScript,rom.newlib-funcs) \ $(call LinkerScript,rom.newlib-data) \ $(call LinkerScript,rom.syscalls) \ - $(call LinkerScript,rom.newlib-time) \ $(call LinkerScript,rom.eco3) LDFLAGS_esp32s2 := \ $(call LinkerScript,rom.newlib-funcs) \ $(call LinkerScript,rom.newlib-data) \ - $(call LinkerScript,rom.spiflash) \ - $(call LinkerScript,rom.newlib-time) \ + $(call LinkerScript,rom.spiflash) LDFLAGS_esp32c3 := \ $(call LinkerScript,rom.newlib) \ @@ -366,8 +364,7 @@ LDFLAGS_esp32c3 := \ LDFLAGS_esp32s3 := \ $(call LinkerScript,rom.newlib) \ - $(call LinkerScript,rom.version) \ - $(call LinkerScript,rom.newlib-time) + $(call LinkerScript,rom.version) LDFLAGS_esp32c2 := \ $(call LinkerScript,rom.newlib) \ @@ -375,11 +372,6 @@ LDFLAGS_esp32c2 := \ $(call LinkerScript,rom.heap) \ $(call LinkerScript,rom.mbedtls) -ifneq (v5.2,$(IDF_VERSION)) -LDFLAGS_esp32c2 += \ - $(call LinkerScript,rom.newlib-time) -endif - SDK_WRAP_SYMBOLS := SDK_UNDEF_SYMBOLS :=