mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
build/colognechip/colognechip: check if p_r is in PATH before trying to copy dly file
This commit is contained in:
parent
62f275debd
commit
044760e06c
1 changed files with 4 additions and 3 deletions
|
@ -93,9 +93,10 @@ class CologneChipToolchain(GenericToolchain):
|
|||
self._yosys.build_script()
|
||||
|
||||
# p_r complains about missing cc_worst_spd_dly.dly -> copy it in gateware directory
|
||||
p_r_path = which("p_r")
|
||||
cc_worst_spd_dly_path = os.path.join(os.path.dirname(p_r_path), "cc_worst_spd_dly.dly")
|
||||
copyfile(cc_worst_spd_dly_path, os.path.join(self._build_dir, "cc_worst_spd_dly.dly"))
|
||||
if which("p_r"):
|
||||
p_r_path = which("p_r")
|
||||
cc_worst_spd_dly_path = os.path.join(os.path.dirname(p_r_path), "cc_worst_spd_dly.dly")
|
||||
copyfile(cc_worst_spd_dly_path, os.path.join(self._build_dir, "cc_worst_spd_dly.dly"))
|
||||
|
||||
# Script ---------------------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in a new issue