commit | d9e1507e7e379803777a986a19bed00331012686 | [log] [tgz] |
---|---|---|
author | Yecheng Zhao <zyecheng@google.com> | Tue Mar 16 09:28:16 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Mar 16 23:58:39 2021 +0000 |
tree | 97b151a9e2f5ac801dbae7b1c7b9d4b89e738b9d | |
parent | b73d60c5ccc1632977db7a88e408c95197c361d3 [diff] |
[ssl] Add boringssl build script. Add a build script for building boringssl library. The script currently defines a library target suitable for baremetal use. generate_build_files.py is a python script for generating files needed for gn build. The script is used by a number of other google projects that build boringssl. It generates the following files: BUILD.generated.gni -- A .gni file that defines lists of source files for building crypto library, ssl library, tool and fuzzer etc. BUILD.generated_tests.gni -- Lists of source files for test. crypto_test_data.cc err_data.c -- error string table. The high level build script BUILD.gn is added by this CL. The baremetal target excludes all source files that require file system and socket support. But some source files still try to include <sys/socket.h>. Thus, a baremetal_sysdeps folder is added to fake an empty socket header to avoid compilation error. boringssl_utils.cc implements a logic for loading certificate/crls from buffer, as upstream boringssl only supports loading from files which may not be viable on embeded platform. Change-Id: I49bf2a645b4e5a86c15d1c74a48fe5b5d251baa8 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/experimental/+/38080 Commit-Queue: Yecheng Zhao <zyecheng@google.com> Reviewed-by: Ali Zhang <alizhang@google.com> Reviewed-by: Varun Sharma <vars@google.com>
This repository contains experimental pigweed modules.
Clone this repo with --recursive
to get all required submodules.
git clone --recursive https://pigweed.googlesource.com/pigweed/experimental
This will pull the Pigweed source repository into third_party/pigweed
. If you already cloned but forgot to --recursive
run git submodule update --init
to pull all submodules.