]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: not include the undefined macro in response file
authorYonghong Zhu <yonghong.zhu@intel.com>
Wed, 23 Mar 2016 06:54:36 +0000 (14:54 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Wed, 23 Mar 2016 09:36:09 +0000 (17:36 +0800)
commit3570e3324835ba08fa68a1d0bf59290750ff797d
treeda1b764ccebdd4acb1ecefd5bf4f6ac600ba0c77
parentc7d1e742ecf9c149449c031dbfb4493bfdd0b815
BaseTools: not include the undefined macro in response file

In last Nmake patch, when we generate the response file, we would replace
all the Macros in the make file. Once there have undefined macro used,
the tool direct report error. In this patch, we use following solution to
resolve the failure.
1. Add all the defined macros into AutoGenObject macro dict
2. For the undefined macros which used in the Make file, when we generate
the response file, we not include this macro, let make phase to handle.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/Python/AutoGen/AutoGen.py
BaseTools/Source/Python/AutoGen/GenMake.py