[btls] Add "desktop" ARM Linux configurations (for IoT, mostly) (#4875)
authorJo Shields <directhex@apebox.org>
Tue, 16 May 2017 20:24:29 +0000 (21:24 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 16 May 2017 20:24:29 +0000 (22:24 +0200)
* [btls] Add "desktop" ARM Linux configurations (for IoT, mostly)

* [btls] Disable optimized asm on soft-float ARM

It depends on a NEON FPU, which we don't target on soft float

configure.ac

index 37f6008d6ac225066b20d53475eeac6a1a83d230..061bc0df75cdf274d913c01a4e55f57c269aa512 100644 (file)
@@ -3226,6 +3226,13 @@ case "$host" in
                ACCESS_UNALIGNED="no"
                AOT_SUPPORTED="yes"
                CPPFLAGS="$CPPFLAGS -D__ARM_EABI__"
+               BTLS_SUPPORTED=yes
+               BTLS_PLATFORM=arm
+               case "$target" in
+               arm*-linux*-gnueabi)
+                       BTLS_PLATFORM=armsoft
+                       ;;
+               esac
                ;;
        arm*-netbsd*-eabi*)
                TARGET=ARM;
@@ -3246,6 +3253,8 @@ case "$host" in
                arch_target=arm64
                boehm_supported=false
                AOT_SUPPORTED="yes"
+               BTLS_SUPPORTED=yes
+               BTLS_PLATFORM=aarch64
                ;;
        s390x-*-linux*)
                TARGET=S390X;
@@ -4110,6 +4119,16 @@ if test "x$enable_btls" = "xyes"; then
        x86_64)
                btls_arch=x86_64
                ;;
+       arm)
+               btls_arch=arm
+               ;;
+       armsoft)
+               btls_arch=arm
+               btls_cflags="-DOPENSSL_NO_ASM=1"
+               ;;
+       aarch64)
+               btls_arch=aarch64
+               ;;
        android-armv5)
                BTLS_CMAKE_ARGS="-DANDROID_ABI=\"armeabi\" -DANDROID_NATIVE_API_LEVEL=12"
                ;;