]> git.proxmox.com Git - mirror_edk2.git/blame - EmbeddedPkg/Ebl/CmdTemplate.c
Patch from open source community for CryptoPkg to allow it to build for ARM using...
[mirror_edk2.git] / EmbeddedPkg / Ebl / CmdTemplate.c
CommitLineData
2ef2b01e
A
1/** @file\r
2 %CommandName% for EBL (Embedded Boot Loader)\r
3\r
60274cca
HT
4 Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
5 This program and the accompanying materials\r
2ef2b01e
A
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13 Module Name: CmdTemplate.c\r
14\r
15 Search/Replace %CommandName% with the name of your new command\r
16\r
17**/\r
18\r
19#include "Ebl.h"\r
20\r
21\r
22/**\r
23 Fill Me In\r
24\r
25 Argv[0] - "%CommandName%"\r
26\r
27 @param Argc Number of command arguments in Argv\r
28 @param Argv Array of strings that represent the parsed command line. \r
29 Argv[0] is the comamnd name\r
30\r
31 @return EFI_SUCCESS\r
32\r
33**/\r
34EFI_STATUS\r
35Ebl%CommandName%Cmd (\r
36 IN UINTN Argc,\r
37 IN CHAR8 **Argv\r
38 )\r
39{\r
40 return EFI_SUCCESS;\r
41}\r
42\r
43\r
44GLOBAL_REMOVE_IF_UNREFERENCED const EBL_COMMAND_TABLE mCmd%CommandName%Template[] =\r
45{\r
46 {\r
47 "%CommandName%",\r
48 " [show args] ; explain args and command",\r
49 NULL,\r
50 Ebl%CommandName%Cmd\r
51 }\r
52};\r
53\r
54\r
55/**\r
56 Initialize the commands in this in this file\r
57**/\r
58VOID\r
59EblInitialize%CommandName%Cmd (\r
60 VOID\r
61 )\r
62{\r
63 EblAddCommands (mCmd%CommandName%Template, sizeof (mCmd%CommandName%Template)/sizeof (EBL_COMMAND_TABLE));\r
64}\r
65\r