BaseTools/VfrCompile: Remove framework VFR support
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1464 Currently there is no usage of framework VFR, remove the support from VfrCompile. Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
VfrCompiler main class and main function.
|
||||
|
||||
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2004 - 2019, Intel Corporation. All rights reserved.<BR>
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
@ -74,7 +74,6 @@ CVfrCompiler::OptionInitialization (
|
||||
mOptions.IncludePaths = NULL;
|
||||
mOptions.SkipCPreprocessor = TRUE;
|
||||
mOptions.CPreprocessorOptions = NULL;
|
||||
mOptions.CompatibleMode = FALSE;
|
||||
mOptions.HasOverrideClassGuid = FALSE;
|
||||
mOptions.WarningAsError = FALSE;
|
||||
mOptions.AutoDefault = FALSE;
|
||||
@ -142,8 +141,6 @@ CVfrCompiler::OptionInitialization (
|
||||
}
|
||||
|
||||
AppendCPreprocessorOptions (Argv[Index]);
|
||||
} else if (stricmp(Argv[Index], "-c") == 0 || stricmp(Argv[Index], "--compatible-framework") == 0) {
|
||||
mOptions.CompatibleMode = TRUE;
|
||||
} else if (stricmp(Argv[Index], "-s") == 0|| stricmp(Argv[Index], "--string-db") == 0) {
|
||||
Index++;
|
||||
if ((Index >= Argc) || (Argv[Index][0] == '-')) {
|
||||
@ -561,8 +558,6 @@ CVfrCompiler::Usage (
|
||||
" create an IFR HII pack file",
|
||||
" -n, --no-pre-processing",
|
||||
" do not preprocessing input file",
|
||||
" -c, --compatible-framework",
|
||||
" compatible framework vfr file",
|
||||
" -s, --string-db",
|
||||
" input uni string package file",
|
||||
" -g, --guid",
|
||||
@ -685,7 +680,6 @@ CVfrCompiler::Compile (
|
||||
goto Fail;
|
||||
}
|
||||
|
||||
InputInfo.CompatibleMode = mOptions.CompatibleMode;
|
||||
if (mOptions.HasOverrideClassGuid) {
|
||||
InputInfo.OverrideClassGuid = &mOptions.OverrideClassGuid;
|
||||
} else {
|
||||
@ -775,27 +769,6 @@ CVfrCompiler::AdjustBin (
|
||||
DebugError (NULL, 0, 0001, "Error parsing vfr file", " %s.Buffer not allocated.", mOptions.VfrFileName);
|
||||
}
|
||||
|
||||
//
|
||||
// For UEFI mode, not do OpCode Adjust
|
||||
//
|
||||
if (mOptions.CompatibleMode) {
|
||||
//
|
||||
// Adjust Opcode to be compatible with framework vfr
|
||||
//
|
||||
Status = gCIfrRecordInfoDB.IfrRecordAdjust ();
|
||||
if (Status != VFR_RETURN_SUCCESS) {
|
||||
//
|
||||
// Record List Adjust Failed
|
||||
//
|
||||
SET_RUN_STATUS (STATUS_FAILED);
|
||||
return;
|
||||
}
|
||||
//
|
||||
// Re get the IfrRecord Buffer.
|
||||
//
|
||||
gCIfrRecordInfoDB.IfrRecordOutput (gRBuffer);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@ -853,7 +826,7 @@ CVfrCompiler::GenCFile (
|
||||
goto Fail;
|
||||
}
|
||||
|
||||
if (!mOptions.CreateIfrPkgFile || mOptions.CompatibleMode) {
|
||||
if (!mOptions.CreateIfrPkgFile) {
|
||||
if ((pFile = fopen (LongFilePath (mOptions.COutputFileName), "w")) == NULL) {
|
||||
DebugError (NULL, 0, 0001, "Error opening output C file", "%s", mOptions.COutputFileName);
|
||||
goto Fail;
|
||||
@ -863,10 +836,6 @@ CVfrCompiler::GenCFile (
|
||||
fprintf (pFile, "%s\n", gSourceFileHeader[Index]);
|
||||
}
|
||||
|
||||
if (mOptions.CompatibleMode) {
|
||||
gCVfrBufferConfig.OutputCFile (pFile, mOptions.VfrBaseFileName);
|
||||
}
|
||||
|
||||
if (gCFormPkg.GenCFile (mOptions.VfrBaseFileName, pFile, &gRBuffer) != VFR_RETURN_SUCCESS) {
|
||||
fclose (pFile);
|
||||
goto Fail;
|
||||
|
Reference in New Issue
Block a user