Append .debug to rawhide builds

When we have debugbuildsenabled=0, we're actually building a debug kernel.
To help point this out, let's append .debug in EXTRAVERSION like we would
when building kernel-debug
This commit is contained in:
Josh Boyer 2012-02-20 09:03:51 -05:00
parent cd68c0b144
commit abff21a8fa
1 changed files with 7 additions and 0 deletions

View File

@ -1618,6 +1618,13 @@ BuildKernel() {
# make sure EXTRAVERSION says what we want it to say
perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}.%{_target_cpu}${Flavour:+.${Flavour}}/" Makefile
%if !%{debugbuildsenabled}
%if !%{with_release}
# we're building a rawhide kernel where debug is the "norm".
perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}.%{_target_cpu}${Flavour:+.${Flavour}}.debug/" Makefile
%endif
%endif
# if pre-rc1 devel kernel, must fix up PATCHLEVEL for our versioning scheme
%if !0%{?rcrev}
%if 0%{?gitrev}