blob: 8f29058adf93c9f30b53035e6784cd337a2c0a12 [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
Masahiro Yamadac4df32c2018-08-19 07:34:47 +09008 .globl system_certificate_list
9system_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
Masahiro Yamadac4df32c2018-08-19 07:34:47 +090018 .globl system_extra_cert
Mehmet Kayaalpc4c36102015-11-24 16:18:05 -050019 .size system_extra_cert, CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE
Masahiro Yamadac4df32c2018-08-19 07:34:47 +090020system_extra_cert:
Mehmet Kayaalpc4c36102015-11-24 16:18:05 -050021 .fill CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE, 1, 0
22
David Howells0d1db3e2016-02-29 14:44:30 +000023 .align 4
Masahiro Yamadac4df32c2018-08-19 07:34:47 +090024 .globl system_extra_cert_used
25system_extra_cert_used:
Mehmet Kayaalpc4c36102015-11-24 16:18:05 -050026 .int 0
27
28#endif /* CONFIG_SYSTEM_EXTRA_CERTIFICATE */
29
Hendrik Brueckner62226982013-12-05 14:48:22 +010030 .align 8
Masahiro Yamadac4df32c2018-08-19 07:34:47 +090031 .globl system_certificate_list_size
32system_certificate_list_size:
Hendrik Brueckner62226982013-12-05 14:48:22 +010033#ifdef CONFIG_64BIT
34 .quad __cert_list_end - __cert_list_start
35#else
36 .long __cert_list_end - __cert_list_start
37#endif