]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: Fixed issue in MultiThread Genfds function
authorFeng, Bob C <bob.c.feng@intel.com>
Wed, 3 Apr 2019 02:17:02 +0000 (10:17 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Wed, 10 Apr 2019 05:32:10 +0000 (13:32 +0800)
commitb1e27d175abbb42c4bcc8565a3e0e622d643c40f
treed9a1ae34cf5d8173384b536b884d86502a26503b
parentae2fb9ead47b5abaf2a4e815b5f57c8f4838b221
BaseTools: Fixed issue in MultiThread Genfds function

https://bugzilla.tianocore.org/show_bug.cgi?id=1450
In the Multiple thread Genfds feature, build tool generates
GenSec, GenFFS command in Makefile.

The Non-Hii Driver does not generate .offset file for uni string offset,
but the build tool has not knowledge about this in autogen phase. So
in this patch, I add a check in Makefile for GenSec command. If the GenSec
input file does not exist, the GenSec will not be called. And if GenSec
command is not called, its output file, which is also the input file of
GenFfs command, will also not exist.So for GenFfs command,
I add a new command parameter -oi which means
the input file is an optional input file which would not exist. so
that I can generate GenFfs command with "-oi" parameter in Makefile.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Conf/build_rule.template
BaseTools/Source/C/GenFfs/GenFfs.c
BaseTools/Source/Python/AutoGen/GenMake.py
BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py
BaseTools/Source/Python/Workspace/DscBuildData.py
BaseTools/Source/Python/build/build.py