The bug is for build output files it still use mws.join function, it
cause maybe we will get the build output files in the PACKAGES_PATH
because mws.join will try WORKSPACE first, if the file doesn't exist
then try PACKAGES_PATH. But for build output, we expected it should
relative to WORKSPACE.
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
self.OutputDir,\r
self.BuildTarget + "_" + self.ToolChain,\r
)\r
+ GlobalData.gBuildDirectory = self._BuildDir\r
return self._BuildDir\r
\r
## Return directory of platform makefile\r
#\r
gConfDirectory = ''\r
\r
+gBuildDirectory = ''\r
#\r
# The relative default database file path\r
#\r
# To local path format\r
#\r
Path = os.path.normpath(Path)\r
- if Path.startswith(GlobalData.gWorkspace) and not os.path.exists(Path):\r
+ if Path.startswith(GlobalData.gWorkspace) and not Path.startswith(GlobalData.gBuildDirectory) and not os.path.exists(Path):\r
Path = Path[len (GlobalData.gWorkspace):]\r
if Path[0] == os.path.sep:\r
Path = Path[1:]\r