BaseTools: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
/** @file
|
||||
This file contains functions required to generate a boot strap file (BSF) also
|
||||
This file contains functions required to generate a boot strap file (BSF) also
|
||||
known as the Volume Top File (VTF)
|
||||
|
||||
Copyright (c) 1999 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available
|
||||
under the terms and conditions of the BSD License which accompanies this
|
||||
Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available
|
||||
under the terms and conditions of the BSD License which accompanies this
|
||||
distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
@@ -133,7 +133,7 @@ Returns:
|
||||
} else {
|
||||
memcpy (TemStr, Str + Length - 4, 4);
|
||||
}
|
||||
|
||||
|
||||
sscanf (
|
||||
TemStr,
|
||||
"%02x%02x",
|
||||
@@ -2362,7 +2362,7 @@ Returns:
|
||||
TokenAddress += BaseAddress &~IPF_CACHE_BIT;
|
||||
|
||||
fprintf (DestFile, "%s | %016llX | ", Type, (unsigned long long) TokenAddress);
|
||||
fprintf (DestFile, "%s | %s\n %s\n", Section, Token, BaseToken);
|
||||
fprintf (DestFile, "%s | %s\n %s\n", Section, Token, BaseToken);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2479,7 +2479,7 @@ Returns:
|
||||
//
|
||||
// Copyright declaration
|
||||
//
|
||||
fprintf (stdout, "Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.\n\n");
|
||||
fprintf (stdout, "Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.\n\n");
|
||||
//
|
||||
// Details Option
|
||||
//
|
||||
@@ -2628,7 +2628,7 @@ Returns:
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if ((stricmp (argv[Index], "-r") == 0) || (stricmp (argv[Index], "--baseaddr") == 0)) {
|
||||
if (FirstRoundB) {
|
||||
Status = AsciiStringToUint64 (argv[Index + 1], FALSE, &StartAddress1);
|
||||
@@ -2639,7 +2639,7 @@ Returns:
|
||||
if (Status != EFI_SUCCESS) {
|
||||
Error (NULL, 0, 2000, "Invalid option value", "%s is Bad FV start address.", argv[Index + 1]);
|
||||
goto ERROR;
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -2649,7 +2649,7 @@ Returns:
|
||||
FirstRoundS = FALSE;
|
||||
} else {
|
||||
Status = AsciiStringToUint64 (argv[Index + 1], FALSE, &FwVolSize2);
|
||||
SecondVTF = TRUE;
|
||||
SecondVTF = TRUE;
|
||||
}
|
||||
|
||||
if (Status != EFI_SUCCESS) {
|
||||
@@ -2660,8 +2660,8 @@ Returns:
|
||||
}
|
||||
|
||||
if ((stricmp (argv[Index], "-v") == 0) || (stricmp (argv[Index], "--verbose") == 0)) {
|
||||
VerboseMode = TRUE;
|
||||
Index--;
|
||||
VerboseMode = TRUE;
|
||||
Index--;
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -2729,7 +2729,7 @@ Returns:
|
||||
if (SecondVTF == TRUE) {
|
||||
OutFileName1 = VTF_OUTPUT_FILE1;
|
||||
OutFileName2 = VTF_OUTPUT_FILE2;
|
||||
} else {
|
||||
} else {
|
||||
OutFileName1 = VTF_OUTPUT_FILE1;
|
||||
}
|
||||
SymFileName = VTF_SYM_FILE;
|
||||
|
@@ -1,9 +1,9 @@
|
||||
/** @file
|
||||
This file contains the relevant declarations required to generate Boot Strap File
|
||||
|
||||
Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available
|
||||
under the terms and conditions of the BSD License which accompanies this
|
||||
|
||||
Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available
|
||||
under the terms and conditions of the BSD License which accompanies this
|
||||
distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
@@ -80,7 +80,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#define SIZE_IA32_RESET_VECT 0x10 // 16 Bytes
|
||||
#define SIZE_SALE_ENTRY_POINT 0x08 // 8 Byte
|
||||
#define SIZE_FIT_TABLE_ADD 0x08 // 8 Byte
|
||||
#define SIZE_FIT_TABLE_PAL_A 0x10
|
||||
#define SIZE_FIT_TABLE_PAL_A 0x10
|
||||
#define SIZE_RESERVED 0x10
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ static BOOLEAN VerboseMode = FALSE;
|
||||
//
|
||||
// Internal Data Structure
|
||||
//
|
||||
typedef enum _LOC_TYPE
|
||||
typedef enum _LOC_TYPE
|
||||
{
|
||||
NONE, // In case there is - INF file
|
||||
FIRST_VTF, // First VTF
|
||||
@@ -174,18 +174,18 @@ UpdateVtfBuffer(
|
||||
Routine Description:
|
||||
|
||||
Update the Firmware Volume Buffer with requested buffer data
|
||||
|
||||
|
||||
Arguments:
|
||||
|
||||
StartAddress - StartAddress in buffer. This number will automatically
|
||||
point to right address in buffer where data needed
|
||||
point to right address in buffer where data needed
|
||||
to be updated.
|
||||
Buffer - Buffer pointer from data will be copied to memory mapped buffer.
|
||||
DataSize - Size of the data needed to be copied.
|
||||
LocType - The type of the VTF
|
||||
|
||||
Returns:
|
||||
|
||||
|
||||
EFI_ABORTED - The input parameter is error
|
||||
EFI_SUCCESS - The function completed successfully
|
||||
|
||||
@@ -227,22 +227,22 @@ CalculateFitTableChecksum (
|
||||
VOID
|
||||
)
|
||||
/*++
|
||||
|
||||
|
||||
Routine Description:
|
||||
|
||||
This function will perform byte checksum on the FIT table, if the the checksum required
|
||||
field is set to CheckSum required. If the checksum is not required then checksum byte
|
||||
will have value as 0;.
|
||||
|
||||
|
||||
Arguments:
|
||||
|
||||
NONE
|
||||
|
||||
|
||||
Returns:
|
||||
|
||||
Status - Value returned by call to CalculateChecksum8 ()
|
||||
EFI_SUCCESS - The function completed successfully
|
||||
|
||||
|
||||
--*/
|
||||
;
|
||||
|
||||
@@ -262,22 +262,22 @@ Routine Description:
|
||||
|
||||
Arguments:
|
||||
|
||||
StartAddress1 - The start address of the first VTF
|
||||
StartAddress1 - The start address of the first VTF
|
||||
Size1 - The size of the first VTF
|
||||
StartAddress2 - The start address of the second VTF
|
||||
StartAddress2 - The start address of the second VTF
|
||||
Size2 - The size of the second VTF
|
||||
|
||||
Returns:
|
||||
|
||||
|
||||
EFI_OUT_OF_RESOURCES - Can not allocate memory
|
||||
The return value can be any of the values
|
||||
The return value can be any of the values
|
||||
returned by the calls to following functions:
|
||||
GetVtfRelatedInfoFromInfFile
|
||||
ProcessAndCreateVtf
|
||||
UpdateIA32ResetVector
|
||||
UpdateFfsHeader
|
||||
WriteVtfBinary
|
||||
|
||||
|
||||
--*/
|
||||
;
|
||||
|
||||
@@ -294,11 +294,11 @@ Routine Description:
|
||||
Arguments:
|
||||
|
||||
StartAddress - StartAddress for PEIM.....
|
||||
|
||||
|
||||
Returns:
|
||||
|
||||
|
||||
EFI_SUCCESS - The function completed successfully
|
||||
EFI_ABORTED - Error Opening File
|
||||
EFI_ABORTED - Error Opening File
|
||||
|
||||
--*/
|
||||
;
|
||||
|
Reference in New Issue
Block a user