diff --git a/cpu/esp32/Makefile.dep b/cpu/esp32/Makefile.dep index be85ce7311..4f9704264c 100644 --- a/cpu/esp32/Makefile.dep +++ b/cpu/esp32/Makefile.dep @@ -42,9 +42,6 @@ ifneq (,$(filter esp_wifi_any,$(USEMODULE))) # crypto and hashes produce symbol conflicts with esp_idf_wpa_supplicant_crypto DISABLE_MODULE += crypto DISABLE_MODULE += hashes - - # thin archives trigger a reboot loop - see #12258 - ARFLAGS = rcs endif ifneq (,$(filter esp_idf_nvs_flash,$(USEMODULE))) diff --git a/cpu/esp32/Makefile.include b/cpu/esp32/Makefile.include index 3e53fbcc7c..90cd21dc18 100644 --- a/cpu/esp32/Makefile.include +++ b/cpu/esp32/Makefile.include @@ -112,6 +112,9 @@ OPTIONAL_CFLAGS_BLACKLIST += -gz ASFLAGS += --longcalls --text-section-literals +# thin archives trigger a reboot loop - see #12258, #12035, #12346 +ARFLAGS = rcs + ifneq ($(CONFIGS),) CFLAGS += $(CONFIGS) endif