]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: fix the split output files root dir
authorBob Feng <bob.c.feng@intel.com>
Mon, 1 Feb 2021 10:28:58 +0000 (18:28 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sun, 7 Feb 2021 01:46:18 +0000 (01:46 +0000)
commit43a113385e370530eb52cf2e55b3019d8d4f6558
tree4eb87825b93d20b8db1b3d088ae2a3823ac7f61d
parent0d96664df322d50e0ac54130e129c0bf4f2b72df
BaseTools: fix the split output files root dir

If the output file path is a relative path, the split
tool will create the output file under the input file path.
But the expected behavior for this case is the output file
should be relative to the current directory. This patch will
fix this bug.

If the output file path is not specified and output prefix is not
specified, the output file should be under the input file path

Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Acked-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Yuwei Chen <yuwei.chen@intel.com>
BaseTools/Source/Python/Split/Split.py
BaseTools/Source/Python/tests/Split/test_split.py