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