rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 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 VMLINUX_SYMBOL(system_certificate_list) |
| 9 | VMLINUX_SYMBOL(system_certificate_list): |
| 10 | __cert_list_start: |
| 11 | #ifdef CONFIG_MODULE_SIG |
| 12 | .incbin "certs/signing_key.x509" |
| 13 | #endif |
| 14 | .incbin "certs/x509_certificate_list" |
| 15 | __cert_list_end: |
| 16 | |
| 17 | #ifdef CONFIG_SYSTEM_EXTRA_CERTIFICATE |
| 18 | .globl VMLINUX_SYMBOL(system_extra_cert) |
| 19 | .size system_extra_cert, CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE |
| 20 | VMLINUX_SYMBOL(system_extra_cert): |
| 21 | .fill CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE, 1, 0 |
| 22 | |
| 23 | .align 4 |
| 24 | .globl VMLINUX_SYMBOL(system_extra_cert_used) |
| 25 | VMLINUX_SYMBOL(system_extra_cert_used): |
| 26 | .int 0 |
| 27 | |
| 28 | #endif /* CONFIG_SYSTEM_EXTRA_CERTIFICATE */ |
| 29 | |
| 30 | .align 8 |
| 31 | .globl VMLINUX_SYMBOL(system_certificate_list_size) |
| 32 | VMLINUX_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 |