On 3/17/26 13:29, Simon Glass wrote:
Hi Michal,
On Tue, 10 Mar 2026 at 08:59, Michal Simek <[email protected]> wrote:
Add a new EVT_POST_PREBOOT event type which is fired in main_loop()
after the preboot command has been executed.
Signed-off-by: Michal Simek <[email protected]>
---
common/main.c | 3 +++
include/event.h | 9 +++++++++
2 files changed, 12 insertions(+)
diff --git a/common/main.c b/common/main.c
index b0b6e74f5d3d..e8b23f3ff293 100644
--- a/common/main.c
+++ b/common/main.c
@@ -19,6 +19,7 @@
#include <net.h>
#include <version_string.h>
#include <efi_loader.h>
+#include <event.h>
static void run_preboot_environment_command(void)
{
@@ -53,6 +54,8 @@ void main_loop(void)
if (IS_ENABLED(CONFIG_USE_PREBOOT))
run_preboot_environment_command();
+ event_notify_null(EVT_POST_PREBOOT);
This needs error checking if you wish to honour your comment below
(which I agree with).
ok. I will also fix this one which should check it too.
event_notify_null(EVT_MAIN_LOOP);
M