Skip to contentSkip to conversation

builddeb: sign the modules after splitting out the debuginfo files

PATCH In review Theodore Ts'o 3 participants 4 messages Jun 16, 2015 – Jul 28, 2015 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 builddeb: sign the modules after splitting out the debuginfo files

---
 scripts/package/builddeb | 3 +++
 1 file changed, 3 insertions(+)
scripts/package/builddeb +3 -0
index 88dbf23..159ec7c 100755
@@ -163,6 +163,9 @@ if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
 			$OBJCOPY --add-gnu-debuglink=$dbg_dir/usr/lib/debug/$module $tmpdir/$module
 		done
 	fi
+	if grep -q '^CONFIG_MODULE_SIG=y' $KCONFIG_CONFIG ; then
+		INSTALL_MOD_PATH="$tmpdir" $MAKE KBUILD_SRC= modules_sign
+	fi
 fi
 
 if [ "$ARCH" != "um" ]; then
Signature · 1 line
2.3.0
#1 lore raw

Hi,

Quoted 1 line · Theodore Ts'o

A similar patch is already in Michals tree:

https://git.kernel.org/cgit/linux/kernel/git/mmarek/kbuild.git/commit/?h=misc&id=64178cb62c329350fe06622cd215264d849b27b1

Riku

Quoted 25 lines
---
 scripts/package/builddeb | 3 +++
 1 file changed, 3 insertions(+)
scripts/package/builddeb +3 -1
index 88dbf23..159ec7c 100755
@@ -163,6 +163,9 @@ if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
                        $OBJCOPY --add-gnu-debuglink=$dbg_dir/usr/lib/debug/$module $tmpdir/$module
                done
        fi
+       if grep -q '^CONFIG_MODULE_SIG=y' $KCONFIG_CONFIG ; then
+               INSTALL_MOD_PATH="$tmpdir" $MAKE KBUILD_SRC= modules_sign
+       fi
 fi
 
 if [ "$ARCH" != "um" ]; then
--

2.3.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

Dne 28.7.2015 v 21:27 Theodore Ts'o napsal(a):

Quoted 12 lines · Riku Voipio
Quoted 9 lines

Hi,

Quoted 1 line · Theodore Ts'o

A similar patch is already in Michals tree:

https://git.kernel.org/cgit/linux/kernel/git/mmarek/kbuild.git/commit/?h=misc&id=64178cb62c329350fe06622cd215264d849b27b1

It looks like kbuild.git didn't get merged for the 4.2 merge cycle?

Yes. Linus did not merge the misc branch, because he was missing there another patch which in fact is in a different subsystem tree :-/.

Michal