efi: app: Detect running under QEMU

When the app is running under QEMU we may wish to do some things
differently. Add a flag for this and use the SMBIOS tables to detect it.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-10-05 14:14:30 -06:00
parent 6d5dc5ea55
commit 02fa448bcc
2 changed files with 30 additions and 1 deletions

View File

@@ -764,6 +764,12 @@ enum gd_flags {
* For now, this just avoids console output on startup
*/
GD_FLG_ULIB = 0x10000000,
/**
* @GD_FLG_EMUL: Running in an emulator (e.g. QEMU)
*
* Detected from SMBIOS or other platform information
*/
GD_FLG_EMUL = 0x20000000,
};
#if CONFIG_IS_ENABLED(ULIB)