aboutsummaryrefslogtreecommitdiff
path: root/src/vboot/vboot_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vboot/vboot_common.h')
-rw-r--r--src/vboot/vboot_common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vboot/vboot_common.h b/src/vboot/vboot_common.h
index aa01f28944..8421ecb640 100644
--- a/src/vboot/vboot_common.h
+++ b/src/vboot/vboot_common.h
@@ -104,8 +104,14 @@ void verstage_main(void);
void verstage_mainboard_init(void);
/* Check boot modes */
+#if IS_ENABLED(CONFIG_VBOOT)
int vboot_developer_mode_enabled(void);
int vboot_recovery_mode_enabled(void);
int vboot_recovery_mode_memory_retrain(void);
+#else /* !CONFIG_VBOOT */
+static inline int vboot_developer_mode_enabled(void) { return 0; }
+static inline int vboot_recovery_mode_enabled(void) { return 0; }
+static inline int vboot_recovery_mode_memory_retrain(void) { return 0; }
+#endif
#endif /* __VBOOT_VBOOT_COMMON_H__ */