Skip to content

Commit 81b5afb

Browse files
authored
feat: add support for ARM64 architecture and include necessary binaries (#111)
Fixes #103. Signed-off-by: Alex Bucknall <alex.bucknall@gmail.com>
1 parent 9b95fcc commit 81b5afb

File tree

16 files changed

+406
-2
lines changed

16 files changed

+406
-2
lines changed

dfu-util.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,19 @@ UNAME_OS="$(uname -s)"
99
case "${UNAME_OS}" in
1010
Linux*)
1111
# Choose dfu program by arch
12-
DFU_UTIL=${DIR}/linux/dfu-util
12+
UNAME_ARCH="$(uname -m)"
13+
case "${UNAME_ARCH}" in
14+
x86_64)
15+
DFU_UTIL=${DIR}/linux/x86_64/dfu-util
16+
;;
17+
aarch64|arm64)
18+
DFU_UTIL=${DIR}/linux/aarch64/dfu-util
19+
;;
20+
*)
21+
echo "Unsupported Linux architecture: ${UNAME_ARCH}."
22+
exit 1
23+
;;
24+
esac
1325
;;
1426
Darwin*)
1527
DFU_UTIL=${DIR}/macosx/dfu-util

linux/aarch64/dfu-prefix

18.2 KB
Binary file not shown.

linux/aarch64/dfu-suffix

18.2 KB
Binary file not shown.

linux/aarch64/dfu-util

54.1 KB
Binary file not shown.

linux/aarch64/hid-flash

33.8 KB
Binary file not shown.

linux/aarch64/upload_reset

9.91 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)