9423bd
RHEL_MAJOR = 9
d859dd
RHEL_MINOR = 2
9423bd
9423bd
#
9423bd
# RHEL_RELEASE
9423bd
# -------------
9423bd
#
9423bd
# Represents build number in 'release' part of RPM's name-version-release.
9423bd
#   name is <package_name>, e.g. kernel
9423bd
#   version is upstream kernel version this kernel is based on, e.g. 4.18.0
9423bd
#   release is <RHEL_RELEASE>.<dist_tag>[<buildid>], e.g. 100.el8
9423bd
#
9423bd
# Use this spot to avoid future merge conflicts.
9423bd
# Do not trim this comment.
d859dd
RHEL_RELEASE = 283
283094
283094
#
283094
# ZSTREAM
283094
# -------
283094
#
283094
#  This variable controls whether we use zstream numbering or not for the
283094
#  package release. The zstream release keeps the build number of the last
283094
#  build done for ystream for the Beta milestone, and increments a second
283094
#  number for each build. The third number is used for branched builds
283094
#  (eg.: for builds with security fixes or hot fixes done outside of the
283094
#  batch release process).
283094
#
283094
#  For example, with ZSTREAM unset or set to "no", all builds will contain
283094
#  a release with only the build number, eg.: kernel-<kernel version>-X.el*,
283094
#  where X is the build number. With ZSTREAM set to "yes", we will have
283094
#  builds with kernel-<kernel version>-X.Y.Z.el*, where X is the last
283094
#  RHEL_RELEASE number before ZSTREAM flag was set to yes, Y will now be the
283094
#  build number and Z will always be 1 except if you're doing a branched build
283094
#  (when you give RHDISTGIT_BRANCH on the command line, in which case the Z
283094
#  number will be incremented instead of the Y).
283094
#
51b83a
ZSTREAM ?= no
9423bd
9423bd
#
9423bd
# Early y+1 numbering
9423bd
# --------------------
9423bd
#
9423bd
# In early y+1 process, RHEL_RELEASE consists of 2 numbers: x.y
9423bd
# First is RHEL_RELEASE inherited/merged from y as-is, second number
9423bd
# is incremented with each build starting from 1. After merge from y,
9423bd
# it resets back to 1. This way y+1 nvr reflects status of last merge.
9423bd
#
9423bd
# Example:
9423bd
#
9423bd
# rhel8.0                        rhel-8.1
9423bd
#   kernel-4.18.0-58.el8   -->     kernel-4.18.0-58.1.el8
9423bd
#                                  kernel-4.18.0-58.2.el8
9423bd
#   kernel-4.18.0-59.el8           kernel-4.18.0-59.1.el8
9423bd
#   kernel-4.18.0-60.el8
9423bd
#   kernel-4.18.0-61.el8   -->     kernel-4.18.0-61.1.el8
9423bd
#
9423bd
#
9423bd
# Use this spot to avoid future merge conflicts.
9423bd
# Do not trim this comment.
9423bd
EARLY_YSTREAM ?= no
9423bd
EARLY_YBUILD:=
9423bd
EARLY_YRELEASE:=
9423bd
ifneq ("$(ZSTREAM)", "yes")
9423bd
  ifeq ("$(EARLY_YSTREAM)","yes")
9423bd
    RHEL_RELEASE:=$(RHEL_RELEASE).$(EARLY_YRELEASE)
9423bd
  endif
9423bd
endif