[aarch32] build as client variant

This commit is contained in:
Duy Tran Khanh 2021-01-23 06:05:58 +07:00
parent 7bee14ea91
commit 00cd21c744
2 changed files with 11 additions and 1 deletions

View File

@ -47,6 +47,7 @@ Based on http://openjdk.java.net/projects/mobile/android.html
```
export BUILD_FREETYPE_VERSION=[2.6.2/.../2.10.0] # default: 2.10.0
export JDK_DEBUG_LEVEL=[release/fastdebug/debug] # default: release
export JDK_VARIANT=[client/server] # default: client (aarch32), server (other architectures)
./extractndk.sh
./getlibs.sh
./maketoolchain.sh

View File

@ -5,6 +5,15 @@ set -e
if [ "$TARGET_JDK" == "arm" ]
then
export TARGET_JDK=aarch32
if [ -z "$JDK_VARIANT"]
then
export JDK_VARIANT=client
fi
else
if [ -z "$JDK_VARIANT"]
then
export JDK_VARIANT=server
fi
fi
sudo apt -y install systemtap-sdt-dev gcc-multilib g++-multilib libxtst-dev libasound2-dev libelf-dev libfontconfig1-dev libx11-dev
@ -42,7 +51,7 @@ bash ./configure \
--with-extra-ldflags="$LDFLAGS" \
--enable-option-checking=fatal \
--openjdk-target=$TARGET \
--with-jdk-variant=normal \
--with-jdk-variant=$JDK_VARIANT \
--with-cups-include=$CUPS_DIR \
--with-devkit=$TOOLCHAIN \
--with-debug-level=$JDK_DEBUG_LEVEL \