aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/loaders/load_and_run_romstage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/loaders/load_and_run_romstage.c')
-rw-r--r--src/lib/loaders/load_and_run_romstage.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/loaders/load_and_run_romstage.c b/src/lib/loaders/load_and_run_romstage.c
index b54bfc7e5..b54c6917a 100644
--- a/src/lib/loaders/load_and_run_romstage.c
+++ b/src/lib/loaders/load_and_run_romstage.c
@@ -24,12 +24,19 @@
#include <cbfs.h>
#include <halt.h>
#include <program_loading.h>
+#include <rules.h>
#include <timestamp.h>
extern const struct prog_loader_ops cbfs_romstage_loader;
+extern const struct prog_loader_ops vboot_loader;
static const struct prog_loader_ops *loaders[] = {
+#if CONFIG_VBOOT_VERIFY_FIRMWARE
+ &vboot_loader,
+#endif
+#if !ENV_VERSTAGE || (ENV_VERSTAGE && !CONFIG_RETURN_FROM_VERSTAGE)
&cbfs_romstage_loader,
+#endif
};
void run_romstage(void)