BaseTools: Fixed a bug to generate correct path of PACKAGE_RELATIVE_PATH
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu <yingke.d.liu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17642 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -555,8 +555,16 @@ cleanlib:
|
|||||||
LibraryMakeCommandList.append(Command)
|
LibraryMakeCommandList.append(Command)
|
||||||
|
|
||||||
package_rel_dir = self._AutoGenObject.SourceDir
|
package_rel_dir = self._AutoGenObject.SourceDir
|
||||||
if os.sep in package_rel_dir:
|
current_dir = self.Macros["WORKSPACE"]
|
||||||
package_rel_dir = package_rel_dir[package_rel_dir.index(os.sep) + 1:]
|
found = False
|
||||||
|
while not found and os.sep in package_rel_dir:
|
||||||
|
index = package_rel_dir.index(os.sep)
|
||||||
|
current_dir = os.path.join(current_dir, package_rel_dir[:index])
|
||||||
|
for fl in os.listdir(current_dir):
|
||||||
|
if fl.endswith('.dec'):
|
||||||
|
found = True
|
||||||
|
break
|
||||||
|
package_rel_dir = package_rel_dir[index + 1:]
|
||||||
|
|
||||||
MakefileTemplateDict = {
|
MakefileTemplateDict = {
|
||||||
"makefile_header" : self._FILE_HEADER_[self._FileType],
|
"makefile_header" : self._FILE_HEADER_[self._FileType],
|
||||||
|
Reference in New Issue
Block a user