From c5e7de8b0c963d89e7979371d86bde233301bd05 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Thu, 28 Dec 2023 04:04:19 +0100 Subject: [PATCH] Enable headless mode on RISC-V (#4935) --- openjdk/openjdk.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openjdk/openjdk.mk b/openjdk/openjdk.mk index 1687bd0afe..3f75b82c20 100644 --- a/openjdk/openjdk.mk +++ b/openjdk/openjdk.mk @@ -16,6 +16,7 @@ NPROCS:=1 MEMORY_SIZE:=1024 OS:=$(shell uname -s) +ARCH:=$(shell uname -m) ifeq ($(OS),Linux) NPROCS:=$(shell grep -c ^processor /proc/cpuinfo) @@ -97,6 +98,11 @@ ifeq ($(libcVendor),musl) JTREG_KEY_OPTIONS := -k:'!headful' VMOPTION_HEADLESS := -Djava.awt.headless=true endif +# RISC-V is built in headless mode for now. See https://github.com/adoptium/ci-jenkins-pipelines/pull/867 +ifeq ($(ARCH),riscv64) + JTREG_KEY_OPTIONS := -k:'!headful' + VMOPTION_HEADLESS := -Djava.awt.headless=true +endif JTREG_BASIC_OPTIONS += $(JTREG_KEY_OPTIONS) # set JTREG_BASIC_OPTIONS value into a new parameter before adding EXTRA_JTREG_OPTIONS