From 29db41931799e898d8689b642c497a75cfa30a1e Mon Sep 17 00:00:00 2001 From: frhun <28605587+frhun@users.noreply.github.com> Date: Mon, 9 Oct 2017 20:36:08 +0200 Subject: [PATCH] added aarch64 recognition for Linux --- src/main/java/com/fazecast/jSerialComm/SerialPort.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/fazecast/jSerialComm/SerialPort.java b/src/main/java/com/fazecast/jSerialComm/SerialPort.java index e8d3801..193d9f7 100644 --- a/src/main/java/com/fazecast/jSerialComm/SerialPort.java +++ b/src/main/java/com/fazecast/jSerialComm/SerialPort.java @@ -145,6 +145,8 @@ public final class SerialPort if (linkerFile.exists()) libraryPath += "-hf"; } + else if (System.getProperty("os.arch").indexOf("aarch64") >= 0) + libraryPath = "Linux/armv8_64"; else if (System.getProperty("os.arch").indexOf("64") >= 0) libraryPath = "Linux/x86_64"; else