blob: 3918ff7235ed8bfb1425269a867cd3133ec58730 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
David Howellsb56e5a12013-08-30 16:07:30 +01002#include <linux/export.h>
3#include <linux/init.h>
4
David Howellsb56e5a12013-08-30 16:07:30 +01005 __INITRODATA
6
Hendrik Brueckner62226982013-12-05 14:48:22 +01007 .align 8
Chen Gang6ef4d2e2013-10-30 09:11:28 +08008 .globl VMLINUX_SYMBOL(system_certificate_list)
9VMLINUX_SYMBOL(system_certificate_list):
Hendrik Brueckner62226982013-12-05 14:48:22 +010010__cert_list_start:
David Woodhouse770f2b92015-07-20 21:16:34 +010011#ifdef CONFIG_MODULE_SIG
David Howellscfc411e2015-08-14 15:20:41 +010012 .incbin "certs/signing_key.x509"
David Woodhouse770f2b92015-07-20 21:16:34 +010013#endif
David Howellscfc411e2015-08-14 15:20:41 +010014 .incbin "certs/x509_certificate_list"
Hendrik Brueckner62226982013-12-05 14:48:22 +010015__cert_list_end:
16
Mehmet Kayaalpc4c36102015-11-24 16:18:05 -050017#ifdef CONFIG_SYSTEM_EXTRA_CERTIFICATE
18 .globl VMLINUX_SYMBOL(system_extra_cert)
19 .size system_extra_cert, CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE
20VMLINUX_SYMBOL(system_extra_cert):
21 .fill CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE, 1, 0
22
David Howells0d1db3e2016-02-29 14:44:30 +000023 .align 4
Mehmet Kayaalpc4c36102015-11-24 16:18:05 -050024 .globl VMLINUX_SYMBOL(system_extra_cert_used)
25VMLINUX_SYMBOL(system_extra_cert_used):
26 .int 0
27
28#endif /* CONFIG_SYSTEM_EXTRA_CERTIFICATE */
29
Hendrik Brueckner62226982013-12-05 14:48:22 +010030 .align 8
31 .globl VMLINUX_SYMBOL(system_certificate_list_size)
32VMLINUX_SYMBOL(system_certificate_list_size):
33#ifdef CONFIG_64BIT
34 .quad __cert_list_end - __cert_list_start
35#else
36 .long __cert_list_end - __cert_list_start
37#endif