\r
if GlobalData.gCaseInsensitive:\r
ExtraOption += " -c"\r
- if GlobalData.gEnableGenfdsMultiThread:\r
- ExtraOption += " --genfds-multi-thread"\r
+ if not GlobalData.gEnableGenfdsMultiThread:\r
+ ExtraOption += " --no-genfds-multi-thread"\r
if GlobalData.gIgnoreSource:\r
ExtraOption += " --ignore-sources"\r
\r
elif LogLevel == EdkLogger.QUIET:\r
FdsCommandDict["quiet"] = True\r
\r
- if GlobalData.gEnableGenfdsMultiThread:\r
- FdsCommandDict["GenfdsMultiThread"] = True\r
+ FdsCommandDict["GenfdsMultiThread"] = GlobalData.gEnableGenfdsMultiThread\r
if GlobalData.gIgnoreSource:\r
FdsCommandDict["IgnoreSources"] = True\r
\r
gPlatformHash = None\r
gPackageHash = {}\r
gModuleHash = {}\r
-gEnableGenfdsMultiThread = False\r
+gEnableGenfdsMultiThread = True\r
gSikpAutoGenCache = set()\r
\r
# Dictionary for tracking Module build status as success or failure\r
Parser.add_option("--hash", action="store_true", dest="UseHashCache", default=False, help="Enable hash-based caching during build process.")\r
Parser.add_option("--binary-destination", action="store", type="string", dest="BinCacheDest", help="Generate a cache of binary files in the specified directory.")\r
Parser.add_option("--binary-source", action="store", type="string", dest="BinCacheSource", help="Consume a cache of binary files from the specified directory.")\r
- Parser.add_option("--genfds-multi-thread", action="store_true", dest="GenfdsMultiThread", default=False, help="Enable GenFds multi thread to generate ffs file.")\r
+ Parser.add_option("--genfds-multi-thread", action="store_true", dest="GenfdsMultiThread", default=True, help="Enable GenFds multi thread to generate ffs file.")\r
+ Parser.add_option("--no-genfds-multi-thread", action="store_true", dest="NoGenfdsMultiThread", default=False, help="Disable GenFds multi thread to generate ffs file.")\r
Parser.add_option("--disable-include-path-check", action="store_true", dest="DisableIncludePathCheck", default=False, help="Disable the include path check for outside of package.")\r
(Opt, Args) = Parser.parse_args()\r
return (Opt, Args)\r
GenFdsGlobalVariable.SecCmdList = []\r
GenFdsGlobalVariable.CopyList = []\r
GenFdsGlobalVariable.ModuleFile = ''\r
- GenFdsGlobalVariable.EnableGenfdsMultiThread = False\r
+ GenFdsGlobalVariable.EnableGenfdsMultiThread = True\r
\r
GenFdsGlobalVariable.LargeFileInFvFlags = []\r
GenFdsGlobalVariable.EFI_FIRMWARE_FILE_SYSTEM3_GUID = '5473C07A-3DCB-4dca-BD6F-1E9689E7349A'\r
GenFdsGlobalVariable.VerboseLogger("Using Workspace:" + Workspace)\r
if FdsCommandDict.get("GenfdsMultiThread"):\r
GenFdsGlobalVariable.EnableGenfdsMultiThread = True\r
+ else:\r
+ GenFdsGlobalVariable.EnableGenfdsMultiThread = False\r
os.chdir(GenFdsGlobalVariable.WorkSpaceDir)\r
\r
# set multiple workspace\r
FdsCommandDict["quiet"] = Options.quiet\r
FdsCommandDict["debug"] = Options.debug\r
FdsCommandDict["Workspace"] = Options.Workspace\r
- FdsCommandDict["GenfdsMultiThread"] = Options.GenfdsMultiThread\r
+ FdsCommandDict["GenfdsMultiThread"] = not Options.NoGenfdsMultiThread\r
FdsCommandDict["fdf_file"] = [PathClass(Options.filename)] if Options.filename else []\r
FdsCommandDict["build_target"] = Options.BuildTarget\r
FdsCommandDict["toolchain_tag"] = Options.ToolChain\r
Parser.add_option("--conf", action="store", type="string", dest="ConfDirectory", help="Specify the customized Conf directory.")\r
Parser.add_option("--ignore-sources", action="store_true", dest="IgnoreSources", default=False, help="Focus to a binary build and ignore all source files")\r
Parser.add_option("--pcd", action="append", dest="OptionPcd", help="Set PCD value by command line. Format: \"PcdName=Value\" ")\r
- Parser.add_option("--genfds-multi-thread", action="store_true", dest="GenfdsMultiThread", default=False, help="Enable GenFds multi thread to generate ffs file.")\r
+ Parser.add_option("--genfds-multi-thread", action="store_true", dest="GenfdsMultiThread", default=True, help="Enable GenFds multi thread to generate ffs file.")\r
+ Parser.add_option("--no-genfds-multi-thread", action="store_true", dest="NoGenfdsMultiThread", default=False, help="Disable GenFds multi thread to generate ffs file.")\r
\r
Options, _ = Parser.parse_args()\r
return Options\r
SecCmdList = []\r
CopyList = []\r
ModuleFile = ''\r
- EnableGenfdsMultiThread = False\r
+ EnableGenfdsMultiThread = True\r
\r
#\r
# The list whose element are flags to indicate if large FFS or SECTION files exist in FV.\r
GlobalData.gUseHashCache = BuildOptions.UseHashCache\r
GlobalData.gBinCacheDest = BuildOptions.BinCacheDest\r
GlobalData.gBinCacheSource = BuildOptions.BinCacheSource\r
- GlobalData.gEnableGenfdsMultiThread = BuildOptions.GenfdsMultiThread\r
+ GlobalData.gEnableGenfdsMultiThread = not BuildOptions.NoGenfdsMultiThread\r
GlobalData.gDisableIncludePathCheck = BuildOptions.DisableIncludePathCheck\r
\r
if GlobalData.gBinCacheDest and not GlobalData.gUseHashCache:\r