From: Stefan Knoblich <s.knoblich@axsentis.de>
To: linux-kernel@vger.kernel.org
Cc: weiyj.lk@gmail.com, dhowells@redhat.com,
Stefan Knoblich <s.knoblich@axsentis.de>
Subject: Re: CONFIG_MODULE_SIG breaks out-of-tree modules in modpost.
Date: Thu, 18 Oct 2012 12:57:50 +0200 [thread overview]
Message-ID: <1350557870-5660-1-git-send-email-s.knoblich@axsentis.de> (raw)
In-Reply-To: <CAPgLHd-9oJhKGfpewf2shxKhGWFOVdcxjhFrvHx4fDc=hxo3Kw@mail.gmail.com>
I've had the same problem building dahdi-linux-2.6.1, attached
patch fixed it:
From: Stefan Knoblich <s.knoblich@axsentis.de>
Date: Tue, 16 Oct 2012 12:40:29 +0200
Subject: [PATCH] MODSIGN: Fix modpost for external modules with
CONFIG_MODULE_SIG=y
Modpost with CONFIG_MODULE_SIG=y skips the signing step for external
modules by forcing SIGN_MODULES=0, breaking the build because
cmd_sign_ko_ko_stripped is undefined in that case:
CC /tmp/dahdi-linux-2.6.1/drivers/dahdi/../staging/echo/echo.mod.o
LD [M] /tmp/dahdi-linux-2.6.1/drivers/dahdi/../staging/echo/echo.ko.unsigned
STRIP [M] /tmp/dahdi-linux-2.6.1/drivers/dahdi/../staging/echo/echo.ko.stripped
/bin/sh: -c: line 0: syntax error near unexpected token `;'
/bin/sh: -c: line 0: `set -e; ; echo 'cmd_/tmp/dahdi-linux-2.6.1/drivers/dahdi/
../staging/echo/echo.ko := ' > /tmp/dahdi-linux-2.6.1/drivers/dahdi/
../staging/echo/.echo.ko.cmd'
Renaming the misnamed {quiet_,}cmd_sign_ko_ko_unsigned commands
fixes that error.
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
---
scripts/Makefile.modpost | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost
index 0020891..85c0d10 100644
--- a/scripts/Makefile.modpost
+++ b/scripts/Makefile.modpost
@@ -188,8 +188,8 @@ quiet_cmd_sign_ko_ko_stripped = SIGN [M] $@
sh $(SCRIPTS_DIR)/sign-file $(MODSECKEY) $(MODPUBKEY) $< $@
else
KEYRING_DEP :=
-quiet_cmd_sign_ko_ko_unsigned = NO SIGN [M] $@
- cmd_sign_ko_ko_unsigned = \
+quiet_cmd_sign_ko_ko_stripped = NO SIGN [M] $@
+ cmd_sign_ko_ko_stripped = \
cp $< $@
endif
--
1.7.8.6
prev parent reply other threads:[~2012-10-18 11:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-13 1:04 Valdis Kletnieks
2012-10-15 12:19 ` David Howells
2012-10-18 10:22 ` Wei Yongjun
2012-10-18 10:57 ` Stefan Knoblich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1350557870-5660-1-git-send-email-s.knoblich@axsentis.de \
--to=s.knoblich@axsentis.de \
--cc=dhowells@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=weiyj.lk@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®