mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-07 17:46:15 +00:00
hv: add Kconfig parameter to define the Service VM EFI bootloader
Add a Kconfig parameter called UEFI_OS_LOADER_NAME to hold the Service VM EFI bootloader to be run by the ACRN hypervisor. A new string manipulation function to convert from (char *) to (CHAR16 *) has been added to facilitate the implementation. The default value is set to systemd-boot (bootloaderx64.efi) Tracked-On: #2793 Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
This commit is contained in:
committed by
wenlingz
parent
058b03c3a7
commit
51a43dab79
@@ -394,7 +394,6 @@ fail:
|
||||
|
||||
}
|
||||
|
||||
#define DEFAULT_UEFI_OS_LOADER_NAME L"\\EFI\\org.clearlinux\\bootloaderx64.efi"
|
||||
/**
|
||||
* efi_main - The entry point for the OS loader image.
|
||||
* @image: firmware-allocated handle that identifies the image
|
||||
@@ -460,7 +459,7 @@ efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *_table)
|
||||
* bootloader name to be used. Fall back to the default bootloader
|
||||
* as specified in config.h
|
||||
*/
|
||||
bootloader_name = DEFAULT_UEFI_OS_LOADER_NAME;
|
||||
bootloader_name = ch8_2_ch16(CONFIG_UEFI_OS_LOADER_NAME, strlen(CONFIG_UEFI_OS_LOADER_NAME));
|
||||
}
|
||||
|
||||
section = ".hv";
|
||||
|
||||
Reference in New Issue
Block a user