• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /** @file
2 
3   Copyright (c) 2013-2014, ARM Ltd. All rights reserved.<BR>
4   Copyright (c) 2017, Linaro. All rights reserved.
5 
6   This program and the accompanying materials
7   are licensed and made available under the terms and conditions of the BSD License
8   which accompanies this distribution.  The full text of the license may be found at
9   http://opensource.org/licenses/bsd-license.php
10 
11   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 
14 **/
15 
16 #include <Library/AbootimgLib.h>
17 #include <Library/BaseMemoryLib.h>
18 #include <Library/BdsLib.h>
19 #include <Library/DebugLib.h>
20 #include <Library/DevicePathLib.h>
21 #include <Library/MemoryAllocationLib.h>
22 #include <Library/UefiBootServicesTableLib.h>
23 
24 #include <Protocol/BlockIo.h>
25 #include <Protocol/DevicePathFromText.h>
26 
27 #define IS_DEVICE_PATH_NODE(node,type,subtype) (((node)->Type == (type)) && ((node)->SubType == (subtype)))
28 
29 #define ALIGN(x, a)        (((x) + ((a) - 1)) & ~((a) - 1))
30 
31 EFI_STATUS
32 EFIAPI
AndroidBootAppEntryPoint(IN EFI_HANDLE ImageHandle,IN EFI_SYSTEM_TABLE * SystemTable)33 AndroidBootAppEntryPoint (
34   IN EFI_HANDLE                            ImageHandle,
35   IN EFI_SYSTEM_TABLE                      *SystemTable
36   )
37 {
38   EFI_STATUS                          Status;
39   CHAR16                              *BootPathStr;
40 
41   BootPathStr = (CHAR16 *)PcdGetPtr (PcdAndroidBootDevicePath);
42   Status = AbootimgBootPartition (BootPathStr, NULL);
43 
44   return Status;
45 }
46