make/TestImage.gmk
author dholmes
Thu, 14 Nov 2019 22:36:40 -0500
changeset 59105 76ae9aa0e794
parent 58908 73bb9c4002cc
permissions -rw-r--r--
8233549: Thread interrupted state must only be accessed when not in a safepoint-safe state Reviewed-by: dcubed, sspitsyn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
47984
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
     1
#
58908
73bb9c4002cc 8233381: Update copyright year in build system files
ihse
parents: 53683
diff changeset
     2
# Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
47984
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
     4
#
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    10
#
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    15
# accompanied this code).
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    16
#
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    20
#
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    23
# questions.
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    24
#
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    25
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    26
default: all
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    27
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    28
include $(SPEC)
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    29
include MakeBase.gmk
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    30
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    31
############################################################################
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    32
53683
48ff68e2fe5c 8218431: Improved platform checking in makefiles
ihse
parents: 47984
diff changeset
    33
ifeq ($(call isTargetOs, windows), true)
47984
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    34
  FIXPATH_COPY := $(TEST_IMAGE_DIR)/bin/fixpath.exe
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    35
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    36
  $(FIXPATH_COPY): $(firstword $(FIXPATH))
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    37
	$(call install-file)
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    38
endif
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    39
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    40
prepare-test-image: $(FIXPATH_COPY)
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    41
	$(call MakeDir, $(TEST_IMAGE_DIR))
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    42
	$(ECHO) > $(TEST_IMAGE_DIR)/Readme.txt 'JDK test image'
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    43
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    44
all: prepare-test-image
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    45
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    46
.PHONY: default all prepare-test-image