system_certificates.S 828 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #include <linux/export.h>
  3. #include <linux/init.h>
  4. __INITRODATA
  5. .align 8
  6. .globl system_certificate_list
  7. system_certificate_list:
  8. __cert_list_start:
  9. #ifdef CONFIG_MODULE_SIG
  10. .incbin "certs/signing_key.x509"
  11. #endif
  12. .incbin "certs/x509_certificate_list"
  13. __cert_list_end:
  14. #ifdef CONFIG_SYSTEM_EXTRA_CERTIFICATE
  15. .globl system_extra_cert
  16. .size system_extra_cert, CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE
  17. system_extra_cert:
  18. .fill CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE, 1, 0
  19. .align 4
  20. .globl system_extra_cert_used
  21. system_extra_cert_used:
  22. .int 0
  23. #endif /* CONFIG_SYSTEM_EXTRA_CERTIFICATE */
  24. .align 8
  25. .globl system_certificate_list_size
  26. system_certificate_list_size:
  27. #ifdef CONFIG_64BIT
  28. .quad __cert_list_end - __cert_list_start
  29. #else
  30. .long __cert_list_end - __cert_list_start
  31. #endif