f4pga/setup: same installation regardless of FPGA_FAM

Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
This commit is contained in:
Unai Martinez-Corral 2022-08-17 00:13:08 +02:00
parent d54ac407fe
commit cfa9563e90
1 changed files with 15 additions and 19 deletions

View File

@ -24,9 +24,6 @@ from subprocess import run
from setuptools import setup as setuptools_setup
from os import environ
FPGA_FAM = environ.get('FPGA_FAM', 'xc7')
packagePath = Path(__file__).resolve().parent
requirementsFile = packagePath / "requirements.txt"
@ -69,6 +66,7 @@ if git is not None:
if version is None:
version = semver
sf = "symbiflow"
shwrappers = "f4pga.wrappers.sh.__init__"
@ -112,21 +110,19 @@ setuptools_setup(
f"{sf}_place = {shwrappers}:place",
f"{sf}_route = {shwrappers}:route",
f"{sf}_synth = {shwrappers}:synth",
f"{sf}_write_fasm = {shwrappers}:write_fasm"
] + (
[
f"{sf}_write_bitstream = {shwrappers}:write_bitstream",
] if FPGA_FAM == 'xc7' else [
f"{sf}_analysis = {shwrappers}:analysis",
f"{sf}_fasm2bels = {shwrappers}:fasm2bels",
f"{sf}_generate_bitstream = {shwrappers}:generate_bitstream",
f"{sf}_repack = {shwrappers}:repack",
f"{sf}_write_binary = {shwrappers}:write_binary",
f"{sf}_write_bitheader = {shwrappers}:write_bitheader",
f"{sf}_write_jlink = {shwrappers}:write_jlink",
f"{sf}_write_openocd = {shwrappers}:write_openocd",
f"ql_{sf} = {shwrappers}:ql",
]
)
f"{sf}_write_fasm = {shwrappers}:write_fasm",
# Xilinx only
f"{sf}_write_bitstream = {shwrappers}:write_bitstream",
# QuickLogic only
f"{sf}_analysis = {shwrappers}:analysis",
f"{sf}_fasm2bels = {shwrappers}:fasm2bels",
f"{sf}_generate_bitstream = {shwrappers}:generate_bitstream",
f"{sf}_repack = {shwrappers}:repack",
f"{sf}_write_binary = {shwrappers}:write_binary",
f"{sf}_write_bitheader = {shwrappers}:write_bitheader",
f"{sf}_write_jlink = {shwrappers}:write_jlink",
f"{sf}_write_openocd = {shwrappers}:write_openocd",
f"ql_{sf} = {shwrappers}:ql",
]
},
)