]> git.ipfire.org Git - people/arne_f/kernel.git/commit
builddeb: fix stripped module signatures if CONFIG_DEBUG_INFO and CONFIG_MODULE_SIG_A...
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Mon, 16 Mar 2015 08:20:54 +0000 (11:20 +0300)
committerMichal Marek <mmarek@suse.cz>
Wed, 6 May 2015 13:25:53 +0000 (15:25 +0200)
commit64178cb62c329350fe06622cd215264d849b27b1
treeb2b904e6465920ed7dec6fea4c39ece0057b3b07
parentdca0c0246fb739bccdd19ff2bfd0f02ccffdb07c
builddeb: fix stripped module signatures if CONFIG_DEBUG_INFO and CONFIG_MODULE_SIG_ALL are set

If CONFIG_MODULE_SIG_ALL is set, then user expects that all modules are
automatically signed in the result package, as it's for rpm-pkg, binrpm-pkg,
tar, tar-*. For deb-pkg this is correct only if CONFIG_DEBUG_INFO
is NOT set. In that case deb-package contains signed modules.

But if CONFIG_DEBUG_INFO is set, builddeb creates separate package with
debug information. To do that, debug information from all modules
is copied into separate files by objcopy. And loadable kernel modules are
stripped afterwards. Stripping removes previously (during modules_install)
added signatures from loadable kernel modules. Therefore final deb-package
contains unsigned modules despite of set option CONFIG_MODULE_SIG_ALL.

This patch resigns all stripped modules if CONFIG_MODULE_SIG_ALL is set
to solve this problem.

Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>
Acked-by: maximilian attems <max@stro.at>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/package/builddeb