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 275C1C433EF for ; Sat, 29 Jan 2022 21:10:06 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1A7A982FA3; Sat, 29 Jan 2022 22:10:03 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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; unprotected) header.d=chromium.org header.i=@chromium.org header.b="E2uQbCjr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D54C082FA3; Sat, 29 Jan 2022 22:10:00 +0100 (CET) Received: from mail-vk1-xa34.google.com (mail-vk1-xa34.google.com [IPv6:2607:f8b0:4864:20::a34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BE17A80D1C for ; Sat, 29 Jan 2022 22:09:57 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-vk1-xa34.google.com with SMTP id 48so6014430vki.0 for ; Sat, 29 Jan 2022 13:09:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FvsAkpeFu3xvDQpCf1mRLuS+T6OJM+exgoM4puVjgQw=; b=E2uQbCjrtPVTw3mQPMEHAtaH/0Ck7J7oRc7ixK0FtG/hNyHMK7K3D7X4ZnZQnaJAFZ 6SdRn3uro6iRS1RAvbHhsSOqv+hDSdnlKFbfhMy4BFWwubEto+MwvQyKRF+pYvv/2za6 2bkXhBDzKNzXsYtsgEPScp3xGwJ9nThWCe4KI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FvsAkpeFu3xvDQpCf1mRLuS+T6OJM+exgoM4puVjgQw=; b=a/OCcIWo/UBV146ssv/DD391GsvHwW8UZOxIcuSYoQJl8BUlGXSwDQ11USML8Bq82A 5+u4k2HdrcDkPFNOJvno8NQO+xip7JY6dXwYDpwdMyA6qA34l2m1jY523Xj7ud12GHwa PrB8E/Mbx5TfhWv0YDI79ClyRMniDOggl/vCTCWl+L24geaMt/nzoTpB6r1cHbcMmCOg d8IIzeQjaUDmWo9YiB5/iAsOJ9Ix0o0OIIX8lbRAWsgvbPd3ES0ZdmsC3lUtt7HAMe5f B7nHDKXqxxWI5dWVVlasZR7pyhSiUJejUxCghV9tLw4P1EmgSZwKqjH5SbMZHpmRK5kt zV+A== X-Gm-Message-State: AOAM533hFwYtf+0PYesPNjSrnwL1I95FDBpu+KSHMgsw3KeSZgnhfdPv rAF7tTqgAPTtJLlViqBr4wS22URxcYYcXrocM3x7XA== X-Google-Smtp-Source: ABdhPJwWQWZBkHkNEi3HOm/YVch3GRSVVXvXdT723+o2mcKlHhO9aZF+m0wu/YujnoYHEcObZd4/i3fML8HXAPTslJQ= X-Received: by 2002:a05:6122:2194:: with SMTP id j20mr5846507vkd.21.1643490596144; Sat, 29 Jan 2022 13:09:56 -0800 (PST) MIME-Version: 1.0 References: <20220128184211.160575-1-heinrich.schuchardt@canonical.com> In-Reply-To: <20220128184211.160575-1-heinrich.schuchardt@canonical.com> From: Simon Glass Date: Sat, 29 Jan 2022 14:09:44 -0700 Message-ID: Subject: Re: [PATCH 1/1] lib: allow printing RISC-V EFI Boot Protocol GUID To: Heinrich Schuchardt Cc: Tom Rini , Patrick Delaunay , U-Boot Mailing List , Sunil V L Content-Type: text/plain; charset="UTF-8" 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 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? Regards, Simon