[PATCH master] test: emulate.pl: fix support for multiple block devices

Sascha Hauer sha at pengutronix.de
Sun Oct 9 23:16:43 PDT 2022


On Mon, Oct 10, 2022 at 08:05:04AM +0200, Ahmad Fatoum wrote:
> Block devices on QEMU command line need a unique id. The id factors in
> $i, which we failed to increment.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
>  test/emulate.pl | 2 ++
>  1 file changed, 2 insertions(+)

Applied, thanks

Sascha

> 
> diff --git a/test/emulate.pl b/test/emulate.pl
> index 77b751a329b3..b5e2188b86dd 100755
> --- a/test/emulate.pl
> +++ b/test/emulate.pl
> @@ -253,6 +253,8 @@ sub emulate {
>  		} else {
>  		    die "--blk unsupported for target\n";
>  		}
> +
> +		$i++;
>  	    }
>  
>  	    # note that barebox doesn't yet support multiple virtio consoles
> -- 
> 2.30.2
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list