summaryrefslogtreecommitdiff
path: root/common/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/main.c')
-rw-r--r--common/main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/common/main.c b/common/main.c
index b2eb2eebe4..8a1c1dabb1 100644
--- a/common/main.c
+++ b/common/main.c
@@ -170,8 +170,8 @@ test_mockable __keep int main(void)
button_init();
#endif
-#ifndef CONFIG_VBOOT_EC
-#if defined(CONFIG_RWSIG) && !defined(HAS_TASK_RWSIG)
+#if !defined(CONFIG_VBOOT_EFS) && \
+ defined(CONFIG_RWSIG) && !defined(HAS_TASK_RWSIG)
/*
* Check the RW firmware signature and jump to it if it is good.
*
@@ -192,8 +192,7 @@ test_mockable __keep int main(void)
rwsig_jump_now();
}
}
-#endif
-#endif /* !CONFIG_VBOOT_EC */
+#endif /* !CONFIG_VBOOT_EFS && CONFIG_RWSIG && !HAS_TASK_RWSIG */
/*
* Print the init time. Not completely accurate because it can't take