Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Commit

Permalink
Another footprint fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ObKo committed Apr 30, 2019
1 parent 69c7a6c commit d1c21f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions schlib/autogen/xilinx/xilinx_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,12 +424,12 @@ def parseFile(self):

# Try to find footprint
self.footprint = None
self.footprintFilter = f"Xilinx*{self.packageName.upper()}"
self.footprintFilter = f"Xilinx*{self.packageName.upper()}*"

# A bit ugly here - find footprint in Package_BGA.pretty only
fpFile = glob.glob(os.path.join(FOOTPRINT_PATH, "Package_BGA.pretty/", f"{self.footprintFilter}*"))
fpFile = glob.glob(os.path.join(FOOTPRINT_PATH, "Package_BGA.pretty/", self.footprintFilter))
if len(fpFile) > 0:
self.footprint = f"Package_BGA:{os.path.basename(fpFile[0])}"
self.footprint = f"Package_BGA:{os.path.splitext(os.path.basename(fpFile[0]))[0]}"

if not self.footprint:
self.footprint = f"Package_BGA:Xilinx_{self.packageName.upper()}"
Expand Down

0 comments on commit d1c21f2

Please sign in to comment.