]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: deb-pkg: fix too low build version number
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 6 Nov 2018 04:18:05 +0000 (13:18 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 11 Nov 2018 14:04:52 +0000 (23:04 +0900)
commit49ff0ce24b98e7ca79663b5664a2676a464af02e
treef9a1abb090b0280c5e00b7579898833450b76499
parent11db2896a3a1711cf92494fa983b7ddcc020d065
kbuild: deb-pkg: fix too low build version number

Since commit 620ec3320486 ("kbuild: deb-pkg: split generating packaging
and build"), the build version of the kernel contained in a deb package
is too low by 1.

Prior to the bad commit, the kernel was built first, then the number
in .version file was read out, and written into the debian control file.

Now, the debian control file is created before the kernel is actually
compiled, which is causing the version number mismatch.

Let the mkdebian script pass KBUILD_BUILD_VERSION=${revision} to require
the build system to use the specified version number.

Fixes: 620ec3320486 ("kbuild: deb-pkg: split generating packaging and build")
Reported-by: Doug Smythies <dsmythies@telus.net>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Tested-by: Doug Smythies <dsmythies@telus.net>
scripts/package/mkdebian