|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
4 # The contents of this file are subject to the terms of the |
|
5 # Common Development and Distribution License (the "License"). |
|
6 # You may not use this file except in compliance with the License. |
|
7 # |
|
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 # or http://www.opensolaris.org/os/licensing. |
|
10 # See the License for the specific language governing permissions |
|
11 # and limitations under the License. |
|
12 # |
|
13 # When distributing Covered Code, include this CDDL HEADER in each |
|
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 # If applicable, add the following below this CDDL HEADER, with the |
|
16 # fields enclosed by brackets "[]" replaced with your own identifying |
|
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 # Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. |
|
22 # |
|
23 |
|
24 |
|
25 # The package branch version scheme is: |
|
26 # |
|
27 # trunk_id.update.SRU.platform.buildid.nightlyid |
|
28 # |
|
29 # where |
|
30 # trunk_id : build number for tip development gate, with leading 0 |
|
31 # update : 0 for FCS, 1 for update 1, etc. |
|
32 # SRU : SRU (support repository update) number for this update |
|
33 # platform : reserved for future use. |
|
34 # buildid : the build number of the last non-zero element from above |
|
35 # nightlyid: nightly build identifier |
|
36 |
|
37 # |
|
38 # For reference, Solaris 11 FCS is branch-id 0.175.0.0.0.2.537 |
|
39 # build 175, respin 2, workspace changeset 537 |
|
40 # |
|
41 |
|
42 # |
|
43 # The Solaris Marketing release build number. |
|
44 # |
|
45 TRUNK_ID ?= 0.175 |
|
46 |
|
47 # |
|
48 # The Solaris Update number. This will be set by the gatekeepers. |
|
49 # The value must match the update number of the release. |
|
50 # |
|
51 UPDATENUM ?= 1 |
|
52 |
|
53 # |
|
54 # Support Respository Update number. This is here to reserve space within the |
|
55 # version string. Typically it should not be set unless all the packages |
|
56 # are being delivered within an SRU. |
|
57 # |
|
58 SRUNUM ?= 0 |
|
59 |
|
60 # |
|
61 # Platform number. This is here to reserve space within the version |
|
62 # string. It should not be set unless there is a specific need to |
|
63 # release a platform update while the Solaris Update is being built. |
|
64 # |
|
65 PLATNUM ?= 0 |
|
66 |
|
67 # |
|
68 # Build Identifier. Used to indicate which build (or respin for |
|
69 # the development build) of the Solaris Update is being built. |
|
70 # This is set by the gatekeepers. |
|
71 # |
|
72 BUILDID ?= 0 |
|
73 |
|
74 # Each (nightly) build of the code that produces packages needs to |
|
75 # be uniquely identified so that packages produced by different |
|
76 # builds can't be mixed. Mixing packages from different builds can |
|
77 # easily result in broken global and nonglobal zones. |
|
78 # |
|
79 NIGHTLYID ?= $(shell hg tip --template '{rev}\n') |
|
80 |
|
81 # |
|
82 # Branch Identifier. Used in the version section of the package name to |
|
83 # identify the operating system branch that the package was produced for. |
|
84 # |
|
85 BRANCHID ?= \ |
|
86 $(TRUNK_ID).$(UPDATENUM).$(SRUNUM).$(PLATNUM).$(BUILDID).$(NIGHTLYID) |
|
87 |
|
88 # |
|
89 # Build Version. Used in the version section of the package name to identify |
|
90 # the operating system version and branch that the package was produced for. |
|
91 # |
|
92 BUILD_VERSION ?= $(OS_VERSION)-$(BRANCHID) |
|
93 |