2014-11-28 11:43:56 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# Build all cross compile targets and the base binaries
|
|
|
|
|
|
|
|
|
|
set -o errexit
|
|
|
|
|
set -o nounset
|
|
|
|
|
set -o pipefail
|
|
|
|
|
|
2015-11-06 11:37:10 +01:00
|
|
|
STARTTIME=$(date +%s)
|
2016-05-16 12:16:38 +02:00
|
|
|
S2I_ROOT=$(dirname "${BASH_SOURCE}")/..
|
|
|
|
|
source "${S2I_ROOT}/hack/common.sh"
|
|
|
|
|
source "${S2I_ROOT}/hack/util.sh"
|
2016-05-15 23:36:07 +02:00
|
|
|
s2i::log::install_errexit
|
2014-11-28 11:43:56 +01:00
|
|
|
|
2015-02-27 13:43:05 +01:00
|
|
|
# Build the primary for all platforms
|
2016-05-16 12:16:38 +02:00
|
|
|
S2I_BUILD_PLATFORMS=("${S2I_CROSS_COMPILE_PLATFORMS[@]}")
|
|
|
|
|
s2i::build::build_binaries "${S2I_CROSS_COMPILE_TARGETS[@]}"
|
2014-11-28 11:43:56 +01:00
|
|
|
|
2015-02-27 13:43:05 +01:00
|
|
|
# Make the primary release.
|
2016-05-16 12:16:38 +02:00
|
|
|
S2I_RELEASE_ARCHIVE="source-to-image"
|
|
|
|
|
S2I_BUILD_PLATFORMS=("${S2I_CROSS_COMPILE_PLATFORMS[@]}")
|
|
|
|
|
s2i::build::place_bins "${S2I_CROSS_COMPILE_BINARIES[@]}"
|
2015-11-06 11:37:10 +01:00
|
|
|
|
|
|
|
|
ret=$?; ENDTIME=$(date +%s); echo "$0 took $(($ENDTIME - $STARTTIME)) seconds"; exit "$ret"
|