6987107: Add variable to add to but not modify non-fcs version string
authorohair
Tue, 30 Nov 2010 18:07:18 -0800
changeset 7402 554c8ae9c3e0
parent 6956 60fb8694b84c
child 7403 56d379ba4a3c
6987107: Add variable to add to but not modify non-fcs version string Reviewed-by: jcoomes, dholmes, andrew, kvn
hotspot/make/defs.make
hotspot/make/jprt.gmk
hotspot/make/linux/makefiles/buildtree.make
hotspot/make/solaris/makefiles/buildtree.make
hotspot/make/windows/projectfiles/common/Makefile
--- a/hotspot/make/defs.make	Thu Nov 04 15:54:20 2010 -0700
+++ b/hotspot/make/defs.make	Tue Nov 30 18:07:18 2010 -0800
@@ -101,15 +101,14 @@
 endif
 
 ifdef HOTSPOT_BUILD_VERSION
-# specified in command line (PRT build)
+# specified in command line
 else
-  ifdef JPRT_BUILD_VERSION
-# JPR build
-    HOTSPOT_BUILD_VERSION=$(JPRT_BUILD_VERSION)
+  ifdef COOKED_BUILD_NUMBER
+# JRE build
+    HOTSPOT_BUILD_VERSION=
   else
-    ifdef COOKED_BUILD_NUMBER
-# JRE build
-      HOTSPOT_BUILD_VERSION=
+    ifdef USER_RELEASE_SUFFIX
+      HOTSPOT_BUILD_VERSION=internal-$(USER_RELEASE_SUFFIX)
     else
       HOTSPOT_BUILD_VERSION=internal
     endif
--- a/hotspot/make/jprt.gmk	Thu Nov 04 15:54:20 2010 -0700
+++ b/hotspot/make/jprt.gmk	Tue Nov 30 18:07:18 2010 -0800
@@ -25,9 +25,6 @@
 # JPRT rule to build this workspace
 
 JPRT_ARCHIVE_BUNDLE=$(ABS_OUTPUTDIR)/$(JPRT_BUILD_FLAVOR)-bundle.zip
-ifdef JPRT_BUILD_VERSION
-  MILESTONE=$(JPRT_BUILD_VERSION)
-endif
 
 ifeq ($(OSNAME),windows)
   ZIPFLAGS=-q
--- a/hotspot/make/linux/makefiles/buildtree.make	Thu Nov 04 15:54:20 2010 -0700
+++ b/hotspot/make/linux/makefiles/buildtree.make	Tue Nov 30 18:07:18 2010 -0800
@@ -37,7 +37,7 @@
 # OS_FAMILY	- operating system
 # VARIANT	- core, compiler1, compiler2, or tiered
 # HOTSPOT_RELEASE_VERSION - <major>.<minor>-b<nn> (11.0-b07)
-# HOTSPOT_BUILD_VERSION   - internal, PRTjob ID, JPRTjob ID
+# HOTSPOT_BUILD_VERSION   - internal, internal-$(USER_RELEASE_SUFFIX) or empty
 # JRE_RELEASE_VERSION     - <major>.<minor>.<micro> (1.7.0)
 #
 # Builds the directory trees with makefiles plus some convenience files in
--- a/hotspot/make/solaris/makefiles/buildtree.make	Thu Nov 04 15:54:20 2010 -0700
+++ b/hotspot/make/solaris/makefiles/buildtree.make	Tue Nov 30 18:07:18 2010 -0800
@@ -37,7 +37,7 @@
 # OS_FAMILY	- operating system
 # VARIANT	- core, compiler1, compiler2, or tiered
 # HOTSPOT_RELEASE_VERSION - <major>.<minor>-b<nn> (11.0-b07)
-# HOTSPOT_BUILD_VERSION   - internal, PRTjob ID, JPRTjob ID
+# HOTSPOT_BUILD_VERSION   - internal, internal-$(USER_RELEASE_SUFFIX) or empty
 # JRE_RELEASE_VERSION     - <major>.<minor>.<micro> (1.7.0)
 #
 # Builds the directory trees with makefiles plus some convenience files in
--- a/hotspot/make/windows/projectfiles/common/Makefile	Thu Nov 04 15:54:20 2010 -0700
+++ b/hotspot/make/windows/projectfiles/common/Makefile	Tue Nov 30 18:07:18 2010 -0800
@@ -108,7 +108,11 @@
 !else
 HOTSPOT_RELEASE_VERSION="$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)"
 !endif
+!if "$(USER_RELEASE_SUFFIX)" != ""
+HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal-$(USER_RELEASE_SUFFIX)
+!else
 HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal
+!endif
 !if "$(HOTSPOT_BUILD_VERSION)" != ""
 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)"
 !endif