Skip to content

Commit 2abc815

Browse files
committed
Add build instructions
1 parent d6d4e9d commit 2abc815

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,27 @@
11
# openjdk-9-ev3
22
A custom Build of OpenJDK 9 Sources for EV3, a Lego Mindstorms Brick using ARM Soft Float
3+
4+
## Building
5+
6+
1. Install [Docker](https://docs.docker.com/engine/installation/) for your operating system.
7+
2. Build the jdk9 cross-compilation environment:
8+
```sh
9+
cd build
10+
sudo docker build -t jdk9cross .
11+
```
12+
3. Run the newly prepared container. We recommend mounting a host directory to the the `/build` directory in the container. At least 2 GB of free space will be needed.
13+
```
14+
sudo docker run -it -v <path on host, where the sources should be stored>:/build jdk9cross
15+
```
16+
4. Let's fetch the OpenJDK sources:
17+
```
18+
./fetch.sh
19+
```
20+
5. The OpenJDK source tree should be ready. Now you can start the cross-build itself:
21+
```
22+
./build.sh
23+
```
24+
6. If the build has successfully finished, JDK9 images are created in
25+
`/build/jdk9u/build/linux-arm-normal-client-release/images`.
26+
If you have mounted something to `/build`, you can also use
27+
`<path on host, where the sources should be stored>/jdk9u/build/linux-arm-normal-client-release/images`.

0 commit comments

Comments
 (0)