vfrcompiler's runstatus is undefined on startup, here's a patch that fixes it.
On 01/04/14 17:35, Reza Jelveh wrote: > using VfrCompile on a recent linux distribution such as archlinux yields > ERROR 0003 no matter what Vfr I call it on. does anyone have any hints on how > I can debug this? > > Thanks, > Reza > > "VfrCompile" -l -n --string-db > > /home/dude/OSXGUEST/ovmf-svn/src/tianocore-edk2-svn_build/Build/OvmfX64/RELEASE_GCC48/X64/IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe/OUTPUT/BdsDxeStrDefs.hpk > --output-directory > > /home/dude/OSXGUEST/ovmf-svn/src/tianocore-edk2-svn_build/Build/OvmfX64/RELEASE_GCC48/X64/IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe/DEBUG/DeviceMngr > > /home/dude/OSXGUEST/ovmf-svn/src/tianocore-edk2-svn_build/Build/OvmfX64/RELEASE_GCC48/X64/IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe/OUTPUT/DeviceManagerVfr.i > VfrCompile: ERROR 0003: Error parsing > compile error in file (null) >
diff --git a/BaseTools/Source/C/VfrCompile/VfrCompiler.cpp b/BaseTools/Source/C/VfrCompile/VfrCompiler.cpp index dd34a1b..e05be64 100644 --- a/BaseTools/Source/C/VfrCompile/VfrCompiler.cpp +++ b/BaseTools/Source/C/VfrCompile/VfrCompiler.cpp @@ -84,6 +84,8 @@ CVfrCompiler::OptionInitialization ( mOptions.HasOverrideClassGuid = FALSE; mOptions.WarningAsError = FALSE; memset (&mOptions.OverrideClassGuid, 0, sizeof (EFI_GUID)); + + SET_RUN_STATUS (STATUS_STARTED); if (Argc == 1) { Usage (); diff --git a/BaseTools/Source/C/VfrCompile/VfrCompiler.h b/BaseTools/Source/C/VfrCompile/VfrCompiler.h index ea20bbc..3261e9c 100644 --- a/BaseTools/Source/C/VfrCompile/VfrCompiler.h +++ b/BaseTools/Source/C/VfrCompile/VfrCompiler.h @@ -60,7 +60,8 @@ typedef struct { } OPTIONS; typedef enum { - STATUS_INITIALIZED = 1, + STATUS_STARTED = 0, + STATUS_INITIALIZED, STATUS_PREPROCESSED, STATUS_COMPILEED, STATUS_GENBINARY,
------------------------------------------------------------------------------
_______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel