diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-05-25 10:45:15 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-05-25 10:45:15 +0000 |
commit | 9fd2164e34b9f3e1aa6bde07f513f43a6a08e588 (patch) | |
tree | e01f800ba4a6e59616e8690b5cd113b9982ea00d /BaseTools | |
parent | 46cc3885e68cc19981a4756e1a2d40d35f2eb92f (diff) | |
download | edk2-9fd2164e34b9f3e1aa6bde07f513f43a6a08e588.tar.gz edk2-9fd2164e34b9f3e1aa6bde07f513f43a6a08e588.tar.bz2 edk2-9fd2164e34b9f3e1aa6bde07f513f43a6a08e588.zip |
Sync BaseTools Branch (version r2157) to EDKII main trunk.
BaseTool Branch:
https://edk2-buildtools.svn.sourceforge.net/svnroot/edk2-buildtools/branches/Releases/BaseTools_r2100
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11702 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools')
-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 27a684e666..9ae44536a6 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 e13119d75c..e5a305e772 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 059186d5c9..41b421777b 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 090ab35a58..d64e5e7bb9 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 77a457751d..4a0cd59f94 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 f2a0bc5778..35cdca595f 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 2455eaea0a..90eee87b48 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 bfb5abd669..4ac5a5d406 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 e2480a1bc8..26eef0e07d 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 6bd6ac5363..40d9c03629 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 761cc14d51..fbc7a9a7ac 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 a7df5ebe5b..158859d875 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 fd1cacfbca..faf2217d77 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 2afbeb6563..b80cbddb4c 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 45f5c1a910..fe69cb62a2 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 41d513a71e..0893d6c680 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 84b013acee..ff1106db3a 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 ef32d4362b..9a59e86b30 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 ac433218db..d749d1c5a7 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 66c89d503f..5b40d61b78 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 2d41954bb3..0c3adcc117 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 ecdcf0e832..197ecee23e 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 ab2c489e37..db3f96d2c7 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 50c4f76d11..10ef9e4865 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 a7ff784747..6811a0fc02 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 ff96ca3ae5..e558b5f528 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 cde024f0ec..bef7664960 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 428158ebb8..035c268a2c 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 9e7771dc7d..733935afe9 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
|