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>
28 lines
608 B
C
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
|