File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -99,9 +99,14 @@ function kernel_build() {
99
99
# Canonical's releases and our releases.
100
100
#
101
101
local canonical_abinum delphix_abinum kernel_release kernel_version
102
+
102
103
canonical_abinum=$( fakeroot debian/rules printenv | grep -E ' ^abinum ' | cut -d= -f2 | tr -d ' [:space:]' )
103
104
delphix_abinum=" ${canonical_abinum} -$( date -u +" dx%Y%m%d%H" ) -$( git rev-parse --short HEAD) "
105
+
104
106
kernel_release=$( fakeroot debian/rules printenv | grep -E ' ^release ' | cut -d= -f2 | tr -d ' [:space:]' )
107
+ if [[ -z " $kernel_release " ]]; then
108
+ kernel_release=$( fakeroot debian/rules printenv | grep -E ' ^DEB_VERSION_UPSTREAM ' | cut -d= -f2 | tr -d ' [:space:]' )
109
+ fi
105
110
106
111
#
107
112
# We record the kernel version into a file. This field is consumed
You can’t perform that action at this time.
0 commit comments