Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347104
b: refs/heads/master
c: 919aa45
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai authored and Rusty Russell committed Dec 14, 2012
1 parent 595cf70 commit 49bcb8c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 82fab442f5322b016f72891c0db2436c6a6c20b7
refs/heads/master: 919aa45e43a84d40c27c83f6117cfa6542cee14e
4 changes: 2 additions & 2 deletions trunk/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o
obj-$(CONFIG_PROVE_LOCKING) += spinlock.o
obj-$(CONFIG_UID16) += uid16.o
obj-$(CONFIG_MODULES) += module.o
obj-$(CONFIG_MODULE_SIG) += module_signing.o modsign_pubkey.o
obj-$(CONFIG_MODULE_SIG) += module_signing.o modsign_pubkey.o modsign_certificate.o
obj-$(CONFIG_KALLSYMS) += kallsyms.o
obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
obj-$(CONFIG_KEXEC) += kexec.o
Expand Down Expand Up @@ -139,7 +139,7 @@ ifeq ($(CONFIG_MODULE_SIG),y)
extra_certificates:
touch $@

kernel/modsign_pubkey.o: signing_key.x509 extra_certificates
kernel/modsign_certificate.o: signing_key.x509 extra_certificates

###############################################################################
#
Expand Down
19 changes: 19 additions & 0 deletions trunk/kernel/modsign_certificate.S
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* SYMBOL_PREFIX defined on commandline from CONFIG_SYMBOL_PREFIX */
#ifndef SYMBOL_PREFIX
#define ASM_SYMBOL(sym) sym
#else
#define PASTE2(x,y) x##y
#define PASTE(x,y) PASTE2(x,y)
#define ASM_SYMBOL(sym) PASTE(SYMBOL_PREFIX, sym)
#endif

#define GLOBAL(name) \
.globl ASM_SYMBOL(name); \
ASM_SYMBOL(name):

.section ".init.data","aw"

GLOBAL(modsign_certificate_list)
.incbin "signing_key.x509"
.incbin "extra_certificates"
GLOBAL(modsign_certificate_list_end)
6 changes: 0 additions & 6 deletions trunk/kernel/modsign_pubkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ struct key *modsign_keyring;

extern __initdata const u8 modsign_certificate_list[];
extern __initdata const u8 modsign_certificate_list_end[];
asm(".section .init.data,\"aw\"\n"
SYMBOL_PREFIX "modsign_certificate_list:\n"
".incbin \"signing_key.x509\"\n"
".incbin \"extra_certificates\"\n"
SYMBOL_PREFIX "modsign_certificate_list_end:"
);

/*
* We need to make sure ccache doesn't cache the .o file as it doesn't notice
Expand Down

0 comments on commit 49bcb8c

Please sign in to comment.