diff options
author | Jiewen Yao <jiewen.yao@intel.com> | 2019-07-01 06:19:13 +0000 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2019-07-12 21:06:57 +0800 |
commit | a79841a0244ab2afd1efc3b9d4cc91e27fa90d71 (patch) | |
tree | 3f550257719b8801ec901bb311f9c02b83c8731b /BaseTools/Source/Python/AutoGen/AutoGen.py | |
parent | 2d100d1d73a9f9a38f224e87c48276ba1e84d8ce (diff) | |
download | edk2-a79841a0244ab2afd1efc3b9d4cc91e27fa90d71.tar.gz edk2-a79841a0244ab2afd1efc3b9d4cc91e27fa90d71.tar.bz2 edk2-a79841a0244ab2afd1efc3b9d4cc91e27fa90d71.zip |
BaseTools: Add HOST_APPLICATION module type.
It can be used to indicate a module can be build to run
as OS application and run in OS environment.
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Xiaoyu Lu <xiaoyux.lu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/AutoGen.py')
-rw-r--r-- | BaseTools/Source/Python/AutoGen/AutoGen.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/Python/AutoGen/AutoGen.py index 5cfaf2141a..2df055a109 100644 --- a/BaseTools/Source/Python/AutoGen/AutoGen.py +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py @@ -2837,7 +2837,7 @@ class ModuleAutoGen(AutoGen): # the type of build module is USER_DEFINED.
# All different DEPEX section tags would be copied into the As Built INF file
# and there would be separate DEPEX section tags
- if self.ModuleType.upper() == SUP_MODULE_USER_DEFINED:
+ if self.ModuleType.upper() == SUP_MODULE_USER_DEFINED or self.ModuleType.upper() == SUP_MODULE_HOST_APPLICATION:
if (Arch.upper() == self.Arch.upper()) and (ModuleType.upper() != TAB_ARCH_COMMON):
DepexList.append({(Arch, ModuleType): DepexExpr})
else:
@@ -2847,7 +2847,7 @@ class ModuleAutoGen(AutoGen): DepexList.append({(Arch, ModuleType): DepexExpr})
#the type of build module is USER_DEFINED.
- if self.ModuleType.upper() == SUP_MODULE_USER_DEFINED:
+ if self.ModuleType.upper() == SUP_MODULE_USER_DEFINED or self.ModuleType.upper() == SUP_MODULE_HOST_APPLICATION:
for Depex in DepexList:
for key in Depex:
DepexStr += '[Depex.%s.%s]\n' % key
@@ -4088,7 +4088,7 @@ class ModuleAutoGen(AutoGen): for ModuleType in self.DepexList:
# Ignore empty [depex] section or [depex] section for SUP_MODULE_USER_DEFINED module
- if len(self.DepexList[ModuleType]) == 0 or ModuleType == SUP_MODULE_USER_DEFINED:
+ if len(self.DepexList[ModuleType]) == 0 or ModuleType == SUP_MODULE_USER_DEFINED or ModuleType == SUP_MODULE_HOST_APPLICATION:
continue
Dpx = GenDepex.DependencyExpression(self.DepexList[ModuleType], ModuleType, True)
|