Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorJonah Graham2020-08-07 00:59:35 +0000
committerJonah Graham2020-08-11 21:17:34 +0000
commit149ccaffccafbccc8d5f35cfe9ea52ca41a5e22c (patch)
treefb626384c9ca9184563a1a8db854de1755859440 /native
parent00a52086c9e3c7457be830ee38626c2af0225c23 (diff)
downloadorg.eclipse.cdt-149ccaffccafbccc8d5f35cfe9ea52ca41a5e22c.tar.gz
org.eclipse.cdt-149ccaffccafbccc8d5f35cfe9ea52ca41a5e22c.tar.xz
org.eclipse.cdt-149ccaffccafbccc8d5f35cfe9ea52ca41a5e22c.zip
Bug 565836: Add linux aarch64 for natives
Note: the Windows dll is not actually modified, apart from the embedded date stamp to match the date of the jni/ modification Also-by: Liviu Ionescu <ilg@livius.net> Change-Id: Ice3d5e7ae5999a0e4d1866e76e515a91e30e9f11
Diffstat (limited to 'native')
-rw-r--r--native/org.eclipse.cdt.native.serial/native_src/Makefile5
-rwxr-xr-xnative/org.eclipse.cdt.native.serial/os/linux/aarch64/libserial.sobin0 -> 13744 bytes
-rwxr-xr-xnative/org.eclipse.cdt.native.serial/os/win32/x86_64/serial.dllbin381152 -> 381152 bytes
3 files changed, 5 insertions, 0 deletions
diff --git a/native/org.eclipse.cdt.native.serial/native_src/Makefile b/native/org.eclipse.cdt.native.serial/native_src/Makefile
index 72c59e6e8ac..9a70da964ca 100644
--- a/native/org.eclipse.cdt.native.serial/native_src/Makefile
+++ b/native/org.eclipse.cdt.native.serial/native_src/Makefile
@@ -26,6 +26,7 @@ ifeq ($(UNAME),Linux)
LIBS = \
$(OS_DIR)/win32/x86_64/serial.dll \
$(OS_DIR)/linux/x86_64/libserial.so \
+ $(OS_DIR)/linux/aarch64/libserial.so \
$(OS_DIR)/macosx/x86_64/libserial.jnilib
else
ifeq ($(UNAME),Darwin)
@@ -57,6 +58,10 @@ $(OS_DIR)/linux/x86_64/libserial.so: serial.c
mkdir -p $(dir $@)
gcc -m64 $(CFLAGS) -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux $(LDFLAGS) -shared -o $@ serial.c
+$(OS_DIR)/linux/aarch64/libserial.so: serial.c
+ mkdir -p $(dir $@)
+ aarch64-linux-gnu-gcc $(CFLAGS) -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux $(LDFLAGS) -shared -o $@ serial.c
+
$(OS_DIR)/linux/ppc64le/libserial.so: serial.c
mkdir -p $(dir $@)
gcc -m64 -mcpu=power8 $(CFLAGS) -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux $(LDFLAGS) -shared -o $@ serial.c
diff --git a/native/org.eclipse.cdt.native.serial/os/linux/aarch64/libserial.so b/native/org.eclipse.cdt.native.serial/os/linux/aarch64/libserial.so
new file mode 100755
index 00000000000..f5cc2058d06
--- /dev/null
+++ b/native/org.eclipse.cdt.native.serial/os/linux/aarch64/libserial.so
Binary files differ
diff --git a/native/org.eclipse.cdt.native.serial/os/win32/x86_64/serial.dll b/native/org.eclipse.cdt.native.serial/os/win32/x86_64/serial.dll
index e88734adb7c..abdce78fcc3 100755
--- a/native/org.eclipse.cdt.native.serial/os/win32/x86_64/serial.dll
+++ b/native/org.eclipse.cdt.native.serial/os/win32/x86_64/serial.dll
Binary files differ

Back to the top