make/RunTestsPrebuiltSpec.gmk
author ihse
Mon, 27 Nov 2017 14:15:35 +0100
branchihse-testmakefiles-branch
changeset 55884 9ee155c19c6a
parent 55881 dbf68259f80e
child 55886 ff90766e3c60
permissions -rw-r--r--
Getting run-test-prebuilt to work quite well.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
55881
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
     1
#
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
     2
# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
     4
#
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    10
#
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    15
# accompanied this code).
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    16
#
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    20
#
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    23
# questions.
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    24
#
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    25
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    26
# Fake minimalistic spec file for RunTestsPrebuilt.gmk.
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    27
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    28
define VerifyVariable
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    29
  ifeq ($$($1), )
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    30
    $$(info Error: Variable $1 is missing, needed for run-tests-prebuilt)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    31
    $$(error Cannot continue.)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    32
  else
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    33
    ifneq ($$(findstring $$(LOG_LEVEL), debug trace), )
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    34
      $$(info Prebuilt variable $1=$$($1))
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    35
    endif
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    36
  endif
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    37
endef
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    38
55884
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
    39
# It is the responsibility of the file including us to have set these up.
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
    40
# Verify that this is correct.
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
    41
$(eval $(call VerifyVariable,SPEC))
55881
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    42
$(eval $(call VerifyVariable,TOPDIR))
55884
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
    43
$(eval $(call VerifyVariable,OUTPUTDIR))
55881
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    44
$(eval $(call VerifyVariable,BOOT_JDK))
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    45
$(eval $(call VerifyVariable,JT_HOME))
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    46
$(eval $(call VerifyVariable,TONGA_JAR))
55884
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
    47
$(eval $(call VerifyVariable,JDK_IMAGE_DIR))
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
    48
$(eval $(call VerifyVariable,TEST_IMAGE_DIR))
55881
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    49
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    50
# FIXMEs
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    51
55884
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
    52
#CUSTOM_ROOT := $(shell cd $(TOPDIR)/.. && pwd)
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
    53
#$(info CUSTOM_ROOT is $(CUSTOM_ROOT))
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
    54
#CLOSED_TOPDIR := $(CUSTOM_ROOT)/closed
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
    55
55881
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    56
# verify that we have:
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    57
# MAKE
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    58
# BASH
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    59
55884
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
    60
# FIXME
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
    61
export BASH := bash
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
    62
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
    63
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
    64
55881
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    65
#SPEC :=
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    66
FIXPATH :=
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    67
CYGPATH := cygpath
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    68
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    69
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    70
###FIXME
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    71
# colon or semicolon
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    72
PATH_SEP:=:
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    73
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    74
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    75
LOG_LEVEL=info
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    76
#LOG_LEVEL=$(LOG_LEVEL)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    77
#MAKE_LOG_FLAGS=$(MAKE_LOG_FLAGS)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    78
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    79
# The built jdk will run in this target system.
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    80
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    81
OPENJDK_TARGET_OS:=linux
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    82
OPENJDK_TARGET_OS_TYPE:=unix
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    83
OPENJDK_TARGET_OS_ENV:=linux
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    84
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    85
OPENJDK_TARGET_CPU:=x86_64
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    86
OPENJDK_TARGET_CPU_ARCH:=x86
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    87
OPENJDK_TARGET_CPU_BITS:=64
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    88
OPENJDK_TARGET_CPU_ENDIAN:=little
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    89
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    90
#DEBUG_LEVEL:=@DEBUG_LEVEL@
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    91
#HOTSPOT_DEBUG_LEVEL:=@HOTSPOT_DEBUG_LEVEL@
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    92
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    93
#BUILD_GTEST := @BUILD_GTEST@
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    94
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    95
### FIXME
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    96
BUILD_FAILURE_HANDLER := true
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    97
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    98
### FIXME
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
    99
