Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Patch the BPB information in boot sector image file.\r
Patch the MBR code in MBR image file.\r
\r
Patch the BPB information in boot sector image file.\r
Patch the MBR code in MBR image file.\r
\r
-Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\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
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
//\r
// Utility version information\r
//\r
//\r
// Utility version information\r
//\r
-#define UTILITY_MAJOR_VERSION 1
-#define UTILITY_MINOR_VERSION 0
+#define UTILITY_MAJOR_VERSION 1\r
+#define UTILITY_MINOR_VERSION 0\r
- printf ("%s Version %d.%d Build %s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
+ printf ("%s Version %d.%d Build %s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);\r
- printf ("Copyright (c) 1999-2016 Intel Corporation. All rights reserved.\n");
- printf ("\n The BootSectImage tool prints information or patch destination file by source\n");
- printf (" file for BIOS Parameter Block (BPB) or Master Boot Record (MBR).\n");
+ printf ("Copyright (c) 1999-2016 Intel Corporation. All rights reserved.\n");\r
+ printf ("\n The BootSectImage tool prints information or patch destination file by source\n");\r
+ printf (" file for BIOS Parameter Block (BPB) or Master Boot Record (MBR).\n");\r
printf ("\nUsage: \n\\r
BootSectImage\n\\r
[-f, --force force patch even if the FAT type of SrcImage and DstImage mismatch]\n\\r
printf ("\nUsage: \n\\r
BootSectImage\n\\r
[-f, --force force patch even if the FAT type of SrcImage and DstImage mismatch]\n\\r
<PeImageFileContent> +\r
The order of EFILDR_IMAGE is same as the order of placing PeImageFileContent.\r
\r
<PeImageFileContent> +\r
The order of EFILDR_IMAGE is same as the order of placing PeImageFileContent.\r
\r
-Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\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
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
//\r
// Utility version information\r
//\r
//\r
// Utility version information\r
//\r
-#define UTILITY_MAJOR_VERSION 1
-#define UTILITY_MINOR_VERSION 0
+#define UTILITY_MAJOR_VERSION 1\r
+#define UTILITY_MINOR_VERSION 0\r
- printf ("%s Version %d.%d Build %s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
- exit (0);
+ printf ("%s Version %d.%d Build %s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);\r
+ exit (0);\r
)\r
{\r
printf ("Usage: EfiLdrImage -o OutImage LoaderImage PeImage1 PeImage2 ... PeImageN\n");\r
)\r
{\r
printf ("Usage: EfiLdrImage -o OutImage LoaderImage PeImage1 PeImage2 ... PeImageN\n");\r
- printf ("%s Version %d.%d Build %s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
- printf ("Copyright (c) 1999-2016 Intel Corporation. All rights reserved.\n");
- printf ("\n The EfiLdrImage tool is used to combine PE files into EFILDR image with Efi loader header.\n");
+ printf ("%s Version %d.%d Build %s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);\r
+ printf ("Copyright (c) 1999-2016 Intel Corporation. All rights reserved.\n");\r
+ printf ("\n The EfiLdrImage tool is used to combine PE files into EFILDR image with Efi loader header.\n");\r
SetUtilityName (UTILITY_NAME);\r
\r
if (argc == 1) {\r
SetUtilityName (UTILITY_NAME);\r
\r
if (argc == 1) {\r
- printf ("Usage: EfiLdrImage -o OutImage LoaderImage PeImage1 PeImage2 ... PeImageN\n");
+ printf ("Usage: EfiLdrImage -o OutImage LoaderImage PeImage1 PeImage2 ... PeImageN\n");\r
return STATUS_ERROR;\r
}\r
\r
return STATUS_ERROR;\r
}\r
\r
\r
Split a file into two pieces at the request offset.\r
\r
\r
Split a file into two pieces at the request offset.\r
\r
-Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials are licensed and made available\r
under the terms and conditions of the BSD License which accompanies this\r
distribution. The full text of the license may be found at\r
This program and the accompanying materials are licensed and made available\r
under the terms and conditions of the BSD License which accompanies this\r
distribution. The full text of the license may be found at\r
//\r
// Utility version information\r
//\r
//\r
// Utility version information\r
//\r
-#define UTILITY_MAJOR_VERSION 1
-#define UTILITY_MINOR_VERSION 0
+#define UTILITY_MAJOR_VERSION 1\r
+#define UTILITY_MINOR_VERSION 0\r
- printf ("%s Version %d.%d Build %s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
+ printf ("%s Version %d.%d Build %s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);\r
- printf ("Copyright (c) 1999-2016 Intel Corporation. All rights reserved.\n");
- printf ("\n SplitFile creates two Binary files either in the same directory as the current working\n");
- printf (" directory or in the specified directory.\n");
+ printf ("Copyright (c) 1999-2016 Intel Corporation. All rights reserved.\n");\r
+ printf ("\n SplitFile creates two Binary files either in the same directory as the current working\n");\r
+ printf (" directory or in the specified directory.\n");\r
printf ("\nUsage: \n\\r
Split\n\\r
-f, --filename inputFile to split\n\\r
printf ("\nUsage: \n\\r
Split\n\\r
-f, --filename inputFile to split\n\\r
\r
VfrCompiler main class and main function.\r
\r
\r
VfrCompiler main class and main function.\r
\r
-Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>\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
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
UINT32 Index;\r
CONST CHAR8 *Help[] = {\r
" ", \r
UINT32 Index;\r
CONST CHAR8 *Help[] = {\r
" ", \r
- "VfrCompile version " VFR_COMPILER_VERSION "Build " __BUILD_VERSION,
- "Copyright (c) 2004-2016 Intel Corporation. All rights reserved.",
+ "VfrCompile version " VFR_COMPILER_VERSION "Build " __BUILD_VERSION,\r
+ "Copyright (c) 2004-2016 Intel Corporation. All rights reserved.",\r
" ",\r
"Usage: VfrCompile [options] VfrFile",\r
" ",\r
" ",\r
"Usage: VfrCompile [options] VfrFile",\r
" ",\r
{\r
UINT32 Index;\r
CONST CHAR8 *Help[] = {\r
{\r
UINT32 Index;\r
CONST CHAR8 *Help[] = {\r
- "VfrCompile version " VFR_COMPILER_VERSION "Build " __BUILD_VERSION,
+ "VfrCompile version " VFR_COMPILER_VERSION "Build " __BUILD_VERSION,\r
NULL\r
};\r
for (Index = 0; Help[Index] != NULL; Index++) {\r
NULL\r
};\r
for (Index = 0; Help[Index] != NULL; Index++) {\r
\r
VfrCompiler internal defintions.\r
\r
\r
VfrCompiler internal defintions.\r
\r
-Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>\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
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
#include "ParseInf.h"\r
\r
#define PROGRAM_NAME "VfrCompile"\r
#include "ParseInf.h"\r
\r
#define PROGRAM_NAME "VfrCompile"\r
-#define VFR_COMPILER_VERSION " 2.01 (UEFI 2.4) "
+#define VFR_COMPILER_VERSION " 2.01 (UEFI 2.4) "\r
//\r
// This is how we invoke the C preprocessor on the VFR source file\r
// to resolve #defines, #includes, etc. To make C source files\r
//\r
// This is how we invoke the C preprocessor on the VFR source file\r
// to resolve #defines, #includes, etc. To make C source files\r
/** @file\r
The tool dumps the contents of a firmware volume\r
\r
/** @file\r
The tool dumps the contents of a firmware volume\r
\r
-Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.<BR>\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
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
\r
EFI_GUID gEfiCrc32GuidedSectionExtractionProtocolGuid = EFI_CRC32_GUIDED_SECTION_EXTRACTION_PROTOCOL_GUID;\r
\r
\r
EFI_GUID gEfiCrc32GuidedSectionExtractionProtocolGuid = EFI_CRC32_GUIDED_SECTION_EXTRACTION_PROTOCOL_GUID;\r
\r
-#define UTILITY_MAJOR_VERSION 1
-#define UTILITY_MINOR_VERSION 0
+#define UTILITY_MAJOR_VERSION 1\r
+#define UTILITY_MINOR_VERSION 0\r
\r
#define UTILITY_NAME "VolInfo"\r
\r
\r
#define UTILITY_NAME "VolInfo"\r
\r
//\r
// Print utility header\r
//\r
//\r
// Print utility header\r
//\r
- printf ("%s Version %d.%d Build %s\n",
+ printf ("%s Version %d.%d Build %s\n",\r
UTILITY_NAME,\r
UTILITY_MAJOR_VERSION,\r
UTILITY_MINOR_VERSION,\r
UTILITY_NAME,\r
UTILITY_MAJOR_VERSION,\r
UTILITY_MINOR_VERSION,\r
);\r
\r
if (argc == 1) {\r
);\r
\r
if (argc == 1) {\r
//\r
// Copyright declaration\r
// \r
//\r
// Copyright declaration\r
// \r
- fprintf (stdout, "Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.\n\n");
+ fprintf (stdout, "Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.\n\n");\r
fprintf (stdout, " Display Tiano Firmware Volume FFS image information\n\n");\r
\r
//\r
fprintf (stdout, " Display Tiano Firmware Volume FFS image information\n\n");\r
\r
//\r
# file of PCD layout for use during the build when the platform integrator selects to use \r
# automatic offset calculation.\r
#\r
# file of PCD layout for use during the build when the platform integrator selects to use \r
# automatic offset calculation.\r
#\r
-# Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
import GenVpd\r
\r
PROJECT_NAME = st.LBL_BPDG_LONG_UNI\r
import GenVpd\r
\r
PROJECT_NAME = st.LBL_BPDG_LONG_UNI\r
-VERSION = (st.LBL_BPDG_VERSION + " Build " + gBUILD_VERSION)
+VERSION = (st.LBL_BPDG_VERSION + " Build " + gBUILD_VERSION)\r
\r
## Tool entrance method\r
#\r
\r
## Tool entrance method\r
#\r
#\r
# Process command line firstly.\r
#\r
#\r
# Process command line firstly.\r
#\r
- parser = OptionParser(version="%s - Version %s" % (PROJECT_NAME, VERSION),
+ parser = OptionParser(version="%s - Version %s" % (PROJECT_NAME, VERSION),\r
description='',\r
prog='BPDG',\r
usage=st.LBL_BPDG_USAGE\r
description='',\r
prog='BPDG',\r
usage=st.LBL_BPDG_USAGE\r
## @file\r
# This file is used to define strings used in the BPDG tool\r
#\r
## @file\r
# This file is used to define strings used in the BPDG tool\r
#\r
-# Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>\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
# 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
#\r
# This file lists all VPD informations for a platform fixed/adjusted by BPDG tool.\r
# \r
#\r
# This file lists all VPD informations for a platform fixed/adjusted by BPDG tool.\r
# \r
-# Copyright (c) 2010 -2016, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2010 -2016, Intel Corporation. All rights reserved.<BR>\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
# 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
\r
\r
LBL_BPDG_LONG_UNI = (u"Intel(r) Binary Product Data Generation Tool (Intel(r) BPDG)")\r
\r
\r
LBL_BPDG_LONG_UNI = (u"Intel(r) Binary Product Data Generation Tool (Intel(r) BPDG)")\r
-LBL_BPDG_VERSION = (u"1.0")
+LBL_BPDG_VERSION = (u"1.0")\r
-"""BPDG options -o Filename.bin -m Filename.map Filename.txt
-Copyright (c) 2010 - 2016, Intel Corporation All Rights Reserved.
+"""BPDG options -o Filename.bin -m Filename.map Filename.txt\r
+Copyright (c) 2010 - 2016, Intel Corporation All Rights Reserved.\r
- Intel(r) Binary Product Data Generation Tool (Intel(r) BPDG)
-
+ Intel(r) Binary Product Data Generation Tool (Intel(r) BPDG)\r
+ \r
Required Flags:\r
-o BIN_FILENAME, --vpd-filename=BIN_FILENAME\r
Specify the file name for the VPD binary file\r
Required Flags:\r
-o BIN_FILENAME, --vpd-filename=BIN_FILENAME\r
Specify the file name for the VPD binary file\r
## @file\r
# This file is used to be the main entrance of ECC tool\r
#\r
## @file\r
# This file is used to be the main entrance of ECC tool\r
#\r
-# Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\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
# 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
class Ecc(object):\r
def __init__(self):\r
# Version and Copyright\r
class Ecc(object):\r
def __init__(self):\r
# Version and Copyright\r
- self.VersionNumber = ("1.0" + " Build " + gBUILD_VERSION)
+ self.VersionNumber = ("1.0" + " Build " + gBUILD_VERSION)\r
self.Version = "%prog Version " + self.VersionNumber\r
self.Version = "%prog Version " + self.VersionNumber\r
- self.Copyright = "Copyright (c) 2009 - 2016, Intel Corporation All rights reserved."
+ self.Copyright = "Copyright (c) 2009 - 2016, Intel Corporation All rights reserved."\r
\r
self.InitDefaultConfigIni()\r
self.OutputFile = 'output.txt'\r
\r
self.InitDefaultConfigIni()\r
self.OutputFile = 'output.txt'\r
\r
# Parse the options and args\r
self.ParseOption()\r
\r
# Parse the options and args\r
self.ParseOption()\r
- EdkLogger.info(time.strftime("%H:%M:%S, %b.%d %Y ", time.localtime()) + "[00:00]" + "\n")
+ EdkLogger.info(time.strftime("%H:%M:%S, %b.%d %Y ", time.localtime()) + "[00:00]" + "\n")\r
\r
#\r
# Check EFI_SOURCE (Edk build convention). EDK_SOURCE will always point to ECP\r
\r
#\r
# Check EFI_SOURCE (Edk build convention). EDK_SOURCE will always point to ECP\r
GlobalData.gGlobalDefines["EDK_SOURCE"] = EdkSourceDir\r
GlobalData.gGlobalDefines["ECP_SOURCE"] = EcpSourceDir\r
\r
GlobalData.gGlobalDefines["EDK_SOURCE"] = EdkSourceDir\r
GlobalData.gGlobalDefines["ECP_SOURCE"] = EcpSourceDir\r
\r
- EdkLogger.info("Loading ECC configuration ... done")
+ EdkLogger.info("Loading ECC configuration ... done")\r
# Generate checkpoints list\r
EccGlobalData.gConfig = Configuration(self.ConfigFile)\r
\r
# Generate checkpoints list\r
EccGlobalData.gConfig = Configuration(self.ConfigFile)\r
\r
## @file\r
# This file is used to define strings used in the UPT tool\r
#\r
## @file\r
# This file is used to define strings used in the UPT tool\r
#\r
-# Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials are licensed and made available \r
# under the terms and conditions of the BSD License which accompanies this \r
#\r
# This program and the accompanying materials are licensed and made available \r
# under the terms and conditions of the BSD License which accompanies this \r
##\r
# Version and Copyright\r
#\r
##\r
# Version and Copyright\r
#\r
-MSG_VERSION_NUMBER = _("1.1")
+MSG_VERSION_NUMBER = _("1.1")\r
MSG_VERSION = _("UEFI Packaging Tool (UEFIPT) - Revision " + \\r
MSG_VERSION_NUMBER)\r
MSG_VERSION = _("UEFI Packaging Tool (UEFIPT) - Revision " + \\r
MSG_VERSION_NUMBER)\r
-MSG_COPYRIGHT = _("Copyright (c) 2011 - 2016 Intel Corporation All Rights Reserved.")
+MSG_COPYRIGHT = _("Copyright (c) 2011 - 2016 Intel Corporation All Rights Reserved.")\r
MSG_VERSION_COPYRIGHT = _("\n %s\n %s" % (MSG_VERSION, MSG_COPYRIGHT))\r
MSG_USAGE = _("%s [options]\n%s" % ("UPT", MSG_VERSION_COPYRIGHT))\r
MSG_DESCRIPTION = _("The UEFIPT is used to create, " + \\r
MSG_VERSION_COPYRIGHT = _("\n %s\n %s" % (MSG_VERSION, MSG_COPYRIGHT))\r
MSG_USAGE = _("%s [options]\n%s" % ("UPT", MSG_VERSION_COPYRIGHT))\r
MSG_DESCRIPTION = _("The UEFIPT is used to create, " + \\r
#\r
# This file is the main entry for UPT \r
#\r
#\r
# This file is the main entry for UPT \r
#\r
-# Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials are licensed and made available \r
# under the terms and conditions of the BSD License which accompanies this \r
#\r
# This program and the accompanying materials are licensed and made available \r
# under the terms and conditions of the BSD License which accompanies this \r
def Main():\r
Logger.Initialize()\r
\r
def Main():\r
Logger.Initialize()\r
\r
- Parser = OptionParser(version=(MSG_VERSION + ' Build ' + gBUILD_VERSION), description=MSG_DESCRIPTION,
+ Parser = OptionParser(version=(MSG_VERSION + ' Build ' + gBUILD_VERSION), description=MSG_DESCRIPTION,\r
prog="UPT.exe", usage=MSG_USAGE)\r
\r
Parser.add_option("-d", "--debug", action="store", type="int", dest="debug_level", help=ST.HLP_PRINT_DEBUG_INFO)\r
prog="UPT.exe", usage=MSG_USAGE)\r
\r
Parser.add_option("-d", "--debug", action="store", type="int", dest="debug_level", help=ST.HLP_PRINT_DEBUG_INFO)\r