I hit an issue with this code. https://github.com/tianocore/edk2/blob/master/BaseTools/Source/Python/AutoGen/AutoGen.py#L2510 self.SourceDir = mws.relpath(self.SourceDir, self.WorkspaceDir)
I had a combination of relative and absolute references in the DSC and FDF and the build did not work as the build system got confused about the location in the Build directory of items. So X64/MdePkg/ vs X64/edk2/MdePkg. I fixed by doing this. self.SourceDir = os.path.relpath(mws.join(GlobalData.gWorkspace, self.SourceDir), self.WorkspaceDir) I don't think that covers the case of a Path outside the workspace so an extra check should be added and if that check fails then call self.SourceDir = mws.relpath(self.SourceDir, self.WorkspaceDir). Thanks, Andrew Fish _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

