build/gowin/apicula: only append _packer_opts with known use_xxx (drop options only required by Gowin's software)

This commit is contained in:
Gwenhael Goavec-Merou 2024-09-01 09:55:01 +02:00
parent 3da470048a
commit babe233407
1 changed files with 3 additions and 1 deletions

View File

@ -60,7 +60,9 @@ class GowinApiculaToolchain(YosysNextPNRToolchain):
# use_mspi_as_gpio and friends
for option, value in self.options.items():
if option.startswith("use_") and value:
self._packer_opts += " --" + option[4:]
# Not all options are supported and may be just Gowin's software check
if option not in ["use_mode_as_gpio"]:
self._packer_opts += " --" + option[4:]
YosysNextPNRToolchain.finalize(self)