afu8u/cross_compile

22 lines
854 B
Bash
Executable File

#!/bin/bash
level=${1?usage: $0 release/slowdebug images-jdk}
dest=${2?usage: $0 release/slowdebug images-jdk}
#level=release
#dest=images-jdk-release
#level=slowdebug
#dest=images-jdk
variant=custom
remote_ip=172.16.130.191
#remote_ip=172.16.12.167
#make LOG="debug" CONF=linux-sw64-normal-$variant-$level jdk &&\
make LOG="debug" CONF=linux-sw64-normal-$variant-$level-cross hotspot && \
echo -e "\n\n>>>>>build success<<<<<\n\n" &&\
cp build/linux-sw64-normal-$variant-$level-cross/hotspot/dist/jre/lib/sw64/server/libjvm.so $dest/jre/lib/sw64/server/ && \
cp build/linux-sw64-normal-$variant-$level-cross/hotspot/dist/jre/lib/sw64/server/libjvm.debuginfo $dest/jre/lib/sw64/server/ && \
echo -e "\n\n>>>>>copy success<<<<<\n\n" && \
ping -c 1 -W 1 $remote_ip && \
ssh lsp@$remote_ip "$(pwd)/$dest/bin/java -XX:+PrintCompilation -Xcomp -version"