espressif: remove IDF git submodule and add its reference by param
Remove the ESP-IDF from git submodules to avoid potential
duplicated repo clones on the user system. IDF HAL code is still
a dependency for Espressif port, therefore now the HAL code
reference needs to be passed by parameter when building.
The Espressif port was also updated to work with last v5.1 IDF
code.
Signed-off-by: Almir Okato <almir.okato@espressif.com>
diff --git a/boot/espressif/hal/src/bootloader_banner.c b/boot/espressif/hal/src/bootloader_banner.c
new file mode 100644
index 0000000..8e7d7fc
--- /dev/null
+++ b/boot/espressif/hal/src/bootloader_banner.c
@@ -0,0 +1,15 @@
+/*
+ * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+#include <mcuboot_config/mcuboot_logging.h>
+
+/**
+ * Override the bootloader's print banner function from IDF.
+ */
+void __wrap_bootloader_print_banner(void)
+{
+ MCUBOOT_LOG_INF("*** Booting MCUboot build %s ***", MCUBOOT_VER);
+}