]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: Restore .version auto-increment behaviour for Debian packages
authorMarc Zyngier <maz@kernel.org>
Tue, 15 Nov 2022 22:04:53 +0000 (22:04 +0000)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 17 Nov 2022 08:51:45 +0000 (17:51 +0900)
commit8b0f37022690fbe8147a0cf7e6865d7010fa8a2e
treed5dd34813f8eeba31ac45e1a98f4cbbe858133e4
parent2974d0e93e5cb23879e3e0d1133bdfdf2c31c710
kbuild: Restore .version auto-increment behaviour for Debian packages

Since f8729cd1c8b3 ("kbuild: build init/built-in.a just once"),
generating Debian packages using 'make bindeb-pkg' results in
packages that are stuck to the same .version, leading to unexpected
behaviours (multiple packages with the same version).

That's because the mkdebian script samples the build version
before building the kernel, and forces the use of that version
number for the actual build.

Restore the previous behaviour by calling init/build-version
instead of reading the .version file. This is likely to result
in too many .version bumps, but this is what was happening before
(although the bump was affecting builds made after the current one).

Fixes: f8729cd1c8b3 ("kbuild: build init/built-in.a just once")
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/package/mkdebian