hotspot/make/solaris/makefiles/buildtree.make
changeset 33957 39113ae98993
parent 26825 0d3d41277f1d
child 33973 c6c0af1521f4
equal deleted inserted replaced
30850:56166ce66037 33957:39113ae98993
     1 #
     1 #
     2 # Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 2000, 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"
   122 BUILDTREE_VARS	= GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \
   121 BUILDTREE_VARS	= GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \
   123 	ARCH=$(ARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT)
   122 	ARCH=$(ARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT)
   124 
   123 
   125 # Define variables to be set in flags.make.
   124 # Define variables to be set in flags.make.
   126 # Default values are set in make/defs.make.
   125 # Default values are set in make/defs.make.
   127 ifeq ($(HOTSPOT_BUILD_VERSION),)
   126 
   128   HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)
       
   129 else
       
   130   HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)
       
   131 endif
       
   132 # Set BUILD_USER from system-dependent hints:  $LOGNAME, $(whoami)
   127 # Set BUILD_USER from system-dependent hints:  $LOGNAME, $(whoami)
   133 ifndef HOTSPOT_BUILD_USER
   128 ifndef HOTSPOT_BUILD_USER
   134   HOTSPOT_BUILD_USER := $(shell echo $$LOGNAME)
   129   HOTSPOT_BUILD_USER := $(shell echo $$LOGNAME)
   135 endif
   130 endif
   136 ifndef HOTSPOT_BUILD_USER
   131 ifndef HOTSPOT_BUILD_USER
   151   ifneq ($(call if-has-altsrc,$(HS_COMMON_SRC)/,true,false),true)
   146   ifneq ($(call if-has-altsrc,$(HS_COMMON_SRC)/,true,false),true)
   152     OPENJDK=true
   147     OPENJDK=true
   153   endif
   148   endif
   154 endif
   149 endif
   155 
   150 
   156 BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HS_BUILD_VER) HOTSPOT_BUILD_VERSION= JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION)
   151 BUILDTREE_VARS += HOTSPOT_VERSION_STRING=$(HOTSPOT_VERSION_STRING) VERSION_STRING=$(VERSION_STRING)
   157 
   152 
   158 BUILDTREE	= \
   153 BUILDTREE	= \
   159 	$(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_TARGETS) $(BUILDTREE_VARS)
   154 	$(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_TARGETS) $(BUILDTREE_VARS)
   160 
   155 
   161 BUILDTREE_COMMENT	= echo "\# Generated by $(BUILDTREE_MAKE)"
   156 BUILDTREE_COMMENT	= echo "\# Generated by $(BUILDTREE_MAKE)"
   201 	echo "SYSDEFS = \$$(Platform_sysdefs)"; \
   196 	echo "SYSDEFS = \$$(Platform_sysdefs)"; \
   202 	echo "SRCARCH = $(ARCH)"; \
   197 	echo "SRCARCH = $(ARCH)"; \
   203 	echo "BUILDARCH = $(BUILDARCH)"; \
   198 	echo "BUILDARCH = $(BUILDARCH)"; \
   204 	echo "LIBARCH = $(LIBARCH)"; \
   199 	echo "LIBARCH = $(LIBARCH)"; \
   205 	echo "TARGET = $(TARGET)"; \
   200 	echo "TARGET = $(TARGET)"; \
   206 	echo "HS_BUILD_VER = $(HS_BUILD_VER)"; \
   201 	echo "HOTSPOT_VERSION_STRING = $(HOTSPOT_VERSION_STRING)"; \
   207 	echo "JRE_RELEASE_VER = $(JRE_RELEASE_VERSION)"; \
   202 	echo "VERSION_STRING = $(VERSION_STRING)"; \
   208 	echo "SA_BUILD_VERSION = $(HS_BUILD_VER)"; \
   203 	echo "SA_BUILD_VERSION = $(HOTSPOT_VERSION_STRING)"; \
   209 	echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \
   204 	echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \
   210 	echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \
   205 	echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \
   211 	echo "OPENJDK = $(OPENJDK)"; \
   206 	echo "OPENJDK = $(OPENJDK)"; \
   212 	echo "$(LP64_SETTING/$(DATA_MODE))"; \
   207 	echo "$(LP64_SETTING/$(DATA_MODE))"; \
   213 	echo; \
   208 	echo; \