]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Ebl/Script.c
IntelFsp2WrapperPkg: Update gFspWrapperTokenSpaceGuid to gIntelFsp2WrapperTokenSpaceGuid.
[mirror_edk2.git] / EmbeddedPkg / Ebl / Script.c
index 2229005d1c5265f09724b8960c2f3b90b75313f5..73360cb24840f5166ea77c2bc76add025b6e7e36 100644 (file)
@@ -1,10 +1,11 @@
 /** @file\r
   Script command allows the execution of commands from a text file\r
 \r
-  Copyright (c) 2007, Intel Corporation<BR>\r
-  Portions copyright (c) 2008-2009, Apple Inc. All rights reserved.\r
+  Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
+  Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+  (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
 \r
-  All rights reserved. This program and the accompanying materials\r
+  This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
   http://opensource.org/licenses/bsd-license.php\r
 \r
 /**\r
   Execute the passed in file like a series of commands. The ; can be used on\r
-  a single line to indicate multiple commands per line. The Ascii text file \r
-  can contain any number of lines. The following line termination forms are \r
+  a single line to indicate multiple commands per line. The Ascii text file\r
+  can contain any number of lines. The following line termination forms are\r
   supported:\r
     LF   : Unix, Mac OS X*, BeOS\r
     CR+LF: MS-DOS*, Microsoft Windows*\r
-    CR   : Commodore, Apple II, and realy Mac OS\r
-    LF+CR: for simplicity and completeness \r
+    CR   : Commodore, Apple II, and really Mac OS\r
+    LF+CR: for simplicity and completeness\r
 \r
   Argv[0] - "script"\r
   Argv[1] - Device Name:path for the file to load\r
   script fv1:\script.txt\r
 \r
   @param  Argc   Number of command arguments in Argv\r
-  @param  Argv   Array of strings that represent the parsed command line. \r
-                 Argv[0] is the comamnd name\r
+  @param  Argv   Array of strings that represent the parsed command line.\r
+                 Argv[0] is the command name\r
 \r
   @return EFI_SUCCESS\r
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 EblScriptCmd (\r
   IN UINTN  Argc,\r
   IN CHAR8  **Argv\r
@@ -54,8 +56,8 @@ EblScriptCmd (
   CHAR8                         *Ptr;\r
   CHAR8                         *ScanPtr;\r
   UINTN                         CmdLineSize;\r
-  \r
-  \r
+\r
+\r
 \r
   if (Argc < 2) {\r
     // file name required\r
@@ -85,15 +87,15 @@ EblScriptCmd (
           CmdLineSize++;\r
           break;\r
         }\r
-        \r
+\r
       }\r
 \r
       Status = ProcessCmdLine (Ptr, CmdLineSize);\r
     }\r
-  \r
+\r
     FreePool (Address);\r
   }\r
\r
+\r
   EfiClose (File);\r
   return Status;\r
 }\r
@@ -103,7 +105,7 @@ EblScriptCmd (
 GLOBAL_REMOVE_IF_UNREFERENCED const EBL_COMMAND_TABLE mScriptTemplate[] = {\r
   {\r
     "script",\r
-    " device:path; load an ascii file and execute it like commands", \r
+    " device:path; load an ascii file and execute it like commands",\r
     NULL,\r
     EblScriptCmd\r
   }\r