# Information about the build system
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   100
NUM_CORES:=16
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   101
MEMORY_SIZE:=28130
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   102
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   103
## FIXME
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   104
# Number of parallel jobs to use for compilation
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   105
JOBS?=16
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   106
TEST_JOBS?=0
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   107
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   108
#### custom
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   109
TONGA_JAR := @TONGA_JAR@
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   110
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   111
################################################################################
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   112
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   113
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   114
# SPACE and COMMA are defined in MakeBase.gmk, but they are also used in
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   115
# some definitions here, and are needed if MakeBase.gmk is not included before
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   116
# this file.
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   117
X:=
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   118
SPACE:=$(X) $(X)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   119
COMMA:=,
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   120
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   121
# The default make arguments
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   122
MAKE_ARGS = $(MAKE_LOG_FLAGS) -r -R -I $(TOPDIR)/make/common SPEC=$(SPEC) \
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   123
    MAKE_LOG_FLAGS="$(MAKE_LOG_FLAGS)" LOG_LEVEL=$(LOG_LEVEL)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   124
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   125
# Override the shell with bash
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   126
BASH_ARGS := -o pipefail -e
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   127
SHELL:=$(BASH) $(BASH_ARGS)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   128
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   129
# The "human readable" name of this configuration
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   130
CONF_NAME := run-test-prebuilt
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   131
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   132
# Assume target platform is same as build platform
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   133
OPENJDK_TARGET_OS := $(OPENJDK_BUILD_OS)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   134
OPENJDK_TARGET_OS_TYPE := $(OPENJDK_BUILD_OS_TYPE)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   135
OPENJDK_TARGET_OS_ENV := $(OPENJDK_BUILD_OS_ENV)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   136
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   137
OPENJDK_TARGET_CPU := $(OPENJDK_BUILD_CPU)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   138
OPENJDK_TARGET_CPU_ARCH := $(OPENJDK_BUILD_CPU_ARCH)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   139
OPENJDK_TARGET_CPU_BITS := $(OPENJDK_BUILD_CPU_BITS)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   140
OPENJDK_TARGET_CPU_ENDIAN := $(OPENJDK_BUILD_CPU_ENDIAN)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   141
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   142
# FIXME: Can we remove this?
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   143
HOTSPOT_TOPDIR:=$(TOPDIR)/hotspot
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   144
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   145
SUPPORT_OUTPUTDIR := $(OUTPUT_ROOT)/support
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   146
BUILDTOOLS_OUTPUTDIR := $(OUTPUT_ROOT)/buildtools
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   147
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   148
HOTSPOT_OUTPUTDIR := $(OUTPUT_ROOT)/hotspot
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   149
JDK_OUTPUTDIR := $(OUTPUT_ROOT)/jdk
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   150
IMAGES_OUTPUTDIR := $(OUTPUT_ROOT)/images
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   151
BUNDLES_OUTPUTDIR := $(OUTPUT_ROOT)/bundles
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   152
TESTMAKE_OUTPUTDIR := $(OUTPUT_ROOT)/test-make
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   153
MAKESUPPORT_OUTPUTDIR := $(OUTPUT_ROOT)/make-support
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   154
BUILDJDK_OUTPUTDIR := $(OUTPUT_ROOT)/buildjdk
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   155
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   156
### FIXME?
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   157
#JAVA_FLAGS:= -Duser.language=en -Duser.country=US
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   158
#JAVA_FLAGS_BIG:= -Xms64M -Xmx1600M -XX:ThreadStackSize=1536
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   159
#JAVA_FLAGS_SMALL:= -XX:+UseSerialGC -Xms32M -Xmx512M -XX:TieredStopAtLevel=1
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   160
#JAVA_FLAGS_JAVAC:= -XX:+UseSerialGC -Xms32M -Xmx512M -XX:TieredStopAtLevel=1
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   161
#JAVA_TOOL_FLAGS_SMALL:= -J-XX:+UseSerialGC -J-Xms32M -J-Xmx512M -J-XX:TieredStopAtLevel=1
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   162
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   163
JAVA_CMD:=$(BOOT_JDK)/bin/java
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   164
JAVAC_CMD:=$(BOOT_JDK)/bin/javac
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   165
JAVAH_CMD:=$(BOOT_JDK)/bin/javah
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   166
JAR_CMD:=$(BOOT_JDK)/bin/jar
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   167
JLINK_CMD := $(JDK_OUTPUTDIR)/bin/jlink
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   168
JMOD_CMD := $(JDK_OUTPUTDIR)/bin/jmod
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   169
JARSIGNER_CMD:=$(BOOT_JDK)/bin/jarsigner
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   170
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   171
# These variables are meant to be used. They are defined with = instead of := to make
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   172
# it possible to override only the *_CMD variables.
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   173
JAVA=$(FIXPATH) $(JAVA_CMD) $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   174
JAVA_SMALL=$(FIXPATH) $(JAVA_CMD) $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   175
JAVA_JAVAC=$(FIXPATH) $(JAVA_CMD) $(JAVA_FLAGS_JAVAC) $(JAVA_FLAGS)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   176
JAVAC=$(FIXPATH) $(JAVAC_CMD)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   177
JAVAH=$(FIXPATH) $(JAVAH_CMD)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   178
JAR=$(FIXPATH) $(JAR_CMD)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   179
JLINK = $(FIXPATH) $(JLINK_CMD) $(JAVA_TOOL_FLAGS_SMALL)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   180
JMOD = $(FIXPATH) $(JMOD_CMD) $(JAVA_TOOL_FLAGS_SMALL)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   181
JARSIGNER=$(FIXPATH) $(JARSIGNER_CMD)
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   182
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   183
# Tools adhering to a minimal and common standard of posix compliance.
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   184
AWK := awk
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   185
BASENAME := basename
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   186
CAT := cat
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   187
CD := cd
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   188
CHMOD := chmod
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   189
CP := cp
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   190
CUT := cut
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   191
DATE := date
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   192
DIFF := diff
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   193
DIRNAME := dirname
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   194
FIND := find
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   195
FIND_DELETE := -delete
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   196
ECHO := echo
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   197
EGREP := grep -E
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   198
FGREP := grep -F
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   199
GREP := grep
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   200
GZIP := gzip
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   201
HEAD := head
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   202
LS := ls
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   203
LN := ln
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   204
MKDIR := mkdir
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   205
MV := mv
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   206
NAWK := nawk
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   207
NICE := nice
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   208
PATCH := patch
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   209
PRINTF := printf
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   210
RM := rm -f
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   211
RMDIR := rmdir
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   212
SED := sed
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   213
SH := sh
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   214
SORT := sort
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   215
TAR := tar
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   216
TAIL := tail
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   217
TEE := tee
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   218
TR := tr
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   219
TOUCH := touch
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   220
UNIQ := uniq
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   221
WC := wc
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   222
XARGS := xargs
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   223
ZIPEXE := zip
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   224
UNZIP := unzip
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   225
EXPR := expr
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   226
FILE := file
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   227
HG := hg
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   228
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   229
####################################################
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   230
#
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   231
# Misc
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   232
#
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   233
dbf68259f80e Populate with latest code from jdk9 sandbox.
ihse
parents:
diff changeset
   234
JRE_IMAGE_DIR := $(JDK_IMAGE_DIR)
55884
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
   235
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
   236
# This macro is called to allow inclusion of closed source counterparts.
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
   237
# If running without closed sources, it expands to nothing.
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
   238
# Usage: This function is called in an open makefile, with the following
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
   239
# argument:
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
   240
# $1 the name of the makefile
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
   241
define IncludeCustomExtension
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
   242
  custom_include_file := $$(CLOSED_TOPDIR)/make/$(strip $1)
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
   243
  ifneq ($$(wildcard $$(custom_include_file)), )
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
   244
    include $$(custom_include_file)
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
   245
  endif
9ee155c19c6a Getting run-test-prebuilt to work quite well.
ihse
parents: 55881
diff changeset
   246
endef