]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
android: Enable arm64 and x86_64 builds
authorKevin Cernekee <cernekee@gmail.com>
Mon, 12 Feb 2018 01:35:35 +0000 (17:35 -0800)
committerKevin Cernekee <cernekee@gmail.com>
Mon, 12 Feb 2018 03:57:09 +0000 (19:57 -0800)
Use the oldest API level supported by each architecture, to maximize
compatibility with existing devices.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
android/Makefile

index 0d9e40559a857e281e49e59ed337e371935d06d6..efca96b34526e9e61cbea11e53456ff49f9e1302 100644 (file)
 NDK     := /opt/android-sdk-linux_x86/android-ndk-r16b
 ARCH    := arm
 
+EXTRA_CFLAGS :=
+
 # You should be able to just 'make ARCH=x86' and it should DTRT.
 ifeq ($(ARCH),arm)
 TRIPLET := arm-linux-androideabi
+API_LEVEL := 14
 EXTRA_CFLAGS := -march=armv7-a -mthumb
 endif
+ifeq ($(ARCH),arm64)
+TRIPLET := aarch64-linux-android
+API_LEVEL := 26
+endif
 ifeq ($(ARCH),x86)
 TRIPLET := i686-linux-android
-EXTRA_CFLAGS :=
+API_LEVEL := 14
+endif
+ifeq ($(ARCH),x86_64)
+TRIPLET := x86_64-linux-android
+API_LEVEL := 21
 endif
 
 TOPDIR := $(shell pwd)
 DESTDIR := $(TOPDIR)/$(TRIPLET)/out
 
-API_LEVEL := 14
 EXTRA_CFLAGS += -D__ANDROID_API__=$(API_LEVEL) -O2
 
 TOOLCHAIN := $(TOPDIR)/$(TRIPLET)/toolchain