diff mbox

builddeb: sign the modules after splitting out the debuginfo files

Message ID 1434421046-4020-1-git-send-email-tytso@mit.edu (mailing list archive)
State New, archived
Headers show

Commit Message

Theodore Ts'o June 16, 2015, 2:17 a.m. UTC
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
---
 scripts/package/builddeb | 3 +++
 1 file changed, 3 insertions(+)

Comments

Riku Voipio June 17, 2015, 6:34 a.m. UTC | #1
Hi,

On 16 June 2015 at 05:17, Theodore Ts'o <tytso@mit.edu> wrote:
> Signed-off-by: Theodore Ts'o <tytso@mit.edu>

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

> ---
>  scripts/package/builddeb | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
> index 88dbf23..159ec7c 100755
> --- a/scripts/package/builddeb
> +++ b/scripts/package/builddeb
> @@ -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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Theodore Ts'o July 28, 2015, 7:27 p.m. UTC | #2
On Wed, Jun 17, 2015 at 09:34:34AM +0300, Riku Voipio wrote:
> Hi,
> 
> On 16 June 2015 at 05:17, Theodore Ts'o <tytso@mit.edu> wrote:
> > Signed-off-by: Theodore Ts'o <tytso@mit.edu>
> 
> 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?

   	      		 	    - Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Michal Marek July 28, 2015, 7:54 p.m. UTC | #3
Dne 28.7.2015 v 21:27 Theodore Ts'o napsal(a):
> On Wed, Jun 17, 2015 at 09:34:34AM +0300, Riku Voipio wrote:
>> Hi,
>>
>> On 16 June 2015 at 05:17, Theodore Ts'o <tytso@mit.edu> wrote:
>>> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
>>
>> 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

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

Patch

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 88dbf23..159ec7c 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -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