From: Sophie Brun <sophie@kali.org>
Date: Wed, 21 Aug 2019 10:40:50 +0200
Subject: Add support for arm* builds

Change target for OpenSSL to build on arm*.

Note that, when running in a armel/armhf container on a arm64 host, it's
the machine from the host that is reported by machine(), ie. aarch64. So
we need to support that as well.
---
 build_config.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build_config.py b/build_config.py
index 4cf8af5..610bb07 100644
--- a/build_config.py
+++ b/build_config.py
@@ -59,7 +59,7 @@ if architecture()[0] == "64bit":
         CURRENT_PLATFORM = SupportedPlatformEnum.OPENBSD_64
 elif architecture()[0] == "32bit":
     if platform in ["linux", "linux2"]:
-        if machine() == "armv7l":
+        if machine().startswith(('aarch', 'arm')):
             CURRENT_PLATFORM = SupportedPlatformEnum.LINUX_ARM32
         else:
             CURRENT_PLATFORM = SupportedPlatformEnum.LINUX_32
