Andrew:
  Could you give one example to reproduce it? 

Thanks
Liming
> -----Original Message-----
> From: edk2-devel [mailto:[email protected]] On Behalf Of
> Andrew Fish
> Sent: Wednesday, June 29, 2016 5:17 AM
> To: edk2-devel <[email protected]>
> Subject: [edk2] [BaseTools] I had an issue with different paths for the same
> file in DSC vs. FDF files.
> 
> 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
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to