File tree Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 11FROM debian:jessie
22
3+ # this is a customized version of ev3dev-jessie-cross image
4+
35# setup repositories and install required packages
46COPY apt.sources.list.debian /etc/apt/sources.list
57RUN dpkg --add-architecture armel && \
@@ -48,14 +50,18 @@ RUN dpkg --add-architecture armel && \
4850 autotools-dev
4951
5052
51- # copy build patches
53+ # copy build patches & scripts
5254RUN mkdir /opt/jdkcross
5355COPY *.patch *.sh /opt/jdkcross/
5456RUN chmod +x /opt/jdkcross/*.sh
57+
58+ # download JDK >=8
5559RUN curl -SL http://download.java.net/java/GA/jdk9/9.0.1/binaries/openjdk-9.0.1_linux-x64_bin.tar.gz | tar -xzC /opt/jdkcross
5660
61+ # this directory should be mounted
5762VOLUME /build
5863
64+ # prepare nonroot user
5965COPY compiler.sudoers /etc/sudoers.d/compiler
6066RUN chmod 0440 /etc/sudoers.d/compiler && \
6167 adduser --disabled-password --gecos \"\" compiler && \
Original file line number Diff line number Diff line change 11#! /bin/bash
22cd /build/jdk9u
3+
4+ # refresh patched build system
35bash ./common/autoconf/autogen.sh
6+
7+ # configure the build
48bash ./configure --with-boot-jdk=/opt/jdkcross/jdk-9.0.1 \
59 --openjdk-target=arm-linux-gnueabi \
610 --with-abi-profile=arm-ev3 \
@@ -14,4 +18,24 @@ bash ./configure --with-boot-jdk=/opt/jdkcross/jdk-9.0.1 \
1418 NM=" arm-linux-gnueabi-gcc-nm" \
1519 BUILD_AR=" gcc-ar" \
1620 BUILD_NM=" gcc-nm"
21+
22+ # # Description ##
23+ # Use the downloaded JDK: --with-boot-jdk=/opt/jdkcross/jdk-9.0.1
24+ # Cross-compiling for ARM: --openjdk-target=arm-linux-gnueabi
25+ # Tune for ARM926EJ-S softfp: --with-abi-profile=arm-ev3
26+ # Disable GUI: --enable-headless-only
27+ # Help to find freetype: --with-freetype-lib=/usr/lib/arm-linux-gnueabi
28+ # --with-freetype-include=/usr/include
29+ # Build only the Client VM: --with-jvm-variants=client
30+ # Add extra build flags: --with-extra-cflags="-Wno-maybe-uninitialized -D__SOFTFP__"
31+ # - Fix the build on new GCC: -Wno-maybe-uninitialized
32+ # - Force softfloat runtime: -D__SOFTFP__
33+ # Fix the "internal" string: --with-version-string="9.0.1"
34+ # Fix for GCC and LTO objects: AR="arm-linux-gnueabi-gcc-ar"
35+ # NM="arm-linux-gnueabi-gcc-nm"
36+ # BUILD_AR="gcc-ar"
37+ # BUILD_NM="gcc-nm"
38+
39+
40+ # start building
1741make clean images
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2+
3+ # clone the root project
24cd /build
35hg clone http://hg.openjdk.java.net/jdk-updates/jdk9u/
46cd jdk9u
7+
8+ # clone the rest of the tree
59bash ./get_source.sh
10+
11+ # apply the EV3-specific patches
612patch -p1 < /opt/jdkcross/ev3.patch
713patch -p1 -d hotspot < /opt/jdkcross/float.patch
814
You can’t perform that action at this time.
0 commit comments