Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lCw1f-0006Ph-JI for mharc-grub-devel@gnu.org; Thu, 18 Feb 2021 22:00:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCw1d-0006Ls-JA for grub-devel@gnu.org; Thu, 18 Feb 2021 22:00:13 -0500 Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]:45732) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCw1a-0005ZY-Qq for grub-devel@gnu.org; Thu, 18 Feb 2021 22:00:13 -0500 Received: by mail-qt1-x830.google.com with SMTP id o30so2697455qtd.12 for ; Thu, 18 Feb 2021 19:00:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HHiqOoCGqrWQbIcZ+gZHujli0HQ/oCASXCA58dVfWjs=; b=alRHh2jbOXLm3aqS/LVsU14KS9h/JTz3pAJvzd7P9Hye9KqnlyIckcu3oQxQAdm1SY HHZHmAqOlPDa37c827WLxJOwFiWNZe1xxKAnB7ncObQJy2fu5pbE1szQC/8d3Vd2gR0f ZwZgGFLC902XLflkysIEb9cSt9V5saa446VVUyHbwBqdqgvVuq9EUfUsEPGT8xHZRqZq 2HW2cp8iIEDWMABKWevtRO7bs0h1RP5v/d1Lxf6zLpZTUf+p4i9JXr1CXdh/qiRZoxOX h+w8FaTa4LnPB899BRYvxHDXA33wznYT/uWMc+5YLlsQ6pSjbtrjmCbhGZpWK2c8Qhwb dBdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HHiqOoCGqrWQbIcZ+gZHujli0HQ/oCASXCA58dVfWjs=; b=Cb1q73+yob+fq1m5Oc9k85DnpkZqHc9/1DhWNlZywdCJfoBWB0em8KKRcGgQghynJf P4EwFCLFhxIYg2NqMtRhvWAosZ+jRBWZdVFiZui1wfbX3I58eznV2Ck55cnXHuQKGbl5 OD5ToTfapbqIgKyTSRw3wrpterVQCzqFXg24LIZF4qZGDbnc2NOCOdIY9QIDY9yrpayk cdVEnG8E+yT2m4TQTDdBXBoqnYRp1gVoXSkq56yd9EkpbAsMjrE5Jy/SEQYmuQiXRxRh 3m4MFmsfXFMyVkTstGkLpUgkY5mEWmmgWMxFpy4uu7INErJstvqt2hxqXUm19pnAjbJE pE9g== X-Gm-Message-State: AOAM532fmZBFBjOYWehb5CdKriC8pZSLwSTGgOfHkVX5x53lEY4D5HND rBAp9tJ4OsD4dozhNiKjji0kSi2YxXf1MA== X-Google-Smtp-Source: ABdhPJy1b/ILZwp5Oz7kWPeYAMN1cgAdG8JdhuGDVeNpPIeuln8w89wGH8fxwMpQrurQT2zpRi3j0Q== X-Received: by 2002:ac8:4d08:: with SMTP id w8mr7254412qtv.289.1613703609650; Thu, 18 Feb 2021 19:00:09 -0800 (PST) Received: from localhost.localdomain ([2605:a601:aac5:3700:c323:c101:d96b:34f1]) by smtp.gmail.com with ESMTPSA id b17sm2468294qtq.56.2021.02.18.19.00.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Feb 2021 19:00:09 -0800 (PST) From: Glenn Washburn To: grub-devel@gnu.org Cc: Daniel Kiper , Glenn Washburn Subject: [CI 15/17] grub-shell: Update qemu UEFI firmware names to be more generic Date: Thu, 18 Feb 2021 20:59:34 -0600 Message-Id: <7a6ca861a66716fc996b241c296ca02fd831917a.1613698435.git.development@efficientek.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::830; envelope-from=development@efficientek.com; helo=mail-qt1-x830.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2021 03:00:14 -0000 The current qemu firmware paths for arm-efi and arm64-efi are hardcoded and not available on Ubuntu/Debian. Make these paths relative and basenames generic. The idea is that regardless where or what names firmware images are installed under they can be copied and renamed into a temporary directory. Then use the -L argument to qemu to point to that directory. For convenience, the GRUB source directory which build grub-shell will be added to the list of firmware paths that qemu will search. So all that is needed is to copy the firmwares to the source directory with potential renames. Signed-off-by: Glenn Washburn --- tests/util/grub-shell.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index 332fae704..33d39d4dd 100644 --- a/tests/util/grub-shell.in +++ b/tests/util/grub-shell.in @@ -74,7 +74,7 @@ exec_show_error () { work_directory=${WORKDIR:-`mktemp -d "${TMPDIR:-/tmp}/grub-shell.XXXXXXXXXX"`} || exit 1 . "${builddir}/grub-core/modinfo.sh" -qemuopts="${GRUB_QEMU_OPTS}" +qemuopts="${GRUB_QEMU_OPTS} -L ${srcdir}" serial_port=com0 serial_null= halt_cmd=halt @@ -194,7 +194,7 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in boot=hd console=console trim=1 - qemuopts="-machine virt -cpu cortex-a57 -bios /usr/share/qemu-efi/QEMU_EFI.fd $qemuopts" + qemuopts="-machine virt -cpu cortex-a57 -bios OVMF-aarch64.fd $qemuopts" disk="device virtio-blk-device,drive=hd1 -drive if=none,id=hd1,file=" serial_port= ;; @@ -203,7 +203,7 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in boot=hd console=console trim=1 - qemuopts="-machine virt -bios /usr/share/ovmf-arm/QEMU_EFI.fd $qemuopts" + qemuopts="-machine virt -bios OVMF-arm.fd $qemuopts" disk="device virtio-blk-device,drive=hd1 -drive if=none,id=hd1,file=" serial_port=efi0 ;; -- 2.27.0