when enable the multiple workspace, the PLATFORM_DIR still is
$(WORKSPACE)\AnyPkg, even though it is in a PACKAGES_PATH folder. this
patch fix this issue to use the real path.
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>
PLATFORM_GUID = ${platform_guid}\r
PLATFORM_VERSION = ${platform_version}\r
PLATFORM_RELATIVE_DIR = ${platform_relative_directory}\r
PLATFORM_GUID = ${platform_guid}\r
PLATFORM_VERSION = ${platform_version}\r
PLATFORM_RELATIVE_DIR = ${platform_relative_directory}\r
-PLATFORM_DIR = $(WORKSPACE)${separator}${platform_relative_directory}\r
+PLATFORM_DIR = ${platform_dir}\r
PLATFORM_OUTPUT_DIR = ${platform_output_directory}\r
\r
#\r
PLATFORM_OUTPUT_DIR = ${platform_output_directory}\r
\r
#\r
"platform_version" : self.PlatformInfo.Version,\r
"platform_relative_directory": self.PlatformInfo.SourceDir,\r
"platform_output_directory" : self.PlatformInfo.OutputDir,\r
"platform_version" : self.PlatformInfo.Version,\r
"platform_relative_directory": self.PlatformInfo.SourceDir,\r
"platform_output_directory" : self.PlatformInfo.OutputDir,\r
+ "platform_dir" : self._AutoGenObject.Macros["PLATFORM_DIR"],\r
\r
"module_name" : self._AutoGenObject.Name,\r
"module_guid" : self._AutoGenObject.Guid,\r
\r
"module_name" : self._AutoGenObject.Name,\r
"module_guid" : self._AutoGenObject.Guid,\r
PLATFORM_GUID = ${platform_guid}\r
PLATFORM_VERSION = ${platform_version}\r
PLATFORM_RELATIVE_DIR = ${platform_relative_directory}\r
PLATFORM_GUID = ${platform_guid}\r
PLATFORM_VERSION = ${platform_version}\r
PLATFORM_RELATIVE_DIR = ${platform_relative_directory}\r
-PLATFORM_DIR = $(WORKSPACE)${separator}${platform_relative_directory}\r
+PLATFORM_DIR = $(platform_dir)\r
PLATFORM_OUTPUT_DIR = ${platform_output_directory}\r
\r
#\r
PLATFORM_OUTPUT_DIR = ${platform_output_directory}\r
\r
#\r
"platform_version" : self.PlatformInfo.Version,\r
"platform_relative_directory": self.PlatformInfo.SourceDir,\r
"platform_output_directory" : self.PlatformInfo.OutputDir,\r
"platform_version" : self.PlatformInfo.Version,\r
"platform_relative_directory": self.PlatformInfo.SourceDir,\r
"platform_output_directory" : self.PlatformInfo.OutputDir,\r
+ "platform_dir" : self._AutoGenObject.Macros["PLATFORM_DIR"],\r
\r
"module_name" : self._AutoGenObject.Name,\r
"module_guid" : self._AutoGenObject.Guid,\r
\r
"module_name" : self._AutoGenObject.Name,\r
"module_guid" : self._AutoGenObject.Guid,\r
PLATFORM_GUID = ${platform_guid}\r
PLATFORM_VERSION = ${platform_version}\r
PLATFORM_FILE = ${platform_file}\r
PLATFORM_GUID = ${platform_guid}\r
PLATFORM_VERSION = ${platform_version}\r
PLATFORM_FILE = ${platform_file}\r
-PLATFORM_DIR = $(WORKSPACE)${separator}${platform_relative_directory}\r
+PLATFORM_DIR = $(platform_dir)\r
PLATFORM_OUTPUT_DIR = ${platform_output_directory}\r
\r
#\r
PLATFORM_OUTPUT_DIR = ${platform_output_directory}\r
\r
#\r
"platform_relative_directory": PlatformInfo.SourceDir,\r
"platform_output_directory" : PlatformInfo.OutputDir,\r
"platform_build_directory" : PlatformInfo.BuildDir,\r
"platform_relative_directory": PlatformInfo.SourceDir,\r
"platform_output_directory" : PlatformInfo.OutputDir,\r
"platform_build_directory" : PlatformInfo.BuildDir,\r
+ "platform_dir" : self._AutoGenObject.Macros["PLATFORM_DIR"],\r
\r
"toolchain_tag" : PlatformInfo.ToolChain,\r
"build_target" : PlatformInfo.BuildTarget,\r
\r
"toolchain_tag" : PlatformInfo.ToolChain,\r
"build_target" : PlatformInfo.BuildTarget,\r