forked from aws/s2n-tls
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add aws-lc code build. * Fix indentation. * Change syntax. * Remove quilt from buildspec_ubuntu.yml. * Build aws-lc with ninja. * Move awslc code build to omnibus.
- Loading branch information
1 parent
9746e6c
commit 536c77e
Showing
9 changed files
with
127 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"). | ||
# You may not use this file except in compliance with the License. | ||
# A copy of the License is located at | ||
# | ||
# http://aws.amazon.com/apache2.0 | ||
# | ||
# or in the "license" file accompanying this file. This file is distributed | ||
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
# express or implied. See the License for the specific language governing | ||
# permissions and limitations under the License. | ||
|
||
set -ex | ||
pushd "$(pwd)" | ||
|
||
usage() { | ||
echo "install_awslc.sh build_dir install_dir" | ||
exit 1 | ||
} | ||
|
||
if [ "$#" -ne "2" ]; then | ||
usage | ||
fi | ||
|
||
BUILD_DIR=$1 | ||
INSTALL_DIR=$2 | ||
source codebuild/bin/jobs.sh | ||
|
||
cd "$BUILD_DIR" | ||
git clone https://github.com/awslabs/aws-lc.git | ||
mkdir build | ||
cd build | ||
|
||
cmake ../aws-lc -GNinja -DBUILD_SHARED_LIBS=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" | ||
ninja -j "${JOBS}" install | ||
|
||
popd | ||
|
||
exit 0 |
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
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use | ||
# this file except in compliance with the License. A copy of the License is | ||
# located at | ||
# | ||
# http://aws.amazon.com/apache2.0/ | ||
# | ||
# or in the "license" file accompanying this file. This file is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
# implied. See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
version: 0.2 | ||
|
||
env: | ||
variables: | ||
# CODEBUILD_ is a reserved namespace. | ||
CB_BIN_DIR: "./codebuild/bin" | ||
S2N_LIBCRYPTO: "awslc" | ||
TESTS: "integration" | ||
BUILD_S2N: true | ||
|
||
phases: | ||
install: | ||
runtime-versions: | ||
python: 3.7 | ||
commands: | ||
- echo Entered the install phase... | ||
- add-apt-repository ppa:ubuntu-toolchain-r/test -y | ||
# Add repo to get latest golang version. https://github.com/golang/go/wiki/Ubuntu | ||
- add-apt-repository ppa:longsleep/golang-backports | ||
- apt-get update -o Acquire::CompressionTypes::Order::=gz | ||
- apt-get update -y | ||
- apt-get install -y --no-install-recommends gcc g++ gcc-4.8 g++-4.8 gcc-6 g++-6 gcc-9 g++-9 | ||
# Don't install old clang and llvm if LATEST_CLANG is enabled, handle it in install_clang.sh instead | ||
- | | ||
if expr "${LATEST_CLANG}" != "true" >/dev/null; then | ||
apt-get install -y --no-install-recommends clang-3.9 llvm-3.9; | ||
fi | ||
- apt-get install -y --no-install-recommends indent kwstyle lcov libssl-dev m4 make net-tools nettle-bin nettle-dev pkg-config psmisc python3-pip shellcheck sudo tcpdump unzip valgrind zlib1g-dev zlibc cmake tox libtool ninja-build quilt golang-go | ||
pre_build: | ||
commands: | ||
- | | ||
if [ -d "third-party-src" ]; then | ||
cd third-party-src; | ||
fi | ||
- GCC_VERSION=6 $CB_BIN_DIR/install_default_dependencies.sh | ||
build: | ||
commands: | ||
- printenv | ||
- GCC_VERSION=4.8 $CB_BIN_DIR/s2n_codebuild.sh | ||
- GCC_VERSION=6 $CB_BIN_DIR/s2n_codebuild.sh | ||
- GCC_VERSION=9 $CB_BIN_DIR/s2n_codebuild.sh | ||
post_build: | ||
commands: | ||
- echo Build completed on `date` | ||
- echo Uploading CodeCov.io artifacts | ||
- $CB_BIN_DIR/s2n_after_codebuild.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
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