Skip to content

Commit c2d7847

Browse files
alexwebknjaz
authored andcommitted
build armv7l images (#669)
* build armv7l images * Update build-docker-images.yml * Don't use `enable-ec_nistp_64_gcc_128` on armv7l * hack? * We are an armv4 build (cherry picked from commit 519b16bd0803ea22dbd0a4525c641060581c0215)
1 parent 3e7907d commit c2d7847

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

build-scripts/manylinux-container-image/install_openssl.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ BUILD_FLAGS="$OPENSSL_BUILD_FLAGS"
2121
if [[ "$1" =~ '^manylinux1_.*$' ]]; then
2222
PATH=/opt/perl/bin:$PATH
2323
fi
24+
# Can't use `$(uname -m) = "armv7l"` because that returns what kernel we're
25+
# using, and we build for armv7l with an ARM64 host.
26+
if [ "$(readelf -h /proc/self/exe | grep -o 'Machine:.* ARM')" ]; then
27+
BUILD_FLAGS="$OPENSSL_BUILD_FLAGS_ARMV7L"
28+
fi
2429
if [ "$(readelf -h /proc/self/exe | grep -o 'Machine:.* S/390')" ]; then
2530
BUILD_FLAGS="$OPENSSL_BUILD_FLAGS_S390X"
2631
export CFLAGS="$CFLAGS -march=z10"

build-scripts/manylinux-container-image/openssl-version.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ export OPENSSL_SHA256="344d0a79f1a9b08029b0744e2cc401a43f9c90acd1044d09a530b4885
33
# We need a base set of flags because on Windows using MSVC
44
# enable-ec_nistp_64_gcc_128 doesn't work since there's no 128-bit type
55
export OPENSSL_BUILD_FLAGS_WINDOWS="no-ssl3 no-ssl3-method no-zlib no-shared no-module no-comp no-dynamic-engine no-apps no-docs no-sm2-precomp no-atexit"
6+
export OPENSSL_BUILD_FLAGS_ARMV7L="linux-armv4 ${OPENSSL_BUILD_FLAGS_WINDOWS}"
67
export OPENSSL_BUILD_FLAGS_S390X="${OPENSSL_BUILD_FLAGS_WINDOWS}"
78
export OPENSSL_BUILD_FLAGS="${OPENSSL_BUILD_FLAGS_WINDOWS} enable-ec_nistp_64_gcc_128"

0 commit comments

Comments
 (0)