]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/GenFds/GenFds.py
BaseTools/GenFds: enhance to get TOOL_CHAIN_TAG and TARGET value
authorYonghong Zhu <yonghong.zhu@intel.com>
Fri, 6 May 2016 07:20:23 +0000 (15:20 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Wed, 25 May 2016 05:43:54 +0000 (13:43 +0800)
commite4979beee9e5d334d97fd8e2c79670ad08587bc6
tree800cb8b3a1cc1842d7dc85f61427a9ac21db0030
parent07fb9c264400d7ca2c14d3d8076102584038eb96
BaseTools/GenFds: enhance to get TOOL_CHAIN_TAG and TARGET value

when user don't set TOOL_CHAIN_TAG and TARGET by –D Flag, then GenFds
would report failure for format:
FILE DATA = $(OUTPUT_DIRECTORY)/$(TARGET)_$(TOOL_CHAIN_TAG)/testfile
so this patch enhance to get the TOOL_CHAIN_TAG and TARGET value by
following priority (high to low): 1. the Macro value set by -D Flag;
2. Get the value by the -t/-b option. 3. get the value from target.txt
file. Besides, this patch also remove the error checking for missing
-t/-b option.

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>
BaseTools/Source/Python/GenFds/GenFds.py