How to build boringSSL with MIPS arch?

379 views Asked by At

I am trying to build the boringSSL at the master branch for my Android project. I need to build it to support MIPS and MIPS64 as well. However, the CMakeLists.txt file simply does not have definition for this arch, and I got an error when generating build script.

I made some simple update to unblock the build script:

elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "mips")
  set(ARCH "mips")
elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "mips64")
  set(ARCH "mips64")

The build works so far. But I think Google disable MIPS support for a reason. And I want to know what risks/problems I would ran into.

1

There are 1 answers

3
MasterID On BEST ANSWER

If you pay attention, ARCH is only used to add special flags for arm architecture on Android.

Just remove :

else()
message(FATAL_ERROR "Unknown processor:" ${CMAKE_SYSTEM_PROCESSOR})

and add double quotes around ${ARCH} usages like below:

"${ARCH}"