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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 962BDC433F5 for ; Sat, 29 Jan 2022 21:40:45 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 56E5F8169D; Sat, 29 Jan 2022 22:40:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.b="fzuRBI9Z"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2CFAA820FE; Sat, 29 Jan 2022 22:40:41 +0100 (CET) Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) (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 2D428811B3 for ; Sat, 29 Jan 2022 22:40:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=heinrich.schuchardt@canonical.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 4C4573F1E0 for ; Sat, 29 Jan 2022 21:40:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643492437; bh=jbS9vciWv7oR9nKTkoU50sAYGFrybpvIqMA5OfEKmk4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fzuRBI9ZALy1fbflSh2Aa9vHGagGIyize+Z2vT6IGTn3xh4JdZsRLBnFs54Sn1ZvO QQNvfUIJfB8ydk8bxHoee/dG8Pt/XBg3q+ucgTHXqxAOl74WKIuLqGkAn7zVpz0dP7 s4/w87xzkqRDRrOnu8FBRzuWHc+qn2tbme+QeBeXKi8xlVx5YUpFW7bQw+fu+5INHZ dz1iN/XyxuE5e79rdjq20yICOzY28YvXbdHq0nsoH2oaT5IkWx9KLWXPlhn8hU3COF pNV3P7K8Nl1OmciY8aoKjoPyJNNH3Yi2kci+dfaKGH0XHPFDPc/szZA+IQ4Q4I0Ikk 83/gKwDspj9Mg== Received: by mail-ed1-f71.google.com with SMTP id o25-20020a056402039900b0040631c2a67dso4827664edv.19 for ; Sat, 29 Jan 2022 13:40:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=jbS9vciWv7oR9nKTkoU50sAYGFrybpvIqMA5OfEKmk4=; b=EfQUj9NribIuBOwz8auAJ5eVqiNNRLqi6jdRuUjjXjXAUD9y6lAja4NbXL2okDADXG 2bN1+R71aO3g2ugJLeN8MrUM+nmRibu0nraOMmwMadBCLFifsHHAG5O0F56+siG3tauG JUOMghJKcguXOkqP0xKbG9UAG2/a8IcBEXv7Yb5Qm+9m9EYwq5D2U8EEoWecrPGpFoIp t164sARfhGiD63SPILE6E6ggnk2wrjkO4+cnCzH6ZmpCJrt1NPnrtczcGoG8QmA9c3Vi NH/gSa56i759ERUwMVAmM+NQ+E+dW2ehT00EofEAQKhnNKgdGP+fPEGUWghhbKovQL39 HCDw== X-Gm-Message-State: AOAM533NLouX0Yr3qgb3E5qRhitN+sD/KyWPAVGjt+yw5uG3eCRvAfEu gXvICarXu69hy+uNV3Z26DQlK3dU158WTTpdpjtbJ6ZHKh2XVdQNIfCD6RlZJJo/+w7pJ8bp0Ah OsBBcB+7NtKlZzRBBIrngXmtW2eKp0Ls= X-Received: by 2002:a17:907:7204:: with SMTP id dr4mr11423573ejc.708.1643492436998; Sat, 29 Jan 2022 13:40:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPQLQUKWZkG8m9ADhZ88KLgO8boOP4mwOzg2DwFNZ2NsVLA2jn2fRNDullaWgalbnsC3Ffqw== X-Received: by 2002:a17:907:7204:: with SMTP id dr4mr11423567ejc.708.1643492436803; Sat, 29 Jan 2022 13:40:36 -0800 (PST) Received: from [192.168.123.94] (ip-088-152-144-107.um26.pools.vodafone-ip.de. [88.152.144.107]) by smtp.gmail.com with ESMTPSA id og19sm6254562ejc.147.2022.01.29.13.40.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 29 Jan 2022 13:40:36 -0800 (PST) Message-ID: <14ccdea6-47bd-ac2a-6741-bef7bac211cb@canonical.com> Date: Sat, 29 Jan 2022 22:40:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH 1/1] lib: allow printing RISC-V EFI Boot Protocol GUID Content-Language: en-US To: Simon Glass Cc: Tom Rini , Patrick Delaunay , U-Boot Mailing List , Sunil V L References: <20220128184211.160575-1-heinrich.schuchardt@canonical.com> From: Heinrich Schuchardt In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean On 1/29/22 22:09, Simon Glass wrote: > Hi Heinrich, > > On Fri, 28 Jan 2022 at 11:42, Heinrich Schuchardt > wrote: >> >> On RISC-V a new UEFI protocol has been introduced. Support printing >> its GUID using %pUs. >> >> Cc: Sunil V L >> Signed-off-by: Heinrich Schuchardt >> --- >> cf. >> [RFC PATCH V2 1/2] efi_loader: Enable RISCV_EFI_BOOT_PROTOCOL support >> https://lists.denx.de/pipermail/u-boot/2022-January/473505.html >> --- >> lib/uuid.c | 6 ++++++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/lib/uuid.c b/lib/uuid.c >> index 24571ef5fb..284f8113ff 100644 >> --- a/lib/uuid.c >> +++ b/lib/uuid.c >> @@ -220,7 +220,13 @@ static const struct { >> "TCG2 Final Events Table", >> EFI_TCG2_FINAL_EVENTS_TABLE_GUID, >> }, >> +#ifdef CONFIG_EFI_RISCV_BOOT_PROTOCOL >> + { >> + "RISC-V Boot", >> + RISCV_EFI_BOOT_PROTOCOL_GUID, >> + }, >> #endif >> +#endif /* CONFIG_CMD_EFIDEBUG */ >> #ifdef CONFIG_CMD_NVEDIT_EFI >> /* signature database */ >> { >> -- >> 2.33.1 >> > > Why the #ifdef? We want a small size of the binary. Why should we add a text for a RISC-V GUID on ARM? Best regards Heinrich > > Regards, > Simon