]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/Bds/BootOption.c
ArmPkg/BdsLib: Remove Linux loader from BdsLib
[mirror_edk2.git] / ArmPlatformPkg / Bds / BootOption.c
index bb218f82aaf4d4f8eb5b1aaf467ca8d0484d775a..342d441f056bbcae16f931897548f6af134890e7 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 *\r
-*  Copyright (c) 2011-2014, ARM Limited. All rights reserved.\r
+*  Copyright (c) 2011-2015, ARM Limited. All rights reserved.\r
 *\r
 *  This program and the accompanying materials\r
 *  are licensed and made available under the terms and conditions of the BSD License\r
@@ -23,10 +23,6 @@ BootOptionStart (
   EFI_STATUS                            Status;\r
   UINT32                                LoaderType;\r
   ARM_BDS_LOADER_OPTIONAL_DATA*         OptionalData;\r
-  ARM_BDS_LINUX_ARGUMENTS*              LinuxArguments;\r
-  UINTN                                 CmdLineSize;\r
-  UINTN                                 InitrdSize;\r
-  EFI_DEVICE_PATH*                      Initrd;\r
   UINT16                                LoadOptionIndexSize;\r
 \r
   if (IS_ARM_BDS_BOOTENTRY (BootOption)) {\r
@@ -42,34 +38,9 @@ BootOptionStart (
 \r
       Status = BdsStartEfiApplication (gImageHandle, BootOption->FilePathList, 0, NULL);\r
     } else if (LoaderType == BDS_LOADER_KERNEL_LINUX_ATAG) {\r
-      LinuxArguments = &(OptionalData->Arguments.LinuxArguments);\r
-      CmdLineSize = ReadUnaligned16 ((CONST UINT16*)&LinuxArguments->CmdLineSize);\r
-      InitrdSize = ReadUnaligned16 ((CONST UINT16*)&LinuxArguments->InitrdSize);\r
-\r
-      if (InitrdSize > 0) {\r
-        Initrd = GetAlignedDevicePath ((EFI_DEVICE_PATH*)((UINTN)(LinuxArguments + 1) + CmdLineSize));\r
-      } else {\r
-        Initrd = NULL;\r
-      }\r
-\r
-      Status = BdsBootLinuxAtag (BootOption->FilePathList,\r
-                                 Initrd, // Initrd\r
-                                 (CHAR8*)(LinuxArguments + 1)); // CmdLine\r
+      ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
     } else if (LoaderType == BDS_LOADER_KERNEL_LINUX_FDT) {\r
-      LinuxArguments = &(OptionalData->Arguments.LinuxArguments);\r
-      CmdLineSize = ReadUnaligned16 ((CONST UINT16*)&LinuxArguments->CmdLineSize);\r
-      InitrdSize = ReadUnaligned16 ((CONST UINT16*)&LinuxArguments->InitrdSize);\r
-\r
-      if (InitrdSize > 0) {\r
-        Initrd = GetAlignedDevicePath ((EFI_DEVICE_PATH*)((UINTN)(LinuxArguments + 1) + CmdLineSize));\r
-      } else {\r
-        Initrd = NULL;\r
-      }\r
-      Status = BdsBootLinuxFdt (\r
-                 BootOption->FilePathList,\r
-                 Initrd,\r
-                 (CHAR8*)(LinuxArguments + 1)\r
-                 );\r
+      ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
     }\r
   } else {\r
     // Connect all the drivers if the EFI Application is not a EFI OS Loader\r