aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/README.JEP161.txt7
-rw-r--r--doc/README.Jigsaw.txt10
-rw-r--r--scripts/export.jep161-openjdk8.sh46
-rw-r--r--scripts/make.jep161-openjdk8.sh13
4 files changed, 75 insertions, 1 deletions
diff --git a/doc/README.JEP161.txt b/doc/README.JEP161.txt
index acedddc..187e9a6 100644
--- a/doc/README.JEP161.txt
+++ b/doc/README.JEP161.txt
@@ -14,5 +14,10 @@ sh ./get_source.sh
./jdk8/README-builds.html
http://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html
-sh configure && make all
+sh configure --enable-openjdk-only \
+ --with-import-hotspot=/somewhere/jdk8/build/linux-x86_64-normal-server-release/hotspot \
+ --disable-zip-debug-info --disable-debug-symbols \
+ --with-debug-level=release \
+sh configure
+make profiles images docs
# make test TEST=jdk_jigsaw
diff --git a/doc/README.Jigsaw.txt b/doc/README.Jigsaw.txt
index ac11672..a5cc44d 100644
--- a/doc/README.Jigsaw.txt
+++ b/doc/README.Jigsaw.txt
@@ -12,3 +12,13 @@ sh configure && make all
make test TEST=jdk_jigsaw
-> ./jdk/make/modules/modules.config
+
+
+++
+
+jigsaw/build/linux-x86_64-normal-server-release/images>
+ for i in `find . -name classes -a -type f` ; do unzip -l $i | grep Canvas && echo $i ; done | less
+
+AWT: ./jre-module-image/lib/modules/jdk.desktop/8-ea/classes ./jdk-module-image/lib/modules/jdk.desktop/8-ea/classes
+
++++
diff --git a/scripts/export.jep161-openjdk8.sh b/scripts/export.jep161-openjdk8.sh
new file mode 100644
index 0000000..1cfab2d
--- /dev/null
+++ b/scripts/export.jep161-openjdk8.sh
@@ -0,0 +1,46 @@
+#! /bin/sh
+
+image_dir=$1
+export_dir=$2
+strip_tool=$3
+
+if [ -z "$image_dir" -o -z "$export_dir" ] ; then
+ echo "Usage: $0 <image_dir> <export_dir> [<strip_tool>]"
+ exit 0
+fi
+
+if [ -z "$strip_tool" ] ; then
+ strip_tool=`which strip`
+fi
+
+logfile=`basename $0 .sh`.log
+
+this_dir=`pwd`
+
+export_single() {
+ comp=$1
+ cp -a $image_dir/$comp $export_dir/
+ cd $export_dir/$comp
+ for i in `find . -type f -a \( -name \*.so -o -name \*.dll -o -name \*.jnilib \)` ; do
+ $strip_tool $i
+ done
+ for i in bin/* ; do
+ $strip_tool $i
+ done
+ cd $this_dir
+ echo "DU image $image_dir/$comp"
+ du -hs $image_dir/$comp
+ echo "DU export $export_dir/$comp"
+ du -hs $export_dir/$comp
+}
+
+export_it() {
+ mkdir -p $export_dir
+ export_single j2re-compact1-image
+ export_single j2re-compact2-image
+ export_single j2re-compact3-image
+ export_single j2re-image
+}
+
+export_it 2>&1 | tee -a $logfile
+
diff --git a/scripts/make.jep161-openjdk8.sh b/scripts/make.jep161-openjdk8.sh
new file mode 100644
index 0000000..85f5da0
--- /dev/null
+++ b/scripts/make.jep161-openjdk8.sh
@@ -0,0 +1,13 @@
+#! /bin/sh
+
+logfile=`basename $0 .sh`.log
+
+build_it() {
+ sh configure --enable-openjdk-only \
+ --disable-zip-debug-info --disable-debug-symbols \
+ --with-debug-level=release \
+ && make profiles images docs
+}
+
+build_it 2>&1 | tee -a $logfile
+