Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support all architect #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions build-all-arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ mkdir prebuilt
curl -O "https://www.openssl.org/source/${OPENSSL_VERSION}.tar.gz"
tar xfz "${OPENSSL_VERSION}.tar.gz"

archs=(armeabi-v7a x86)
archs=(armeabi-v7a arm64-v8a x86)

for arch in ${archs[@]}; do
xLIB="/lib"
Expand All @@ -26,18 +26,18 @@ for arch in ${archs[@]}; do
_ANDROID_ARCH=arch-arm64
_ANDROID_EABI=aarch64-linux-android-4.9
#no xLIB="/lib64"
configure_platform="linux-generic64 -DB_ENDIAN" ;;
configure_platform="linux-generic64" ;;
"mips")
_ANDROID_TARGET_SELECT=arch-mips
_ANDROID_ARCH=arch-mips
_ANDROID_EABI=mipsel-linux-android-4.9
configure_platform="android -DB_ENDIAN" ;;
configure_platform="android" ;;
"mips64")
_ANDROID_TARGET_SELECT=arch-mips64
_ANDROID_ARCH=arch-mips64
_ANDROID_EABI=mips64el-linux-android-4.9
xLIB="/lib64"
configure_platform="linux-generic64 -DB_ENDIAN" ;;
configure_platform="linux-generic64" ;;
"x86")
_ANDROID_TARGET_SELECT=arch-x86
_ANDROID_ARCH=arch-x86
Expand Down
5 changes: 3 additions & 2 deletions setenv-android-mod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,9 @@ export ARCH=arm
export CROSS_COMPILE="arm-linux-androideabi-"

if [ "$_ANDROID_TARGET_SELECT" == "arch-arm64-v8a" ]; then
export MACHINE=armv7
export ARCH=arm64
export MACHINE=armv8
export SYSTEM=android64
export ARCH=arm
export CROSS_COMPILE="aarch64-linux-android-"
fi

Expand Down