diff options
-rw-r--r-- | BaseTools/Bin/Win32/BPDG.exe | bin | 578931 -> 578931 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/BootSectImage.exe | bin | 434176 -> 434176 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/EfiLdrImage.exe | bin | 421888 -> 421888 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/EfiRom.exe | bin | 446464 -> 446464 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/Fpd2Dsc.exe | bin | 1435295 -> 1435295 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/GenBootSector.exe | bin | 425984 -> 425984 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/GenCrc32.exe | bin | 425984 -> 425984 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/GenDepex.exe | bin | 634207 -> 634207 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/GenFds.exe | bin | 1569740 -> 1569754 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/GenFfs.exe | bin | 430080 -> 430080 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/GenFv.exe | bin | 479232 -> 479232 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/GenFw.exe | bin | 495616 -> 495616 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/GenPage.exe | bin | 421888 -> 421888 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/GenPatchPcdTable.exe | bin | 628204 -> 628204 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/GenSec.exe | bin | 446464 -> 446464 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/GenVtf.exe | bin | 446464 -> 446464 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/LzmaCompress.exe | bin | 397312 -> 397312 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/MigrationMsa2Inf.exe | bin | 1379937 -> 1379937 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/PatchPcdValue.exe | bin | 560722 -> 560722 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/Spd2Dec.exe | bin | 1408735 -> 1408735 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/Split.exe | bin | 425984 -> 425984 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/TargetTool.exe | bin | 582471 -> 582471 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/TianoCompress.exe | bin | 434176 -> 434176 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/Trim.exe | bin | 698664 -> 698664 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/VfrCompile.exe | bin | 1208320 -> 1208320 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/VolInfo.exe | bin | 471040 -> 471040 bytes | |||
-rwxr-xr-x | BaseTools/Bin/Win32/build.exe | bin | 2911908 -> 2911922 bytes | |||
-rw-r--r-- | BaseTools/Source/C/GenVtf/GenVtf.c | 37 | ||||
-rw-r--r-- | BaseTools/Source/Python/GenFds/FdfParser.py | 2 |
29 files changed, 24 insertions, 15 deletions
diff --git a/BaseTools/Bin/Win32/BPDG.exe b/BaseTools/Bin/Win32/BPDG.exe Binary files differindex 27a684e..9ae4453 100644 --- a/BaseTools/Bin/Win32/BPDG.exe +++ b/BaseTools/Bin/Win32/BPDG.exe diff --git a/BaseTools/Bin/Win32/BootSectImage.exe b/BaseTools/Bin/Win32/BootSectImage.exe Binary files differindex e13119d..e5a305e 100755 --- a/BaseTools/Bin/Win32/BootSectImage.exe +++ b/BaseTools/Bin/Win32/BootSectImage.exe diff --git a/BaseTools/Bin/Win32/EfiLdrImage.exe b/BaseTools/Bin/Win32/EfiLdrImage.exe Binary files differindex 059186d..41b4217 100755 --- a/BaseTools/Bin/Win32/EfiLdrImage.exe +++ b/BaseTools/Bin/Win32/EfiLdrImage.exe diff --git a/BaseTools/Bin/Win32/EfiRom.exe b/BaseTools/Bin/Win32/EfiRom.exe Binary files differindex 090ab35..d64e5e7 100755 --- a/BaseTools/Bin/Win32/EfiRom.exe +++ b/BaseTools/Bin/Win32/EfiRom.exe diff --git a/BaseTools/Bin/Win32/Fpd2Dsc.exe b/BaseTools/Bin/Win32/Fpd2Dsc.exe Binary files differindex 77a4577..4a0cd59 100755 --- a/BaseTools/Bin/Win32/Fpd2Dsc.exe +++ b/BaseTools/Bin/Win32/Fpd2Dsc.exe diff --git a/BaseTools/Bin/Win32/GenBootSector.exe b/BaseTools/Bin/Win32/GenBootSector.exe Binary files differindex f2a0bc5..35cdca5 100755 --- a/BaseTools/Bin/Win32/GenBootSector.exe +++ b/BaseTools/Bin/Win32/GenBootSector.exe diff --git a/BaseTools/Bin/Win32/GenCrc32.exe b/BaseTools/Bin/Win32/GenCrc32.exe Binary files differindex 2455eae..90eee87 100755 --- a/BaseTools/Bin/Win32/GenCrc32.exe +++ b/BaseTools/Bin/Win32/GenCrc32.exe diff --git a/BaseTools/Bin/Win32/GenDepex.exe b/BaseTools/Bin/Win32/GenDepex.exe Binary files differindex bfb5abd..4ac5a5d 100755 --- a/BaseTools/Bin/Win32/GenDepex.exe +++ b/BaseTools/Bin/Win32/GenDepex.exe diff --git a/BaseTools/Bin/Win32/GenFds.exe b/BaseTools/Bin/Win32/GenFds.exe Binary files differindex e2480a1..26eef0e 100755 --- a/BaseTools/Bin/Win32/GenFds.exe +++ b/BaseTools/Bin/Win32/GenFds.exe diff --git a/BaseTools/Bin/Win32/GenFfs.exe b/BaseTools/Bin/Win32/GenFfs.exe Binary files differindex 6bd6ac5..40d9c03 100755 --- a/BaseTools/Bin/Win32/GenFfs.exe +++ b/BaseTools/Bin/Win32/GenFfs.exe diff --git a/BaseTools/Bin/Win32/GenFv.exe b/BaseTools/Bin/Win32/GenFv.exe Binary files differindex 761cc14..fbc7a9a 100755 --- a/BaseTools/Bin/Win32/GenFv.exe +++ b/BaseTools/Bin/Win32/GenFv.exe diff --git a/BaseTools/Bin/Win32/GenFw.exe b/BaseTools/Bin/Win32/GenFw.exe Binary files differindex a7df5eb..158859d 100755 --- a/BaseTools/Bin/Win32/GenFw.exe +++ b/BaseTools/Bin/Win32/GenFw.exe diff --git a/BaseTools/Bin/Win32/GenPage.exe b/BaseTools/Bin/Win32/GenPage.exe Binary files differindex fd1cacf..faf2217 100755 --- a/BaseTools/Bin/Win32/GenPage.exe +++ b/BaseTools/Bin/Win32/GenPage.exe diff --git a/BaseTools/Bin/Win32/GenPatchPcdTable.exe b/BaseTools/Bin/Win32/GenPatchPcdTable.exe Binary files differindex 2afbeb6..b80cbdd 100755 --- a/BaseTools/Bin/Win32/GenPatchPcdTable.exe +++ b/BaseTools/Bin/Win32/GenPatchPcdTable.exe diff --git a/BaseTools/Bin/Win32/GenSec.exe b/BaseTools/Bin/Win32/GenSec.exe Binary files differindex 45f5c1a..fe69cb6 100755 --- a/BaseTools/Bin/Win32/GenSec.exe +++ b/BaseTools/Bin/Win32/GenSec.exe diff --git a/BaseTools/Bin/Win32/GenVtf.exe b/BaseTools/Bin/Win32/GenVtf.exe Binary files differindex 41d513a..0893d6c 100755 --- a/BaseTools/Bin/Win32/GenVtf.exe +++ b/BaseTools/Bin/Win32/GenVtf.exe diff --git a/BaseTools/Bin/Win32/LzmaCompress.exe b/BaseTools/Bin/Win32/LzmaCompress.exe Binary files differindex 84b013a..ff1106d 100755 --- a/BaseTools/Bin/Win32/LzmaCompress.exe +++ b/BaseTools/Bin/Win32/LzmaCompress.exe diff --git a/BaseTools/Bin/Win32/MigrationMsa2Inf.exe b/BaseTools/Bin/Win32/MigrationMsa2Inf.exe Binary files differindex ef32d43..9a59e86 100755 --- a/BaseTools/Bin/Win32/MigrationMsa2Inf.exe +++ b/BaseTools/Bin/Win32/MigrationMsa2Inf.exe diff --git a/BaseTools/Bin/Win32/PatchPcdValue.exe b/BaseTools/Bin/Win32/PatchPcdValue.exe Binary files differindex ac43321..d749d1c 100755 --- a/BaseTools/Bin/Win32/PatchPcdValue.exe +++ b/BaseTools/Bin/Win32/PatchPcdValue.exe diff --git a/BaseTools/Bin/Win32/Spd2Dec.exe b/BaseTools/Bin/Win32/Spd2Dec.exe Binary files differindex 66c89d5..5b40d61 100755 --- a/BaseTools/Bin/Win32/Spd2Dec.exe +++ b/BaseTools/Bin/Win32/Spd2Dec.exe diff --git a/BaseTools/Bin/Win32/Split.exe b/BaseTools/Bin/Win32/Split.exe Binary files differindex 2d41954..0c3adcc 100755 --- a/BaseTools/Bin/Win32/Split.exe +++ b/BaseTools/Bin/Win32/Split.exe diff --git a/BaseTools/Bin/Win32/TargetTool.exe b/BaseTools/Bin/Win32/TargetTool.exe Binary files differindex ecdcf0e..197ecee 100755 --- a/BaseTools/Bin/Win32/TargetTool.exe +++ b/BaseTools/Bin/Win32/TargetTool.exe diff --git a/BaseTools/Bin/Win32/TianoCompress.exe b/BaseTools/Bin/Win32/TianoCompress.exe Binary files differindex ab2c489..db3f96d 100755 --- a/BaseTools/Bin/Win32/TianoCompress.exe +++ b/BaseTools/Bin/Win32/TianoCompress.exe diff --git a/BaseTools/Bin/Win32/Trim.exe b/BaseTools/Bin/Win32/Trim.exe Binary files differindex 50c4f76..10ef9e4 100755 --- a/BaseTools/Bin/Win32/Trim.exe +++ b/BaseTools/Bin/Win32/Trim.exe diff --git a/BaseTools/Bin/Win32/VfrCompile.exe b/BaseTools/Bin/Win32/VfrCompile.exe Binary files differindex a7ff784..6811a0f 100755 --- a/BaseTools/Bin/Win32/VfrCompile.exe +++ b/BaseTools/Bin/Win32/VfrCompile.exe diff --git a/BaseTools/Bin/Win32/VolInfo.exe b/BaseTools/Bin/Win32/VolInfo.exe Binary files differindex ff96ca3..e558b5f 100755 --- a/BaseTools/Bin/Win32/VolInfo.exe +++ b/BaseTools/Bin/Win32/VolInfo.exe diff --git a/BaseTools/Bin/Win32/build.exe b/BaseTools/Bin/Win32/build.exe Binary files differindex cde024f..bef7664 100755 --- a/BaseTools/Bin/Win32/build.exe +++ b/BaseTools/Bin/Win32/build.exe diff --git a/BaseTools/Source/C/GenVtf/GenVtf.c b/BaseTools/Source/C/GenVtf/GenVtf.c index 428158e..035c268 100644 --- a/BaseTools/Source/C/GenVtf/GenVtf.c +++ b/BaseTools/Source/C/GenVtf/GenVtf.c @@ -119,28 +119,37 @@ Returns: --*/
{
- CHAR8 StrPtr[40];
- CHAR8 *Token;
+ CHAR8 TemStr[5] = "0000";
unsigned Major;
unsigned Minor;
+ UINTN Length;
Major = 0;
Minor = 0;
- memset (StrPtr, 0, 40);
- Token = strtok (Str, ".");
- while (Token != NULL) {
- strcat (StrPtr, Token);
- Token = strtok (NULL, ".");
+ if (strstr (Str, ".") != NULL) {
+ sscanf (
+ Str,
+ "%02x.%02x",
+ &Major,
+ &Minor
+ );
+ } else {
+ Length = strlen(Str);
+ if (Length < 4) {
+ strncpy (TemStr + 4 - Length, Str, Length);
+ } else {
+ strncpy (TemStr, Str + Length - 4, 4);
+ }
+
+ sscanf (
+ TemStr,
+ "%02x%02x",
+ &Major,
+ &Minor
+ );
}
- sscanf (
- StrPtr,
- "%02d%02d",
- &Major,
- &Minor
- );
-
*MajorVer = (UINT8) Major;
*MinorVer = (UINT8) Minor;
return EFI_SUCCESS;
diff --git a/BaseTools/Source/Python/GenFds/FdfParser.py b/BaseTools/Source/Python/GenFds/FdfParser.py index 9e7771d..733935a 100644 --- a/BaseTools/Source/Python/GenFds/FdfParser.py +++ b/BaseTools/Source/Python/GenFds/FdfParser.py @@ -3630,7 +3630,7 @@ class FdfParser: if not self.__GetNextToken():
raise Warning("expected Component version", self.FileName, self.CurrentLineNumber)
- Pattern = re.compile('-$|[0-9]{0,1}[0-9]{1}\.[0-9]{0,1}[0-9]{1}')
+ Pattern = re.compile('-$|[0-9a-fA-F]{1,2}\.[0-9a-fA-F]{1,2}$', re.DOTALL)
if Pattern.match(self.__Token) == None:
raise Warning("Unknown version format '%s'" % self.__Token, self.FileName, self.CurrentLineNumber)
CompStatementObj.CompVer = self.__Token
|