From 9c6d57dc7e836c67aef95bc49ba6e7fe714b09d4 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 28 Jan 2023 15:00:25 -0700 Subject: qemu: Add a bootmeth for qfw This supports reading a kernel and ramdisk from qfw, then loading it with either the booti or bootz commands. For now this uses the existing booti and bootz commands, rather than trying to call that functionality directly (e.g. do_bootm_states()). It does not require the HUSH parser though, which helps a little with size. Signed-off-by: Simon Glass --- boot/bootflow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot/bootflow.c') diff --git a/boot/bootflow.c b/boot/bootflow.c index b8fa37ee2a0..60791e681bd 100644 --- a/boot/bootflow.c +++ b/boot/bootflow.c @@ -508,7 +508,7 @@ int bootflow_iter_check_blk(const struct bootflow_iter *iter) enum uclass_id id = device_get_uclass_id(media); log_debug("uclass %d: %s\n", id, uclass_get_name(id)); - if (id != UCLASS_ETH && id != UCLASS_BOOTSTD) + if (id != UCLASS_ETH && id != UCLASS_BOOTSTD && id != UCLASS_QFW) return 0; return -ENOTSUPP; -- cgit v1.2.3