esp_system: initialize coredump for ESP32-S2
This was regression introduced in recent refactoring changes
from startup code.
@@ -373,11 +373,9 @@ IRAM_ATTR ESP_SYSTEM_INIT_FN(init_components0, BIT(0))
esp_pm_impl_init();
#endif
-#if CONFIG_IDF_TARGET_ESP32
-#if CONFIG_ESP32_ENABLE_COREDUMP
+#if CONFIG_ESP_ENABLE_COREDUMP
esp_core_dump_init();
#endif
-#endif
#if CONFIG_SW_COEXIST_ENABLE
esp_coex_adapter_register(&g_coex_adapter_funcs);
