forked from doawoo/beam-machine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·15 lines (12 loc) · 671 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
set -e
OPENSSL_VERSION="${OPENSSL_VERSION:-"3.2.1"}"
OTP_VERSION="${OTP_VERSION:-"26.2.1"}"
./dockcross-linux-armv7l-musl ./build-openssl.sh
./dockcross-linux-x64 ./build-erlang-bootstrap.sh
./dockcross-linux-armv7l-musl ./build-erlang.sh
# TODO: Check patching of musl
# /usr/xcc/armv7l-linux-musleabihf-cross/armv7l-linux-musleabihf/lib/ld-musl-armhf.so.1
# TODO: Extract and ship musl?
# ./dockcross-linux-armv7l-musl cp /usr/xcc/armv7l-linux-musleabihf-cross/armv7l-linux-musleabihf/lib/ld-musl-armhf.so.1 ld-musl-armhf.so.1
./dockcross-linux-armv7l-musl cp /usr/xcc/armv7l-linux-musleabihf-cross/armv7l-linux-musleabihf/lib/libc.so ld-musl-armhf.so.1