From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12AABC433EF for ; Thu, 28 Oct 2021 15:27:45 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0F2DC60D43 for ; Thu, 28 Oct 2021 15:27:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0F2DC60D43 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8808F80D28; Thu, 28 Oct 2021 17:27:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="CZ61tJbO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 193FD82E88; Thu, 28 Oct 2021 17:27:39 +0200 (CEST) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4D60E80D1C for ; Thu, 28 Oct 2021 17:27:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1635434852; bh=AOcHZLTND04zNbNRKDs1gLhvgt6eo3rYsgvT87EhVRo=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=CZ61tJbOmVuxBORpbAhxOU0rrHxqP+6NeRHfu9mbrzohQ0tnPYnts56GUqkKd9MGV kFNaWvwvvMGEderpuSbTL7VN3p6mNMZUznEisSHlcG55wY3J20SjD66sfRhVgBMbqO wyry57qNtH6H/yUI0IJWN+mnFssn/F3G7fKr5oKU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.123.55] ([88.152.144.157]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MZTmY-1mBrFN38II-00WSfH; Thu, 28 Oct 2021 17:27:31 +0200 Message-ID: <8dd3b7b1-afef-d090-f193-26875f28350a@gmx.de> Date: Thu, 28 Oct 2021 17:27:30 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.2 Subject: Re: [PATCH v3 01/35] efi: Add a script for building and testing U-Boot on UEFI Content-Language: en-US To: Simon Glass Cc: Ilias Apalodimas , Christian Melki , Bin Meng , Tom Rini , U-Boot Mailing List , Alexander Graf References: <20211026033058.430010-1-sjg@chromium.org> <20211025213041.v3.1.Ic4d32c355c4baf5745ba07ba17c04d0726791618@changeid> <4cc3370d-1d52-8c4e-1726-1db4d5f2e6d6@gmx.de> From: Heinrich Schuchardt In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:QgqZlNNpHMjAM2mGz+k6GgGfeZ7cNcdlZSx8lHTbPQVrYbb15o9 /gba4IZTsns3tXHa11i8z6tnUn/xAPC4fXVGRl5xA2zknAhaSlaAGkKi/BMRhbjucgKsQSe XlwmkOA72hSPzhLrT8g6McWH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UAzP9a8E pLMYD3P+EdzW6tWYbOT1pf3ubMww1DFBo3HQsn0aEcpy0AHspIIg7WHfSlFaEuvfp99at7f27 9ZcDKZUH6n6qm5ayVwxJwjbDVvu6MwxJdlKdbhmilAGx9wEl1B/sXjuviKwEM2FpCbQIyEtic UqhYKkFdzcHLFR2JzHaXW/UPtUa9A/wnEMCkBEGPeyFz0t1tWUxQZ4OuQC5+Wa7aawOPWr2bB THf+oy10ChrcE7TYtf/HMmJua4 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On 10/28/21 16:19, Simon Glass wrote: > Hi Heinrich, > > On Wed, 27 Oct 2021 at 23:38, Heinrich Schuchardt w= rote: >> >> On 10/26/21 5:30 AM, Simon Glass wrote: >>> It is quite complicated to run U-Boot on QEMU since we have four >>> different builds and they must use different versions of qemu and the >>> UEFI binaries. >>> >>> Add a script to help. >>> >>> Signed-off-by: Simon Glass >> >> It seems that you missed some of my review comments: >> >> * The script does not work: >> >> $ scripts/build-efi.sh -wsPr >> Packaging efi-x86_app32 >> [sudo] password for user: >> cp: cannot stat '/tmp/b//efi-x86_app32/u-boot-app.efi': No such file or >> directory >> >> * Do not use fixed directories in /tmp but use 'mktemp -d' to create a >> unique directory. > > Did you see my response when you asked about that last time? To > repeat, you need to build U-Boot somewhere and have a build directory. > If this script creates a tmpdir, what is the point? We still need the > build dir. The title of this patch is: "Add a script for *building and testing* U-Boot on UEFI" I can't it see building. Best regards Heinrich > > Also: > >>> +# Set ubdir to the build directory where you build U-Boot out-of-tree >>> +# We avoid in-tree build because it gets confusing trying different b= uilds > > > Also documented at the very top of the script: > > [..] > > >>> +# Script to build an EFI thing suitable for booting with QEMU, possib= ly running >>> +# it also. >>> + >>> +# This just an example. It assumes that >>> + >>> +# - you build U-Boot in ${ubdir}/ where is the U-Boot bo= ard config >>> +# - /mnt/x is a directory used for mounting >>> +# - you have access to the 'pure UEFI' builds for QEMU >>> +# >>> +# UEFI binaries for QEMU used for testing this script: >>> +# >>> +# OVMF-pure-efi.i386.fd at >>> +# https://drive.google.com/file/d/1jWzOAZfQqMmS2_dAK2G518GhIgj9r2RY/v= iew?usp=3Dsharing >>> + >>> +# OVMF-pure-efi.x64.fd at >>> +# https://drive.google.com/file/d/1c39YI9QtpByGQ4V0UNNQtGqttEzS-eFV/v= iew?usp=3Dsharing >>> + > > Regards, > Simon >