diff options
author | Jim MacArthur <jim.macarthur@codethink.co.uk> | 2015-05-28 16:34:41 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-06-12 10:38:34 +0000 |
commit | fbe3d1e8d5bc0844070b5cfb74e870eb45920cf7 (patch) | |
tree | d088f9a38bc719bff586671bb55ece33ff8239dd /strata/java/java-binary.morph | |
parent | 6c9cc189cc1470283a146d359bd817061cc5a747 (diff) | |
download | definitions-fbe3d1e8d5bc0844070b5cfb74e870eb45920cf7.tar.gz |
Add java-build stratum, contaniing things necessary to build OpenJDK
The use of the java-binary repo from Github goes against the policy we
have defined for the Baserock reference systems, of having everything
built from source code that is mirrored on git.baserock.org. However,
building a Java compiler from source code super difficult so we can't
really avoid this hack at present if we want to build other Java
components from source using Baserock tooling.
Change-Id: I9bc1892cbdbb3d3234b06d8a650b0c568254c0b5
Diffstat (limited to 'strata/java/java-binary.morph')
-rw-r--r-- | strata/java/java-binary.morph | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/strata/java/java-binary.morph b/strata/java/java-binary.morph new file mode 100644 index 00000000..c75f39b7 --- /dev/null +++ b/strata/java/java-binary.morph @@ -0,0 +1,16 @@ +name: java-binary +description: | + This is a temporary solution to the OpenJDK build problem. In the future + we expect to be able to build fully from scratch using IcedTea, but for now + we need an existing OpenJDK binary to build OpenJDK. +kind: chunk +configure-commands: [] +build-commands: +- cat j2sdk-image-jdk8build.tar.gz_* > jdk-8u20-linux-x64.tar.gz +install-commands: +- mkdir -p "$DESTDIR$PREFIX"/bin +- mkdir -p "$DESTDIR$PREFIX"/lib +- tar zxf jdk-8u20-linux-x64.tar.gz -C "$DESTDIR$PREFIX"/lib --no-same-owner +- ln -sfn "$PREFIX"/lib/j2sdk-image "$DESTDIR$PREFIX"/lib/java-8-openjdk +- ln -sfn "$PREFIX"/lib/j2sdk-image/jre/bin/java "$DESTDIR$PREFIX"/bin/ +- ln -sfn "$PREFIX"/lib/j2sdk-image/jre/bin/javac "$DESTDIR$PREFIX"/bin/ |