f4pga: mv part_db/parts.json part_db.json

Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
This commit is contained in:
Unai Martinez-Corral 2022-03-04 03:06:43 +01:00
parent d0641bdf53
commit 26fb1d63b0
3 changed files with 3 additions and 7 deletions

View File

@ -508,18 +508,14 @@ def get_platform_name_for_part(part_name: str):
The reason for such distinction is that plenty of chips with different names
differ only in a type of package they use.
"""
d: dict
with open(os.path.join(mypath, 'part_db/parts.json')) as f:
d = json.loads(f.read())
return d.get(part_name.upper())
with (Path(mypath) / 'part_db.json').open('r') as rfptr:
return json.load(rfptr).get(part_name.upper())
def cmd_build(args: Namespace):
""" sfbuild's `build` command implementation """
project_flow_cfg: ProjectFlowConfig = None
platform = args.platform
if platform is None:
if args.part:

View File

@ -85,7 +85,7 @@ setuptools_setup(
],
package_dir={"f4pga": "."},
package_data={
'f4pga': ['platforms/*.json'],
'f4pga': ['*.json', 'platforms/*.json'],
'f4pga.wrappers.sh': ['xc7/*.f4pga.sh', 'quicklogic/*.f4pga.sh']
},
classifiers=[],