MODSIGN: Avoid using .incbin in C source
[platform/adaptation/renesas_rcar/renesas_kernel.git] / kernel / modsign_certificate.S
1 /* SYMBOL_PREFIX defined on commandline from CONFIG_SYMBOL_PREFIX */
2 #ifndef SYMBOL_PREFIX
3 #define ASM_SYMBOL(sym) sym
4 #else
5 #define PASTE2(x,y) x##y
6 #define PASTE(x,y) PASTE2(x,y)
7 #define ASM_SYMBOL(sym) PASTE(SYMBOL_PREFIX, sym)
8 #endif
9
10 #define GLOBAL(name)    \
11         .globl ASM_SYMBOL(name);        \
12         ASM_SYMBOL(name):
13
14         .section ".init.data","aw"
15
16 GLOBAL(modsign_certificate_list)
17         .incbin "signing_key.x509"
18         .incbin "extra_certificates"
19 GLOBAL(modsign_certificate_list_end)