Feat: Adding Support for Android on RISC-V64 Develop#1333
Open
MaoHan001 wants to merge 3 commits intoTencent:developfrom
Open
Feat: Adding Support for Android on RISC-V64 Develop#1333MaoHan001 wants to merge 3 commits intoTencent:developfrom
MaoHan001 wants to merge 3 commits intoTencent:developfrom
Conversation
This change synchronizes RISC-V 64 support from the upstream project at: https://github.com/boostorg/context/tree/46effe4588a6edd64d49a853454b5f67f7196e57 which introduces assembly implementations for jump_fcontext and make_fcontext for RISC-V 64 target. The changes include saving and restoring floating-point and general-purpose registers, setting up the stack, and handling context switching.
This commit introduces RISC-V 64 architecture support by adding corresponding configuration file prebuilt static libraries libcrypto.a and libssl.a.
This commit updates build_android.py to support RISC-V architecture by adding riscv64 to the strip and STL file paths, and setting the appropriate API level (android-35) for RISC-V builds. The -Wno-deprecated-declarations and -Wno-deprecated-builtins options have been added to suppress warnings generated by newer versions of NDK.
Member
|
|
Author
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Recently, while supporting an Android product based on the RISC-V architecture, we utilized the Mars library and added the relevant compilation support (Google NDK has provided support for RISC-V starting from r27c).
This PR mainly includes three changes:
adding support for the Boost library on RISC-V
adding OpenSSL support on RISC-V
and introducing the compilation target.
The Develop branch appears to have a strong restriction on the NDK version, making it impossible to build based on the r27 version.
The master branch code has been successfully verified for compilation with:
#1332