-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from krallin/32bits
Build i386 binary
- Loading branch information
Showing
9 changed files
with
66 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
FROM ubuntu:trusty | ||
|
||
ARG ARCH_SUFFIX | ||
|
||
COPY ci/install_deps.sh /install_deps.sh | ||
RUN /install_deps.sh | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
#!/bin/bash | ||
set -o errexit | ||
set -o nounset | ||
set -o xtrace | ||
|
||
apt-get update | ||
|
||
apt-get install --no-install-recommends --yes \ | ||
DEPS=( | ||
build-essential git gdb valgrind cmake rpm \ | ||
python-dev libcap-dev python-pip python-virtualenv \ | ||
hardening-includes gnupg \ | ||
gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu libc6-dev-arm64-cross \ | ||
gcc-arm-linux-gnueabihf binutils-arm-linux-gnueabi libc6-dev-armhf-cross | ||
hardening-includes gnupg | ||
) | ||
|
||
if [[ "$ARCH_SUFFIX" = "amd64" ]]; then | ||
true | ||
elif [[ "$ARCH_SUFFIX" = "armhf" ]]; then | ||
DEPS+=(gcc-arm-linux-gnueabihf binutils-arm-linux-gnueabi libc6-dev-armhf-cross) | ||
elif [[ "$ARCH_SUFFIX" = "arm64" ]]; then | ||
DEPS+=(gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu libc6-dev-arm64-cross) | ||
elif [[ "$ARCH_SUFFIX" = "i386" ]]; then | ||
DEPS+=(libc6-dev-i386 gcc-multilib) | ||
else | ||
echo "Unknown ARCH_SUFFIX=${ARCH_SUFFIX}" | ||
exit 1 | ||
fi | ||
|
||
apt-get update | ||
apt-get install --no-install-recommends --yes "${DEPS[@]}" | ||
rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters