Skip to content

Commit 0a585c4

Browse files
sxaStewart X Addison
andauthored
unixPB: Add non-Temurin jdk25 build for arm32 as trestle boot JDK (#4159)
Signed-off-by: Stewart X Addison <[email protected]> Co-authored-by: Stewart X Addison <[email protected]>
1 parent 7a8bab1 commit 0a585c4

File tree

1 file changed

+48
-0
lines changed
  • ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/tasks

1 file changed

+48
-0
lines changed

ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/tasks/Ubuntu.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,54 @@
166166
- ansible_architecture == "armv7l"
167167
tags: default_java
168168

169+
- name: Check if JDK25/arm32 is already installed in the target location
170+
stat: path=/usr/lib/jvm/jdk25/bin/java
171+
register: jdk25_installed
172+
when:
173+
- ansible_architecture == "armv7l"
174+
tags: build_tools
175+
176+
- name: Download JDK25/arm32 build
177+
get_url:
178+
url: https://ci.adoptium.net/userContent/arm32/OpenJDK25U.arm32_linux.25+36.tar.gz
179+
dest: /tmp/OpenJDK25U.arm32_linux.25+36.tar.gz
180+
force: no
181+
mode: 0755
182+
checksum: sha256:de160d44d5dbcb37c47cc1bd983e21fcb5dedd5ae16be21048e9a5c80f114502
183+
when:
184+
- ansible_architecture == "armv7l"
185+
- not jdk25_installed.stat.exists
186+
tags: build_tools
187+
188+
- name: Decompress jdk25/arm32
189+
unarchive:
190+
src: /tmp/OpenJDK25U.arm32_linux.25+36.tar.gz
191+
dest: /usr/lib/jvm
192+
remote_src: yes
193+
when:
194+
- ansible_architecture == "armv7l"
195+
- not jdk25_installed.stat.exists
196+
tags: build_tools
197+
198+
- name: Remove jdk25/arm32 tarball
199+
file:
200+
path: /tmp/OpenJDK25U.arm32_linux.25+36.tar.gz
201+
state: absent
202+
when:
203+
- ansible_architecture == "armv7l"
204+
- not jdk25_installed.stat.exists
205+
tags: build_tools
206+
207+
- name: Create jdk25 symlink on arm32
208+
file:
209+
src: /usr/lib/jvm/jdk-25+36
210+
dest: /usr/lib/jvm/jdk25
211+
state: link
212+
when:
213+
- ansible_architecture == "armv7l"
214+
- not jdk25_installed.stat.exists
215+
tags: adoptopenjdk_install
216+
169217
- name: Set default java version for ppc64le
170218
alternatives:
171219
name: java

0 commit comments

Comments
 (0)