linux-stable/scripts/package
Masahiro Yamada 4d17f22eb1 kbuild: deb-pkg: fix too low build version number
[ Upstream commit bbcde0a724 ]

Since commit b41d920acf ("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: b41d920acf ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-11-27 16:13:07 +01:00
..
builddeb kbuild: deb-pkg: split generating packaging and build 2018-04-07 19:04:02 +09:00
buildtar kbuild: buildtar: add arm64 support 2018-07-19 08:40:28 +09:00
Makefile kbuild: deb-pkg: split generating packaging and build 2018-04-07 19:04:02 +09:00
mkdebian kbuild: deb-pkg: fix too low build version number 2018-11-27 16:13:07 +01:00
mkspec kbuild: rpm-pkg: use kernel-install as a fallback for new-kernel-pkg 2018-04-13 23:18:41 +09:00
snapcraft.template scripts/package: snap-pkg target 2017-12-13 00:00:18 +09:00