From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) by mx.groups.io with SMTP id smtpd.web12.14654.1658651666268226949 for ; Sun, 24 Jul 2022 01:34:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=grUVXSQh; spf=pass (domain: gmail.com, ip: 209.85.219.172, mailfrom: aladyshev22@gmail.com) Received: by mail-yb1-f172.google.com with SMTP id k85so14942984ybk.7 for ; Sun, 24 Jul 2022 01:34:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=TnzxeHE9jT3sX/dg+0ufrFR2O9O+YnlUYiFyohkyqJ4=; b=grUVXSQhXvuosEMDBr3FGShQNyXdcj1YLhjcAVR56ZzYyU/cgvlwJ9ZcNxVUKVMmaz fS+huwhyyamA7HPcZ/a+eiVc61inrKpniSdsFsu2KxrjXtWchWKlqTMm/BXoBVPoeBTZ KAOvv7rw0UpiUSAgGF7HHIyDf5XjH6NMwdRBp3gzQOhIv+R9renaWh6T7NTgylSl1bXz Ver0IYMUlJA7ldpCZwm1s5n7GujmjiS8s+dmKlw+MANGzTdU7fhMWD9+i89R9iuK3P5H yfyiiDuYX31wuEJSpezhKDjaRuMRSB5w3XxzEQmtH5itQcW3SV6pKdthfT+eILmfBqEX Myhw== 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:content-transfer-encoding; bh=TnzxeHE9jT3sX/dg+0ufrFR2O9O+YnlUYiFyohkyqJ4=; b=4e2FntbT03bCtqPYYJwbZ8zZ/KGDDgaJ0HBqQ5Qaa39+jvR8WZ5hghRauwijtaoX9D WsyDLueLrcpshUMN8Abc4yhvput4LqbpVRlnQDwFkrTlheMFPWhN8XFLdB+8/+Kz9PcA NLc8zGB+yFPgT8y73HHHqXl/oGtH/7m2dmAyXCabKxSU/ti60PxFUQ9msoiP6GeTxCTy 4m47z0ln/wblbgqZk3FC6ZGVx0Cp2tEJrPo9ud0GJdJnsvIOeELn3w1Qs8l3VYde+3Cf ol/WH6BiJtS1Y6BXrQFNvd07oam/nOKRVOFoB2aHvooFXHCs/s+Girzp2+kD7sWlQQzt 7xNg== X-Gm-Message-State: AJIora+AxLqU+8uBrtPzzWQ9L6BWJKvDnNqw945IlffW1ZdA9Gfq6WyB UsEmje+28n4865sN49L99MEKZ2Aq40oLixq6crs= X-Google-Smtp-Source: AGRyM1sMKNNfBmypQQOV9D445mhvY7FeLz7nbBX6muw0/XjOuZauiBExk9jCZMUVSjQ2GA3toaXV4GK+HST9b9zM0Tw= X-Received: by 2002:a25:4284:0:b0:66f:83b6:64bf with SMTP id p126-20020a254284000000b0066f83b664bfmr5129896yba.586.1658651665408; Sun, 24 Jul 2022 01:34:25 -0700 (PDT) MIME-Version: 1.0 References: <20220722153730.9563-1-aladyshev22@gmail.com> In-Reply-To: From: "Konstantin Aladyshev" Date: Sun, 24 Jul 2022 11:34:14 +0300 Message-ID: Subject: Re: [edk2-devel] [PATCH] BaseTools/VolInfo: Parse apriori files To: "Feng, Bob C" Cc: "devel@edk2.groups.io" , "Gao, Liming" , "Chen, Christine" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Bob! How should I update it? Should I increase a year for the Intel Corporation like this ``` Copyright (c) 1999 - 2022, Intel Corporation. All rights reserved.
``` Or should I enter my name on another string? ``` Copyright (c) 2022, Konstantin Aladyshev
``` Best regards, Konstantin Aladyshev On Sun, Jul 24, 2022 at 9:10 AM Feng, Bob C wrote: > > Hi Konstantin, > > Could you update the copyright in VolInfo.c? > > Thanks, > Bob > > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Konstantin= Aladyshev > Sent: Friday, July 22, 2022 11:38 PM > To: devel@edk2.groups.io > Cc: Feng, Bob C ; Gao, Liming ; Chen, Christine ; Konstantin Aladyshev > Subject: [edk2-devel] [PATCH] BaseTools/VolInfo: Parse apriori files > > Output file GUIDs from the DXE and PEI apriori files. > > Signed-off-by: Konstantin Aladyshev > --- > BaseTools/Source/C/VolInfo/VolInfo.c | 74 ++++++++++++++++++++++++++++ > 1 file changed, 74 insertions(+) > > diff --git a/BaseTools/Source/C/VolInfo/VolInfo.c b/BaseTools/Source/C/Vo= lInfo/VolInfo.c > index 2d7c6212b3..28c6806cf0 100644 > --- a/BaseTools/Source/C/VolInfo/VolInfo.c > +++ b/BaseTools/Source/C/VolInfo/VolInfo.c > @@ -43,6 +43,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent > // EFI_GUID gEfiCrc32GuidedSectionExtractionProtocolGuid =3D EFI_CRC32= _GUIDED_SECTION_EXTRACTION_PROTOCOL_GUID;+EFI_GUID gPeiAprioriFileNameGuid= =3D { 0x1b45cc0a, 0x156a, 0x428a, { 0XAF, 0x62, 0x49, 0x86, 0x4d, 0xa0, 0= xe6, 0xe6 }};+EFI_GUID gAprioriGuid =3D { 0xFC510EE7, 0xFFDC, 0x11D4, { 0x= BD, 0x41, 0x00, 0x80, 0xC7, 0x3C, 0x88, 0x81 }}; #define UTILITY_MAJOR_VER= SION 1 #define UTILITY_MINOR_VERSION 0@@ -107,6 +109,12 @@ ReadHe= ader ( > OUT BOOLEAN *ErasePolarity ); +STATIC+EFI_STATUS+PrintAprioriFile = (+ EFI_FFS_FILE_HEADER *FileHeader+ );+ STATIC EFI_STATUS PrintFi= leInfo (@@ -1083,6 +1091,53 @@ Returns: > return EFI_SUCCESS; } +STATIC+EFI_STATUS+PrintAprioriFile (+ EFI_FFS_= FILE_HEADER *FileHeader+ )+/*++++Routine Description:++ Print GUI= Ds from the APRIORI file++Arguments:++ FileHeader - The file header++Retur= ns:++ EFI_SUCCESS - The APRIORI file was parsed correctly+ EFI_SECT= ION_ERROR - Problem with file parsing++--*/+{+ UINT8 GuidBuf= fer[PRINTED_GUID_BUFFER_SIZE];+ UINT32 HeaderSize;++ HeaderS= ize =3D FvBufGetFfsHeaderSize (FileHeader);++ if (FileHeader->Type !=3D EF= I_FV_FILETYPE_FREEFORM)+ return EFI_SECTION_ERROR;++ EFI_COMMON_SECTION= _HEADER* SectionHeader =3D (EFI_COMMON_SECTION_HEADER *) ((UINTN) FileHeade= r + HeaderSize);+ if (SectionHeader->Type !=3D EFI_SECTION_RAW)+ return= EFI_SECTION_ERROR;++ UINT32 SectionLength =3D GetSectionFileLength (Secti= onHeader);+ EFI_GUID* FileName =3D (EFI_GUID *) ((UINT8 *) SectionHeader += sizeof (EFI_COMMON_SECTION_HEADER));+ while (((UINT8 *) FileName) < ((UIN= T8 *) SectionHeader + SectionLength)) {+ PrintGuidToBuffer (FileName, Gu= idBuffer, sizeof (GuidBuffer), TRUE);+ printf ("%s ", GuidBuffer);+ = PrintGuidName (GuidBuffer);+ printf ("\n");+ FileName++;+ }++ retur= n EFI_SUCCESS;+}+ STATIC EFI_STATUS PrintFileInfo (@@ -1339,6 +1394,25 @@ R= eturns: > break; } + if (!CompareGuid (+ &FileHeader->Name,+ &g= PeiAprioriFileNameGuid+ ))+ {+ printf("\n");+ printf("PEI APRI= ORI FILE:\n");+ return PrintAprioriFile (FileHeader);+ }+ if (!Compare= Guid (+ &FileHeader->Name,+ &gAprioriGuid+ ))+ {+ pri= ntf("\n");+ printf("DXE APRIORI FILE:\n");+ return PrintAprioriFile (= FileHeader);+ }+ return EFI_SUCCESS; } -- > 2.25.1 > > > > -=3D-=3D-=3D-=3D-=3D-=3D > Groups.io Links: You receive all messages sent to this group. > View/Reply Online (#91722): https://edk2.groups.io/g/devel/message/91722 > Mute This Topic: https://groups.io/mt/92550206/1768742 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub [bob.c.feng@intel.com] = -=3D-=3D-=3D-=3D-=3D-=3D > >