This directory contains patch files for rust-openssl
for it to build successfully with --features=unstable_boringssl
.
After running prepare-rust-openssl
, the rust-openssl
git repo is cloned to beto-rust/boringssl-build/rust-openssl/openssl
, and the patches in this directory will be applied.
If you make further changes, or update the “base commit” in prepare-rust-openssl
, you can regenerate the patch files by following these steps:
cargo run -- prepare-rust-openssl
cd boringssl-build/rust-openssl/
and make the necessary changesgit format-patch BASE_COMMIT
. (Note: BASE_COMMIT
is set by prepare-rust-openssl
)nearby/scripts/openssl-patches
.In the “make the necessary changes” part in Step 2 above, follow these steps:
cd
into the openssl directory since the AOSP project starts at that root:$ cd openssl
BASE_COMMIT
to ensure the AOSP patches apply cleanly.$ git co BASE_COMMIT $ git co -b create-patch
for i in /path/to/android/external/rust/crates/openssl/patches/*; do patch -p1 < $i; done
.orig
). Commit the changes.scripts/openssl-patches
but not in AOSP are lost in this process. Reapply the appropriate ones at this point, using git apply
or git am
.git format-patch
described in step 4 in the previous section.