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
|
@ -93,6 +93,7 @@ class CologneChipToolchain(GenericToolchain):
|
|||
self._yosys.build_script()
|
||||
|
||||
# p_r complains about missing cc_worst_spd_dly.dly -> copy it in gateware directory
|
||||
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"))
|
||||
|
|
Loading…
Reference in New Issue