Files
u-boot/include/event_decl.h
Simon Glass ddb78711fd boot: Pass flags to the bootm_final event
For a fake go, we should tell the event not to actually do anything
irreversable, so pass the flag along.

Move the enum into a separate event_decl.h header file since otherwise
we must include bootm.h which causes a breakage with qemu-ppce500

We also don't want to pull event.h into the tools build, since it uses
types like u8 which are not available outside U-Boot

Signed-off-by: Simon Glass <sjg@chromium.org>
2025-08-19 17:36:44 -06:00

28 lines
608 B
C

/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Declarations needed by events
*
* Copyright 2025 Simon Glass <sjg@chromium.org>
*/
#ifndef __event_decl_h
#define __event_decl_h
#include <linux/bitops.h>
/**
* enum bootm_final_t - flags to control bootm_final()
*
* Note that this is defined in event.h since it is used by events
*
* @BOOTM_FINAL_FAKE: true to do everything except actually boot; it then
* returns to the caller
* @BOOTM_FINAL_NO_CLEANUP: true to skip calling cleanup_before_linux()
*/
enum bootm_final_t {
BOOTM_FINAL_FAKE = BIT(0),
BOOTM_FINAL_NO_CLEANUP = BIT(1),
};
#endif