Skip to contentSkip to conversation

riscv: bootm: Add dryrun check

PATCH New Sascha Hauer 1 participant 1 message Jun 23, 2021 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: bootm: Add dryrun check

Abort booting in time when doing a dryrun boot.

---
 arch/riscv/lib/bootm.c | 3 +++
 1 file changed, 3 insertions(+)
arch/riscv/lib/bootm.c +3 -0
index b3e41de4a8..c99ae18974 100644
@@ -13,6 +13,9 @@ static int do_bootm_linux(struct image_data *data)
 	if (IS_ERR(fn))
 		return PTR_ERR(fn);
 
+	if (data->dryrun)
+		return 0;
+
 	shutdown_barebox();
 
 	fn(0, devicetree, 0);
Signature · 7 lines
2.29.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox