equal
deleted
inserted
replaced
1 # |
1 # |
2 # Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
5 # This code is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License version 2 only, as |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. |
7 # published by the Free Software Foundation. |
34 # BUILDARCH - build directory |
34 # BUILDARCH - build directory |
35 # LIBARCH - the corresponding directory in JDK/JRE |
35 # LIBARCH - the corresponding directory in JDK/JRE |
36 # GAMMADIR - top of workspace |
36 # GAMMADIR - top of workspace |
37 # OS_FAMILY - operating system |
37 # OS_FAMILY - operating system |
38 # VARIANT - core, compiler1, compiler2, or tiered |
38 # VARIANT - core, compiler1, compiler2, or tiered |
39 # HOTSPOT_RELEASE_VERSION - <major_ver>.<minor_ver>.<micro_ver>[-<identifier>][-<debug_target>][-b<nn>] |
39 # VERSION_STRING - the JDK version string as specified by JEP-223 |
40 # HOTSPOT_BUILD_VERSION - internal, internal-$(USER_RELEASE_SUFFIX) or empty |
40 # HOTSPOT_VERSION_STRING - the same as VERSION_STRING, unless overridden by a standalone build |
41 # JRE_RELEASE_VERSION - <major>.<minor>.<micro> (1.7.0) |
|
42 # |
41 # |
43 # Builds the directory trees with makefiles plus some convenience files in |
42 # Builds the directory trees with makefiles plus some convenience files in |
44 # each directory: |
43 # each directory: |
45 # |
44 # |
46 # Makefile - for "make foo" |
45 # Makefile - for "make foo" |
135 BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \ |
134 BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \ |
136 SRCARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT) |
135 SRCARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT) |
137 |
136 |
138 # Define variables to be set in flags.make. |
137 # Define variables to be set in flags.make. |
139 # Default values are set in make/defs.make. |
138 # Default values are set in make/defs.make. |
140 ifeq ($(HOTSPOT_BUILD_VERSION),) |
139 |
141 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION) |
|
142 else |
|
143 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION) |
|
144 endif |
|
145 # Set BUILD_USER from system-dependent hints: $LOGNAME, $(whoami) |
140 # Set BUILD_USER from system-dependent hints: $LOGNAME, $(whoami) |
146 ifndef HOTSPOT_BUILD_USER |
141 ifndef HOTSPOT_BUILD_USER |
147 HOTSPOT_BUILD_USER := $(shell echo $$LOGNAME) |
142 HOTSPOT_BUILD_USER := $(shell echo $$LOGNAME) |
148 endif |
143 endif |
149 ifndef HOTSPOT_BUILD_USER |
144 ifndef HOTSPOT_BUILD_USER |
164 ifneq ($(call if-has-altsrc,$(HS_COMMON_SRC)/,true,false),true) |
159 ifneq ($(call if-has-altsrc,$(HS_COMMON_SRC)/,true,false),true) |
165 OPENJDK=true |
160 OPENJDK=true |
166 endif |
161 endif |
167 endif |
162 endif |
168 |
163 |
169 BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HS_BUILD_VER) HOTSPOT_BUILD_VERSION= JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION) |
164 BUILDTREE_VARS += HOTSPOT_VERSION_STRING=$(HOTSPOT_VERSION_STRING) VERSION_STRING=$(VERSION_STRING) |
170 |
165 |
171 BUILDTREE = \ |
166 BUILDTREE = \ |
172 $(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_TARGETS) $(BUILDTREE_VARS) |
167 $(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_TARGETS) $(BUILDTREE_VARS) |
173 |
168 |
174 BUILDTREE_COMMENT = echo "\# Generated by $(BUILDTREE_MAKE)" |
169 BUILDTREE_COMMENT = echo "\# Generated by $(BUILDTREE_MAKE)" |
214 echo "SYSDEFS = \$$(Platform_sysdefs)"; \ |
209 echo "SYSDEFS = \$$(Platform_sysdefs)"; \ |
215 echo "SRCARCH = $(SRCARCH)"; \ |
210 echo "SRCARCH = $(SRCARCH)"; \ |
216 echo "BUILDARCH = $(BUILDARCH)"; \ |
211 echo "BUILDARCH = $(BUILDARCH)"; \ |
217 echo "LIBARCH = $(LIBARCH)"; \ |
212 echo "LIBARCH = $(LIBARCH)"; \ |
218 echo "TARGET = $(TARGET)"; \ |
213 echo "TARGET = $(TARGET)"; \ |
219 echo "HS_BUILD_VER = $(HS_BUILD_VER)"; \ |
214 echo "HOTSPOT_VERSION_STRING = $(HOTSPOT_VERSION_STRING)"; \ |
220 echo "JRE_RELEASE_VER = $(JRE_RELEASE_VERSION)"; \ |
215 echo "VERSION_STRING = $(VERSION_STRING)"; \ |
221 echo "SA_BUILD_VERSION = $(HS_BUILD_VER)"; \ |
216 echo "SA_BUILD_VERSION = $(HOTSPOT_VERSION_STRING)"; \ |
222 echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \ |
217 echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \ |
223 echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \ |
218 echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \ |
224 echo "OPENJDK = $(OPENJDK)"; \ |
219 echo "OPENJDK = $(OPENJDK)"; \ |
225 echo "$(LP64_SETTING/$(DATA_MODE))"; \ |
220 echo "$(LP64_SETTING/$(DATA_MODE))"; \ |
226 echo; \ |
221 echo; \ |