Skip to content

Commit

Permalink
Added support for OSX arm 64
Browse files Browse the repository at this point in the history
  • Loading branch information
cavearr committed Jan 28, 2024
1 parent b0827f9 commit cf0fce9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions apio/commands/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"windows_x86",
"windows_amd64",
"darwin",
"darwin_arm64",
]


Expand Down
1 change: 1 addition & 0 deletions apio/commands/uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"linux_aarch64",
"windows",
"darwin",
"darwin_arm64",
]


Expand Down
6 changes: 6 additions & 0 deletions apio/managers/scons.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,12 @@ def get_programmer(self, board, ext_serial, ext_ftdi_id, sram, flash):
# In this case the serial check is ignored
return "tinyprog --libusb --program"

# TinyFPGA BX board is not detected in MacOS HighSierra
if "tinyprog" in board_data and "darwin_arm64" in util.get_systype():
# In this case the serial check is ignored
return "tinyprog --libusb --program"


# Replace Serial port
if "${SERIAL_PORT}" in programmer:
self.check_usb(board, board_data)
Expand Down

0 comments on commit cf0fce9

Please sign in to comment.