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