Makefile.rhelver 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. RHEL_MAJOR = 9
  2. RHEL_MINOR = 99
  3. #
  4. # RHEL_RELEASE
  5. # -------------
  6. #
  7. # Represents build number in 'release' part of RPM's name-version-release.
  8. # name is <package_name>, e.g. kernel
  9. # version is upstream kernel version this kernel is based on, e.g. 4.18.0
  10. # release is <RHEL_RELEASE>.<dist_tag>[<buildid>], e.g. 100.el8
  11. #
  12. # Use this spot to avoid future merge conflicts.
  13. # Do not trim this comment.
  14. RHEL_RELEASE = 0
  15. #
  16. # RHEL_REBASE_NUM
  17. # ----------------
  18. #
  19. # Used in RPM version string for Gemini kernels, which dont use upstream
  20. # VERSION/PATCHLEVEL/SUBLEVEL. The number represents rebase number for
  21. # current MAJOR release.
  22. #
  23. # Use this spot to avoid future merge conflicts.
  24. # Do not trim this comment.
  25. RHEL_REBASE_NUM = 1
  26. #
  27. # ZSTREAM
  28. # -------
  29. #
  30. # This variable controls whether we use zstream numbering or not for the
  31. # package release. The zstream release keeps the build number of the last
  32. # build done for ystream for the Beta milestone, and increments a second
  33. # number for each build. The third number is used for branched builds
  34. # (eg.: for builds with security fixes or hot fixes done outside of the
  35. # batch release process).
  36. #
  37. # For example, with ZSTREAM unset or set to "no", all builds will contain
  38. # a release with only the build number, eg.: kernel-<kernel version>-X.el*,
  39. # where X is the build number. With ZSTREAM set to "yes", we will have
  40. # builds with kernel-<kernel version>-X.Y.Z.el*, where X is the last
  41. # RHEL_RELEASE number before ZSTREAM flag was set to yes, Y will now be the
  42. # build number and Z will always be 1 except if you're doing a branched build
  43. # (when you give RHDISTGIT_BRANCH on the command line, in which case the Z
  44. # number will be incremented instead of the Y).
  45. #
  46. ZSTREAM ?= no
  47. #
  48. # Early y+1 numbering
  49. # --------------------
  50. #
  51. # In early y+1 process, RHEL_RELEASE consists of 2 numbers: x.y
  52. # First is RHEL_RELEASE inherited/merged from y as-is, second number
  53. # is incremented with each build starting from 1. After merge from y,
  54. # it resets back to 1. This way y+1 nvr reflects status of last merge.
  55. #
  56. # Example:
  57. #
  58. # rhel8.0 rhel-8.1
  59. # kernel-4.18.0-58.el8 --> kernel-4.18.0-58.1.el8
  60. # kernel-4.18.0-58.2.el8
  61. # kernel-4.18.0-59.el8 kernel-4.18.0-59.1.el8
  62. # kernel-4.18.0-60.el8
  63. # kernel-4.18.0-61.el8 --> kernel-4.18.0-61.1.el8
  64. #
  65. #
  66. # Use this spot to avoid future merge conflicts.
  67. # Do not trim this comment.
  68. EARLY_YSTREAM ?= no
  69. EARLY_YBUILD:=
  70. EARLY_YRELEASE:=
  71. ifneq ("$(ZSTREAM)", "yes")
  72. ifeq ("$(EARLY_YSTREAM)","yes")
  73. RHEL_RELEASE:=$(RHEL_RELEASE).$(EARLY_YRELEASE)
  74. endif
  75. endif