blob: 7c90b0f72fa09671f3a875a7822d40e188cfc5f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
# Cross-compile bokfd/bokfctl/bokftui for aarch64. Expects the source
# read-only at /src, writes the binaries to /out and takes the version from
# $VERSION. Run through deploy/Dockerfile.cross.
set -eu
make -C /src -j"$(nproc)" BUILD=/tmp/build \
CC=aarch64-linux-gnu-gcc \
CFLAGS="-O2 -g -L/usr/lib/aarch64-linux-gnu" \
VERSION="${VERSION:-0.1.0-dev}"
mkdir -p /out
cp /tmp/build/bokfd /tmp/build/bokfctl /tmp/build/bokftui /out/
|