ArmPlatformPkg/Bds: Remove any use of the "Fdt" UEFI variable
Remove the option to update the "Fdt" UEFI variable in the ARM BDS as the "setfdt" EFI Shell command provides this service from now. Remove the use of this variable in the legacy kernel boot loader and use the FDT installed in the configuration table instead. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron <Ronald.Cron@arm.com> Reviewed-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16940 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
committed by
oliviermartin
parent
7aec2926b9
commit
6332ffb0af
@@ -39,7 +39,6 @@ UefiMain (
|
||||
EFI_LOADED_IMAGE_PROTOCOL *LoadedImage;
|
||||
LINUX_LOADER_OPTIONAL_DATA* LinuxOptionalData;
|
||||
EFI_DEVICE_PATH* DevicePathKernel;
|
||||
EFI_DEVICE_PATH* DevicePathFdt;
|
||||
EFI_DEVICE_PATH* InitrdDevicePath;
|
||||
CHAR16* OptionalDataInitrd;
|
||||
CHAR8* OptionalDataArguments;
|
||||
@@ -57,9 +56,8 @@ UefiMain (
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
// Generate the File Path Node for the Linux Kernel & Device Tree blob
|
||||
// Generate the File Path Node for the Linux Kernel
|
||||
DevicePathKernel = FileDevicePath (LoadedImage->DeviceHandle, LINUX_KERNEL_NAME);
|
||||
DevicePathFdt = FileDevicePath (LoadedImage->DeviceHandle, FDT_NAME);
|
||||
|
||||
if (LinuxOptionalData->CmdLineLength > 0) {
|
||||
OptionalDataArguments = (CHAR8*)LinuxOptionalData + sizeof(LINUX_LOADER_OPTIONAL_DATA);
|
||||
@@ -89,7 +87,7 @@ UefiMain (
|
||||
}
|
||||
|
||||
// Load and Start the Linux Kernel (we should never return)
|
||||
Status = BdsBootLinuxFdt (DevicePathKernel, InitrdDevicePath, OptionalDataArguments, DevicePathFdt);
|
||||
Status = BdsBootLinuxFdt (DevicePathKernel, InitrdDevicePath, OptionalDataArguments);
|
||||
|
||||
if ((UINTN)OptionalDataInitrd & 0x1) {
|
||||
FreePool (Initrd);
|
||||
|
Reference in New Issue
Block a user