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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user