make-rules/shared-macros.mk
changeset 477 068d10529156
parent 459 c7579764bc73
child 486 00cc0158aa99
equal deleted inserted replaced
476:3f229c7edfbb 477:068d10529156
    60 CONSOLIDATION =	userland
    60 CONSOLIDATION =	userland
    61 PUBLISHER ?=	$(CONSOLIDATION)
    61 PUBLISHER ?=	$(CONSOLIDATION)
    62 
    62 
    63 ROOT =			/
    63 ROOT =			/
    64 
    64 
       
    65 # The package branch version scheme is:
       
    66 #
       
    67 #       trunk_id.update.SRU.platform.buildid.nightlyid
       
    68 #
       
    69 # where
       
    70 #       trunk_id : build number for tip development gate, with leading 0
       
    71 #       update   : 0 for FCS, 1 for update 1, etc.
       
    72 #       SRU      : SRU (support repository update) number for this update
       
    73 #       platform : reserved for future use.
       
    74 #       buildid  : the build number of the last non-zero element from above
       
    75 #       nightlyid: nightly build identifier
       
    76 
    65 # get the most recent build number from the last mercurial tag
    77 # get the most recent build number from the last mercurial tag
    66 LAST_HG_TAG =	$(shell hg tags -q | grep build- | head -1)
    78 LAST_HG_TAG =	$(shell hg tags -q | grep build- | head -1)
    67 LAST_BUILD_NUM = $(LAST_HG_TAG:build-%=%)
    79 LAST_BUILD_NUM = $(LAST_HG_TAG:build-%=%)
    68 
    80 
    69 OS_VERSION =		$(shell uname -r)
    81 OS_VERSION =		$(shell uname -r)
    70 SOLARIS_VERSION =	$(OS_VERSION:5.%=2.%)
    82 SOLARIS_VERSION =	$(OS_VERSION:5.%=2.%)
    71 BUILD_NUM =		0.$(shell expr $(LAST_BUILD_NUM) + 1)
    83 BUILD_NUM =		0.$(shell expr $(LAST_BUILD_NUM) + 1)
    72 BUILD_VERSION =		$(OS_VERSION)-$(BUILD_NUM)
    84 
    73 
    85 #
       
    86 # The Solaris Update number. This will be set by the gatekeepers.
       
    87 # The value must match the update number of the release.
       
    88 #
       
    89 UPDATENUM ?= 0
       
    90 
       
    91 #
       
    92 # Support Respository Update number. This is here to reserve space within the
       
    93 # version string. Typically it should not be set unless all the packages
       
    94 # are being delivered within an SRU.
       
    95 #
       
    96 SRUNUM ?= 0
       
    97 
       
    98 #
       
    99 # Platform number. This is here to reserve space within the version
       
   100 # string. It should not be set unless there is a specific need to
       
   101 # release a platform update while the Solaris Update is being built.
       
   102 #
       
   103 PLATNUM ?= 0
       
   104 
       
   105 #
       
   106 # Build Identifier. Used to indicate which build (or respin for
       
   107 # the development build) of the Solaris Update is being built.
       
   108 # This is set by the gatekeepers.
       
   109 #
       
   110 BUILDID ?= 0
       
   111 
       
   112 # Each (nightly) build of the code that produces packages needs to
       
   113 # be uniquely identified so that packages produced by different
       
   114 # builds can't be mixed.  Mixing packages from different builds can
       
   115 # easily result in broken global and nonglobal zones.
       
   116 #
       
   117 NIGHTLYID ?=	$(shell hg tip --template '{rev}\n')
       
   118 
       
   119 BUILD_VERSION =	 \
       
   120     $(OS_VERSION)-$(BUILD_NUM).$(UPDATENUM).$(SRUNUM).$(PLATNUM).$(BUILDID).$(NIGHTLYID)
    74 
   121 
    75 COMPILER =		studio
   122 COMPILER =		studio
    76 BITS =			32
   123 BITS =			32
    77 PYTHON_VERSION =	2.6
   124 PYTHON_VERSION =	2.6
    78 PYTHON_VERSIONS =	2.6
   125 PYTHON_VERSIONS =	2.6