mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 13:14:07 +08:00
919aa45e43
Using the asm .incbin statement in C sources breaks any gcc wrapper which
assumes that preprocessed C source is self-contained. Use a separate .S
file to include the siging key and certificate.
[ This means we no longer need SYMBOL_PREFIX which is defined in kernel.h
from cbdbf2abb7
, so I removed it -- RR ]
Tested-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: James Hogan <james.hogan@imgtec.com>
20 lines
467 B
ArmAsm
20 lines
467 B
ArmAsm
/* 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)
|