diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-03-31 22:05:28 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-04-01 13:39:15 +0800 |
commit | bc7d95c00d9682ca96d8cee9a0be929c2e61a299 (patch) | |
tree | c3403071835a253c07b353d39caebd7ee4a59581 /BaseTools/Source/Python | |
parent | 5e06f1a00b5c325d3ced69ccfe4d307ad63975cf (diff) | |
download | edk2-platforms-bc7d95c00d9682ca96d8cee9a0be929c2e61a299.tar.xz |
BaseTools: Enhance StrDefs.h to include ImageDefs.h
Enhance StrDefs.h to include ImageDefs.h for VfrCompiler to support
IMAGE_TOKEN usage.
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python')
-rw-r--r-- | BaseTools/Source/Python/AutoGen/GenC.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/AutoGen/GenC.py b/BaseTools/Source/Python/AutoGen/GenC.py index 96b1459253..0fb6b9fc4e 100644 --- a/BaseTools/Source/Python/AutoGen/GenC.py +++ b/BaseTools/Source/Python/AutoGen/GenC.py @@ -1981,6 +1981,9 @@ def CreateCode(Info, AutoGenC, AutoGenH, StringH, UniGenCFlag, UniGenBinBuffer, break
GuidMacros.append('#define %s %s' % ('_PCD_VALUE_'+TokenCName, Value))
+ if Info.IdfFileList:
+ GuidMacros.append('#include "%sImgDefs.h"' % Info.Name)
+
if GuidMacros:
StringH.Append('\n#ifdef VFRCOMPILE\n%s\n#endif\n' % '\n'.join(GuidMacros))
|