The provided CMakeFile only work with https://salsa.debian.org/android-tools-team/android-platform-external-boringssl/-/tree/upstream/8.1.0+r23/ You may checkout to commint 546b90d24aa5d9d8ff029a397193d21d5ddffd97 before compile. Here is a pre-compiled library on M2. [libcrypto.a.zip](https://github.com/user-attachments/files/25274320/libcrypto.a.zip)