blob: c9ceb71a43fef10925090939e9ce3de8367e8e86 [file] [log] [blame]
David Howellsb56e5a12013-08-30 16:07:30 +01001#include <linux/export.h>
2#include <linux/init.h>
3
David Howellsb56e5a12013-08-30 16:07:30 +01004 __INITRODATA
5
Hendrik Brueckner62226982013-12-05 14:48:22 +01006 .align 8
Chen Gang6ef4d2e2013-10-30 09:11:28 +08007 .globl VMLINUX_SYMBOL(system_certificate_list)
8VMLINUX_SYMBOL(system_certificate_list):
Hendrik Brueckner62226982013-12-05 14:48:22 +01009__cert_list_start:
David Woodhouse770f2b92015-07-20 21:16:34 +010010#ifdef CONFIG_MODULE_SIG
David Howellscfc411e2015-08-14 15:20:41 +010011 .incbin "certs/signing_key.x509"
David Woodhouse770f2b92015-07-20 21:16:34 +010012#endif
David Howellscfc411e2015-08-14 15:20:41 +010013 .incbin "certs/x509_certificate_list"
Hendrik Brueckner62226982013-12-05 14:48:22 +010014__cert_list_end:
15
Mehmet Kayaalpc4c36102015-11-24 16:18:05 -050016#ifdef CONFIG_SYSTEM_EXTRA_CERTIFICATE
17 .globl VMLINUX_SYMBOL(system_extra_cert)
18 .size system_extra_cert, CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE
19VMLINUX_SYMBOL(system_extra_cert):
20 .fill CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE, 1, 0
21
David Howells0d1db3e2016-02-29 14:44:30 +000022 .align 4
Mehmet Kayaalpc4c36102015-11-24 16:18:05 -050023 .globl VMLINUX_SYMBOL(system_extra_cert_used)
24VMLINUX_SYMBOL(system_extra_cert_used):
25 .int 0
26
27#endif /* CONFIG_SYSTEM_EXTRA_CERTIFICATE */
28
Hendrik Brueckner62226982013-12-05 14:48:22 +010029 .align 8
30 .globl VMLINUX_SYMBOL(system_certificate_list_size)
31VMLINUX_SYMBOL(system_certificate_list_size):
32#ifdef CONFIG_64BIT
33 .quad __cert_list_end - __cert_list_start
34#else
35 .long __cert_list_end - __cert_list_start
36#endif