From 6332ffb0affadde53e45325d81b084bc9936ef02 Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Thu, 26 Feb 2015 11:02:39 +0000 Subject: 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 Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16940 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Application/AndroidFastboot/Arm/BootAndroidBootImg.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'EmbeddedPkg') diff --git a/EmbeddedPkg/Application/AndroidFastboot/Arm/BootAndroidBootImg.c b/EmbeddedPkg/Application/AndroidFastboot/Arm/BootAndroidBootImg.c index d4e1904d7d..7e9ad880ba 100644 --- a/EmbeddedPkg/Application/AndroidFastboot/Arm/BootAndroidBootImg.c +++ b/EmbeddedPkg/Application/AndroidFastboot/Arm/BootAndroidBootImg.c @@ -56,7 +56,6 @@ BootAndroidBootImg ( IN VOID *Buffer ) { - EFI_DEVICE_PATH_PROTOCOL *FdtDevicePath; EFI_STATUS Status; CHAR8 KernelArgs[BOOTIMG_KERNEL_ARGS_SIZE]; VOID *Kernel; @@ -93,20 +92,10 @@ BootAndroidBootImg ( RamdiskDevicePath->Node1.EndingAddress = ((EFI_PHYSICAL_ADDRESS)(UINTN) Ramdisk) + RamdiskSize; } - // Get the default FDT device path - Status = GetEnvironmentVariable ((CHAR16 *)L"Fdt", &gArmGlobalVariableGuid, - NULL, 0, (VOID **)&FdtDevicePath); - if (Status == EFI_NOT_FOUND) { - DEBUG ((EFI_D_ERROR, "Error: Please update FDT path in boot manager\n")); - return EFI_DEVICE_ERROR; - } - ASSERT_EFI_ERROR (Status); - Status = BdsBootLinuxFdt ( (EFI_DEVICE_PATH_PROTOCOL *) &KernelDevicePath, (EFI_DEVICE_PATH_PROTOCOL *) RamdiskDevicePath, - KernelArgs, - FdtDevicePath + KernelArgs ); if (EFI_ERROR (Status)) { DEBUG ((EFI_D_ERROR, "Couldn't Boot Linux: %d\n", Status)); @@ -117,8 +106,6 @@ BootAndroidBootImg ( FreePool (RamdiskDevicePath); } - FreePool (FdtDevicePath); - // If we got here we do a confused face because BootLinuxFdt returned, // reporting success. DEBUG ((EFI_D_ERROR, "WARNING: BdsBootLinuxFdt returned EFI_SUCCESS.\n")); -- cgit v1.2.3