Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2030538rwd; Fri, 26 May 2023 00:08:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ64lYPQNJUoLz90SBprUSZz7AVDvZMAIcL/dnSD+noS6R7GK5hx3ZWrI4D+imrHOrHQR3bf X-Received: by 2002:a17:90a:be09:b0:24d:f59a:d331 with SMTP id a9-20020a17090abe0900b0024df59ad331mr1455484pjs.26.1685084915766; Fri, 26 May 2023 00:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685084915; cv=none; d=google.com; s=arc-20160816; b=I8Dh5qjrlvxbJBl8YWbK4ctgbSvrpMjFc1Eilvf/kjZAFhhRhc6yH4+9/QPR86c5nt nqYnPQMx67BB95/EwehDEt4ALwiqyvROtx9ZqRmoXcgomGzDSgmhTaUv8Ty6znaHWRLO jL+s1UP+8iGKbs32Og31FnHA4A30UWPKzfoUVw22aFq90hWT1YnXE0Q2yp5Xj/aCS8BQ XCbpzBynrgdq0F+pP1lPr6Wvt10/soXCq5boMpKIg0w1i+3DzvqPIZQ0HHLWCQ22ziwk ezndaEM4azoNlMTC2GmuWSLh0+4p77VCajDZvPpSjyN5ENIfyqx2tzAToxaKuAh/Gp+5 5WOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=n42OToOIkRmpLnUaz1lOv5y0bzlkGNJbCJEOIQuz+eg=; b=oSNBtK5nCgY/aV//t13DMYwnwQsXfUt3oaKT7+YtCZB5ZGqzzJFxiYcYk+wBa9Q8i6 2ZXbYy6hpDYNjTomrLYCtKbNw6jAru9K+htzHXW0DAX8rVLwr7c9UMWLesictZJCafoY 43Rz8luz5Ubf2Tx7C3AtslUdITE5WjSyqZa4UaN7pdK2PRReu6PQKVg6Td6ZolfbmJGZ 0kP2JvIXzS8ngZSwWOXJiTkWBVtbOHu/W1et84gEfrVtp73YIMpQvNuMdd3vLZSTEgta SrKyS0M59TMQxRBb2HawAbDmcKhG62dR4NPee47E0DZDEaR0W5hipHycXEbWYVS7Gq1c 3U5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b=AWSx7SOU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k23-20020a17090a591700b00246fe4e326dsi5423413pji.81.2023.05.26.00.08.24; Fri, 26 May 2023 00:08:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b=AWSx7SOU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242337AbjEZHAK (ORCPT + 99 others); Fri, 26 May 2023 03:00:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230097AbjEZHAH (ORCPT ); Fri, 26 May 2023 03:00:07 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FCA695; Fri, 26 May 2023 00:00:05 -0700 (PDT) Date: Fri, 26 May 2023 09:00:02 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=t-8ch.de; s=mail; t=1685084403; bh=e/0EPN0JCH/tcPW+VvvkOIq7ybBdSQzI1QOslmxOOag=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AWSx7SOU6H4PLSzMqjhNuDM2e3rNCz6zAQcp4W07o1NQ9f3RMvfMr2XGW2uVd82lF YHjkhNLQyiMWH/yVUdLjtoM1EruYqjrTwi2kdt8cPfs5k09Lyvyevyyc4DS5LOyLJq rXjWMOO25mja6MJXnk2zvzyeknaZYAfmI7q0I5Q8= From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Zhangjin Wu Cc: w@1wt.eu, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, palmer@dabbelt.com, paul.walmsley@sifive.com Subject: Re: [PATCH 06/13] selftests/nolibc: allow specify a bios for qemu Message-ID: <2ab94136-d341-4a26-964e-6d6c32e66c9b@t-8ch.de> References: <63bee74a7b3754a1b0e82bc57de52c18d2de003d.1684949268.git.falcon@tinylab.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <63bee74a7b3754a1b0e82bc57de52c18d2de003d.1684949268.git.falcon@tinylab.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-05-25 01:52:29+0800, Zhangjin Wu wrote: > riscv qemu has a builtin bios (opensbi), but it may not match the latest > kernel and some old versions may hang during boot, let's allow user pass > a newer version to qemu via the -bios option. Nitpick: This seems very specific and hopefully only necessary temporarily. Instead it could be changed to some generic mechanim like "QEMU_ARGS_EXTRA"? > we can use it like this: > > $ make run BIOS=/path/to/new-bios ... > > Signed-off-by: Zhangjin Wu > --- > tools/testing/selftests/nolibc/Makefile | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile > index 9adc8944dd80..9213763ab3b6 100644 > --- a/tools/testing/selftests/nolibc/Makefile > +++ b/tools/testing/selftests/nolibc/Makefile > @@ -70,7 +70,8 @@ QEMU_ARGS_mips = -M malta -append "panic=-1 $(TEST:%=NOLIBC_TEST=%)" > QEMU_ARGS_riscv = -M virt -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=%)" > QEMU_ARGS_s390 = -M s390-ccw-virtio -m 1G -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=%)" > QEMU_ARGS_loongarch = -M virt -append "console=ttyS0,115200 panic=-1 $(TEST:%=NOLIBC_TEST=%)" > -QEMU_ARGS = $(QEMU_ARGS_$(ARCH)) > +QEMU_ARGS_BIOS = $(if $(BIOS),-bios $(BIOS)) > +QEMU_ARGS = $(QEMU_ARGS_$(ARCH)) $(QEMU_ARGS_BIOS) > > # OUTPUT is only set when run from the main makefile, otherwise > # it defaults to this nolibc directory. > -- > 2.25.1 >