bootcycle-spec.gmk.in revision 1303:291e59375885
10SN/A#
28413Spliden# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
30SN/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
40SN/A#
50SN/A# This code is free software; you can redistribute it and/or modify it
60SN/A# under the terms of the GNU General Public License version 2 only, as
70SN/A# published by the Free Software Foundation.  Oracle designates this
80SN/A# particular file as subject to the "Classpath" exception as provided
90SN/A# by Oracle in the LICENSE file that accompanied this code.
100SN/A#
110SN/A# This code is distributed in the hope that it will be useful, but WITHOUT
120SN/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
130SN/A# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
140SN/A# version 2 for more details (a copy is included in the LICENSE file that
150SN/A# accompanied this code).
160SN/A#
170SN/A# You should have received a copy of the GNU General Public License version
180SN/A# 2 along with this work; if not, write to the Free Software Foundation,
191472SN/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
201472SN/A#
211472SN/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
220SN/A# or visit www.oracle.com if you need additional information or have any
230SN/A# questions.
240SN/A#
258413Spliden
268413Spliden# Support for building boot cycle builds
271879SN/A
288413Spliden# First include the real base spec.gmk file
298450Sstefankinclude @SPEC@
305080SN/A
311879SN/A# Check that the user did not try to specify a different java to use for compiling.
320SN/A# On windows we need to account for fixpath being first word.
330SN/Aifeq ($(firstword $(JAVA)),$(FIXPATH))
340SN/A  JAVA_EXEC_POS=2
350SN/Aelse
361585SN/A  JAVA_EXEC_POS=1
373465SN/Aendif
380SN/Aifneq ($(word $(JAVA_EXEC_POS),$(SJAVAC_SERVER_JAVA)),$(word $(JAVA_EXEC_POS),$(JAVA)))
390SN/A  $(error Bootcycle builds are not possible if --with-sjavac-server-java is specified)
403602SN/Aendif
41113SN/A
420SN/A
43113SN/A# Override specific values to do a boot cycle build
44113SN/A
45113SN/A# Use a different Boot JDK
46113SN/ABOOT_JDK := $(JDK_IMAGE_DIR)
47113SN/A
48113SN/A# The bootcycle build has a different output directory
49113SN/AOLD_BUILD_OUTPUT:=@BUILD_OUTPUT@
500SN/ABUILD_OUTPUT:=$(OLD_BUILD_OUTPUT)/bootcycle-build
510SN/A# The HOTSPOT_DIST dir is not defined relative to BUILD_OUTPUT in spec.gmk
520SN/AHOTSPOT_DIST:=$(patsubst $(OLD_BUILD_OUTPUT)%, $(BUILD_OUTPUT)%, $(HOTSPOT_DIST))
530SN/ASJAVAC_SERVER_DIR:=$(patsubst $(OLD_BUILD_OUTPUT)%, $(BUILD_OUTPUT)%, $(SJAVAC_SERVER_DIR))
54113SN/A
550SN/AJAVA_CMD:=$(BOOT_JDK)/bin/java
560SN/AJAVAC_CMD:=$(BOOT_JDK)/bin/javac
570SN/AJAVAH_CMD:=$(BOOT_JDK)/bin/javah
58113SN/AJAR_CMD:=$(BOOT_JDK)/bin/jar
59113SN/ANATIVE2ASCII_CMD:=$(BOOT_JDK)/bin/native2ascii
60113SN/AJARSIGNER_CMD:=$(BOOT_JDK)/bin/jarsigner
61113SN/ASJAVAC_SERVER_JAVA_CMD:=$(JAVA_CMD)
620SN/A