summaryrefslogtreecommitdiffstats
path: root/Makefile.rhelver
blob: 21f029aa9a5c07de33d7acf9be32d316100a4dc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
RHEL_MAJOR = 9
RHEL_MINOR = 99

#
# RHEL_RELEASE
# -------------
#
# Represents build number in 'release' part of RPM's name-version-release.
#   name is <package_name>, e.g. kernel
#   version is upstream kernel version this kernel is based on, e.g. 4.18.0
#   release is <RHEL_RELEASE>.<dist_tag>[<buildid>], e.g. 100.el8
#
# Use this spot to avoid future merge conflicts.
# Do not trim this comment.
RHEL_RELEASE = 22

#
# ZSTREAM
# -------
#
#  This variable controls whether we use zstream numbering or not for the
#  package release. The zstream release keeps the build number of the last
#  build done for ystream for the Beta milestone, and increments a second
#  number for each build. The third number is used for branched builds
#  (eg.: for builds with security fixes or hot fixes done outside of the
#  batch release process).
#
#  For example, with ZSTREAM unset or set to "no", all builds will contain
#  a release with only the build number, eg.: kernel-<kernel version>-X.el*,
#  where X is the build number. With ZSTREAM set to "yes", we will have
#  builds with kernel-<kernel version>-X.Y.Z.el*, where X is the last
#  RHEL_RELEASE number before ZSTREAM flag was set to yes, Y will now be the
#  build number and Z will always be 1 except if you're doing a branched build
#  (when you give RHDISTGIT_BRANCH on the command line, in which case the Z
#  number will be incremented instead of the Y).
#
ZSTREAM ?= no

#
# Early y+1 numbering
# --------------------
#
# In early y+1 process, RHEL_RELEASE consists of 2 numbers: x.y
# First is RHEL_RELEASE inherited/merged from y as-is, second number
# is incremented with each build starting from 1. After merge from y,
# it resets back to 1. This way y+1 nvr reflects status of last merge.
#
# Example:
#
# rhel8.0                        rhel-8.1
#   kernel-4.18.0-58.el8   -->     kernel-4.18.0-58.1.el8
#                                  kernel-4.18.0-58.2.el8
#   kernel-4.18.0-59.el8           kernel-4.18.0-59.1.el8
#   kernel-4.18.0-60.el8
#   kernel-4.18.0-61.el8   -->     kernel-4.18.0-61.1.el8
#
#
# Use this spot to avoid future merge conflicts.
# Do not trim this comment.
EARLY_YSTREAM ?= no
EARLY_YBUILD:=
EARLY_YRELEASE:=
ifneq ("$(ZSTREAM)", "yes")
  ifeq ("$(EARLY_YSTREAM)","yes")
    RHEL_RELEASE:=$(RHEL_RELEASE).$(EARLY_YRELEASE)
  endif
endif