diff --git a/tools/icesprog b/tools/icesprog index 3ebe718..4d57e88 100755 --- a/tools/icesprog +++ b/tools/icesprog @@ -6,6 +6,8 @@ PLATFORM=$(uname -m) if [ "${PLATFORM}" == "x86_64" ]; then sudo ${CURRENT_DIR}/icesprog.x64.linux $@ -else - sudo ${CURRENT_DIR}/icesprog.arm $@ +elif [ "${PLATFORM}" == "armv7l" ]; then + sudo ${CURRENT_DIR}/icesprog.arm32 $@ +elif [ "${PLATFORM}" == "aarch64" ]; then + sudo ${CURRENT_DIR}/icesprog.arm64 $@ fi diff --git a/tools/icesprog.arm b/tools/icesprog.arm32 similarity index 100% rename from tools/icesprog.arm rename to tools/icesprog.arm32 diff --git a/tools/icesprog.arm64 b/tools/icesprog.arm64 new file mode 100755 index 0000000..d2f2b0c Binary files /dev/null and b/tools/icesprog.arm64 differ diff --git a/tools/src/Makefile b/tools/src/Makefile index 9f292b4..4ae71e1 100644 --- a/tools/src/Makefile +++ b/tools/src/Makefile @@ -69,9 +69,10 @@ dump: ./icesprog -r -l 8388608 chip.bin deploy: - @if [ "$(PLATFORM)" = "x86_64" ]; \ - then \ + @if [ "$(PLATFORM)" = "x86_64" ]; then \ cp icesprog ~/oss/icesugar/tools/icesprog.x64; \ - else \ - cp icesprog ~/oss/icesugar/tools/icesprog.arm; \ + elif [ "$(PLATFORM)" = "armv7l" ]; then \ + cp icesprog ~/oss/icesugar/tools/icesprog.arm32; \ + elif [ "$(PLATFORM)" = "aarch64" ]; then \ + cp icesprog ~/oss/icesugar/tools/icesprog.arm64; \ fi diff --git a/tools/src/icesprog b/tools/src/icesprog index 7b05d5d..d2f2b0c 100755 Binary files a/tools/src/icesprog and b/tools/src/icesprog differ