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/main.c b/boot/espressif/main.c
index f7778b9..9e1aa07 100644
--- a/boot/espressif/main.c
+++ b/boot/espressif/main.c
@@ -13,6 +13,8 @@
#include "bootloader_utility.h"
#include "bootloader_random.h"
+#include "esp_assert.h"
+
#ifdef CONFIG_MCUBOOT_SERIAL
#include "boot_serial/boot_serial.h"
#include "serial_adapter/serial_adapter.h"
@@ -99,9 +101,6 @@
FIH_PANIC;
}
- BOOT_LOG_INF("Enabling RNG early entropy source...");
- bootloader_random_enable();
-
/* Rough steps for a first boot when Secure Boot and/or Flash Encryption are still disabled on device:
* Secure Boot:
* 1) Calculate the SHA-256 hash digest of the public key and write to EFUSE.
@@ -142,8 +141,6 @@
}
#endif
- BOOT_LOG_INF("*** Booting MCUboot build %s ***", MCUBOOT_VER);
-
os_heap_init();
struct boot_rsp rsp;