From b5b43f45c7b44e1f8c8faab4175ee3d6e83580bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Vejpustek?= Date: Tue, 19 Nov 2024 13:34:08 +0100 Subject: [PATCH] refactor(core): use separate implementation of secret.c for unix [no changelog] --- core/embed/sec/secret/unix/secret.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) mode change 120000 => 100644 core/embed/sec/secret/unix/secret.c diff --git a/core/embed/sec/secret/unix/secret.c b/core/embed/sec/secret/unix/secret.c deleted file mode 120000 index 91e08f2ec9..0000000000 --- a/core/embed/sec/secret/unix/secret.c +++ /dev/null @@ -1 +0,0 @@ -../stm32f4/secret.c \ No newline at end of file diff --git a/core/embed/sec/secret/unix/secret.c b/core/embed/sec/secret/unix/secret.c new file mode 100644 index 0000000000..64ee3e13d1 --- /dev/null +++ b/core/embed/sec/secret/unix/secret.c @@ -0,0 +1,15 @@ +#include + +#ifdef KERNEL_MODE + +void secret_write_header(void) {} + +secbool secret_optiga_present(void) { return secfalse; } + +void secret_optiga_erase(void) {} + +secbool secret_bootloader_locked(void) { return sectrue; } + +void secret_prepare_fw(secbool allow_run_with_secret, secbool _trust_all) {} + +#endif // KERNEL_MODE