]>
Commit | Line | Data |
---|---|---|
a3f98646 | 1 | /** @file\r |
2 | Add custom commands for BeagleBoard development.\r | |
3 | \r | |
3d70643b | 4 | Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r |
a3f98646 | 5 | \r |
3d70643b | 6 | This program and the accompanying materials\r |
a3f98646 | 7 | are licensed and made available under the terms and conditions of the BSD License\r |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | #include <PiDxe.h>\r | |
17 | #include <Library/ArmLib.h>\r | |
18 | #include <Library/CacheMaintenanceLib.h>\r | |
19 | #include <Library/EblCmdLib.h>\r | |
20 | #include <Library/BaseLib.h>\r | |
21 | #include <Library/DebugLib.h>\r | |
22 | #include <Library/UefiBootServicesTableLib.h>\r | |
23 | #include <Library/UefiRuntimeServicesTableLib.h>\r | |
24 | #include <Library/MemoryAllocationLib.h>\r | |
25 | #include <Library/UefiLib.h>\r | |
26 | #include <Library/PcdLib.h>\r | |
27 | #include <Library/EfiFileLib.h>\r | |
28 | \r | |
29 | \r | |
30 | //PcdEmbeddedFdBaseAddress\r | |
31 | \r | |
32 | /**\r | |
33 | Fill Me In\r | |
34 | \r | |
35 | Argv[0] - "%CommandName%"\r | |
36 | \r | |
37 | @param Argc Number of command arguments in Argv\r | |
38 | @param Argv Array of strings that represent the parsed command line. \r | |
39 | Argv[0] is the comamnd name\r | |
40 | \r | |
41 | @return EFI_SUCCESS\r | |
42 | \r | |
43 | **/\r | |
44 | EFI_STATUS\r | |
45 | EblEdk2Cmd (\r | |
46 | IN UINTN Argc,\r | |
47 | IN CHAR8 **Argv\r | |
48 | )\r | |
49 | {\r | |
50 | return EFI_SUCCESS;\r | |
51 | }\r | |
52 | \r | |
53 | \r | |
54 | GLOBAL_REMOVE_IF_UNREFERENCED const EBL_COMMAND_TABLE mLibCmdTemplate[] =\r | |
55 | {\r | |
56 | {\r | |
57 | "edk2",\r | |
58 | " filename ; Load FD into memory and boot from it",\r | |
59 | NULL,\r | |
60 | EblEdk2Cmd\r | |
61 | }\r | |
62 | };\r | |
63 | \r | |
64 | \r | |
65 | VOID\r | |
66 | EblInitializeExternalCmd (\r | |
67 | VOID\r | |
68 | )\r | |
69 | {\r | |
70 | EblAddCommands (mLibCmdTemplate, sizeof (mLibCmdTemplate)/sizeof (EBL_COMMAND_TABLE));\r | |
71 | return;\r | |
72 | }\r |