-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch with a prebuilt bindgen file to unblock development of crypto p…
…rovider implementations. Will remove this patch once BUILD files are checked into boringssl repo. Bug: b/354710816 Change-Id: Iba14ecda19ccc1f754766035e16a47470be9e75f
- Loading branch information
Alex Orozco
committed
Aug 7, 2024
1 parent
e873d98
commit 743f142
Showing
4 changed files
with
30,852 additions
and
104 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
69 changes: 0 additions & 69 deletions
69
third_party/boringssl/0001-add-bazel-rules-to-build-bssl-crypto.patch
This file was deleted.
Oops, something went wrong.
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,32 @@ | ||
# Steps to reproduce boringssl.patch | ||
|
||
## bindgen.rs | ||
|
||
Make sure you have the dependencies needed to build | ||
[bssl-sys](https://boringssl.googlesource.com/boringssl/+/refs/heads/master/rust/bssl-sys/README.md) | ||
|
||
```shell | ||
sudo apt install bindgen | ||
sudo apt install cmake | ||
sudo apt install ninja-build | ||
cargo install cargo-deny | ||
``` | ||
|
||
Download boringssl repo and build bssl-sys | ||
|
||
```shell | ||
git clone https://boringssl.googlesource.com/boringssl | ||
cd boringssl | ||
cmake -GNinja -B build -DRUST_BINDINGS=x86_64-unknown-linux-gnu | ||
ninja -C build | ||
``` | ||
|
||
This will generate the bindgen.rs file seen in the boringssl.patch file | ||
|
||
## rest of files | ||
|
||
The rest of the files (3) can just be manually created(bssl-crypto/BUILD, bssl-sys/BUILD) and edited(bssl-sys/src/lib.rs) | ||
|
||
The BUILD files will not change (neither will the lib.rs file). The bindgen.rs file may need to be re-generated if the | ||
boringssl commit in WORKSPACE is updated (ideally we will have upstreamed this patch to boringssl before then | ||
[b/354710816](b/354710816)). |
Oops, something went wrong.