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