Script used to build openjdk based icedtea7 2.3 from hg repo
Chris Phillips
ChrisPhi at redhat.com
Tue Jul 30 10:18:23 PDT 2013
Hi
The attached script builds the Icedtea7 2.3 openjdk based arm32 asm jit
from
the mercurial repositories:
http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3
For Ed ...
Chris
-------------- next part --------------
#! /bin/ksh -xv
echo "$0" "$@"
export LC_ALL=C
export LANG=C
#export JAVA_HOME=${JAVA_HOME:-/local/bin/jdk1.7.0/}
export JAVA_HOME=${JAVA_HOME:-/usr/lib/jvm/java-1.7.0}
export PATH="${JAVA_HOME}/bin/:${PATH}"
export STATIC_CXX=false
export SHELL=/bin/ksh
export ALT_JDK_IMPORT_PATH=${JAVA_HOME}
export ALT_BOOTDIR=${JAVA_HOME}
export DISABLE_NIMBUS=true
export ALLOW_DOWNLOADS=true
#export LP64=1 build64=true
#export HOTSPOT_BUILD_JOBS=${HOTSPOT_BUILD_JOBS:-2}
#export ANT_HOME=/local/openjdk/ant/apache-ant-1.8.4
#export PATH="/local/openjdk/ant:${JAVA_HOME}/bin:${PATH}"
export PATH="${JAVA_HOME}/bin:${PATH}"
#
export ALT_FREETYPE_HEADERS_PATH=/usr/include/freetype2
export ALT_FREETYPE_LIB_PATH=/usr/lib
export FT2_LIBS=-lfreetype
export FT2_CFLAGS=-I/usr/include/freetype2
export ZLIB_CFLAGS=-I/usr/include
export ZLIB_LIBS=-lz
export JPEG_LIBS=-ljpeg
#zero
export JVM_VARIANT_ZERO=true
export ZERO_BUILD=true
export ZERO_LIBARCH=arm
export ZERO_ENDIANNESS=little
export ZERO_ARCHDEF=ARM
#export ZERO_ARCHFLAG=-m64
#export LIBFFI_CFLAGS=$(env PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ pkg-config --cflags libffi)
#export LIBFFI_LIBS=$(env PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ pkg-config --libs libffi)
export ZERO_ARCHFLAG=-D_LITTLE_ENDIAN
export LIBFFI_CFLAGS=$(pkg-config --cflags libffi)
export LIBFFI_LIBS=$(pkg-config --libs libffi)
# Export variables needed for all builds
export ARCH_DATA_MODEL=32
export DEBUG_BINARIES=true
export ZIP_DEBUGINFO_FILES=0
export SHARK_BUILD=false
###zero
#JR
##export NO_DOCS=true
##export NO_DEMOS=true
##export NO_SAMPLES=true
export HOTSPOT_BUILD_JOBS=2
##export BUILD_LANGTOOLS=true
##export BUILD_HOTSPOT=true
##export BUILD_JDK=true
##export BUILD_CORBA=false
##export BUILD_DEPLOY=false
##export BUILD_INSTALL=false
##export BUILD_JAXP=false
##export BUILD_JAXWS=false
##export BUILD_SPONSORS=false
$BUILD_HOTSPOT && [ -d build ] && {
HOTSPOT_DIRS=$(find build -name hotspot -type d -prune -print)
${KEEP_HOTSPOT_HEADERS:-false} ||
[ "$HOTSPOT_DIRS" = "" ] ||
rm -f $(find $HOTSPOT_DIRS -name \*.gch)
${BUILD_HOTSPOT_CLEAN:-false} &&
rm -f $(find $HOTSPOT_DIRS -name \*.o)
}
###JR
export OPENJDK=true
#
#if [ -d hotspot ]; then
#. jdk/make/jdk_generic_profile.sh
. jdk/make/jdk_generic_profile.sh
#cd hotspot/make
#else
#assuming we are in hotspot directory.
#cd make
#fi
env
java -version
make $@
More information about the distro-pkg-dev
mailing list