]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: Fixed the mis-using strip() function issue.
authorFeng, Bob C <bob.c.feng@intel.com>
Sun, 21 Jul 2019 03:31:11 +0000 (11:31 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Mon, 22 Jul 2019 04:06:03 +0000 (12:06 +0800)
commitbb824f685d760f560bb3c3fb14af394ab3b3544f
tree01a4a2697e3b44693c0934562055893c2d7c8ef5
parent5f89bcc4604ea9e439039d873e34a8c06b47c707
BaseTools: Fixed the mis-using strip() function issue.

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2003

lstrip(parameter) do the match based on the char
in parameter but not only the whole parameter string.

In GenMake line 1082,
CmdSign.lstrip('/Fo') will strip the '/' or
'F' or 'o' on the left of CmdSign. This is not expected.

This patch is going to fix such issue.

Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/Python/AutoGen/GenMake.py
BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py