Linux 6.9-rc1
[linux-2.6-microblaze.git] / certs / system_certificates.S
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <linux/export.h>
3 #include <linux/init.h>
4
5         __INITRODATA
6
7         .align 8
8         .globl system_certificate_list
9 system_certificate_list:
10 __cert_list_start:
11 __module_cert_start:
12 #if defined(CONFIG_MODULE_SIG) || (defined(CONFIG_IMA_APPRAISE_MODSIG) \
13                                && defined(CONFIG_MODULES))
14         .incbin "certs/signing_key.x509"
15 #endif
16 __module_cert_end:
17         .incbin "certs/x509_certificate_list"
18 __cert_list_end:
19
20 #ifdef CONFIG_SYSTEM_EXTRA_CERTIFICATE
21         .globl system_extra_cert
22         .size system_extra_cert, CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE
23 system_extra_cert:
24         .fill CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE, 1, 0
25
26         .align 4
27         .globl system_extra_cert_used
28 system_extra_cert_used:
29         .int 0
30
31 #endif /* CONFIG_SYSTEM_EXTRA_CERTIFICATE */
32
33         .align 8
34         .globl system_certificate_list_size
35 system_certificate_list_size:
36 #ifdef CONFIG_64BIT
37         .quad __cert_list_end - __cert_list_start
38 #else
39         .long __cert_list_end - __cert_list_start
40 #endif
41
42         .align 8
43         .globl module_cert_size
44 module_cert_size:
45 #ifdef CONFIG_64BIT
46         .quad __module_cert_end - __module_cert_start
47 #else
48         .long __module_cert_end - __module_cert_start
49 #endif