Skip to content

Commit

Permalink
scons: apio upload: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Mar 8, 2024
1 parent 89cdb52 commit 32a7bf1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apio/managers/scons.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,16 @@ def upload(self, config: dict, prog: dict):
flags += [f"prog={programmer}"]

# -- Execute Scons for uploading!
return self.run(
exit_code = self.run(
"upload",
variables=flags,
packages=["oss-cad-suite"],
board=board,
arch=arch,
)

return exit_code

def get_programmer(self, board: str, prog: dict) -> str:
"""Get the command line (string) to execute for programming
the FPGA (programmer executable + arguments)
Expand Down

0 comments on commit 32a7bf1

Please sign in to comment.