From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web10.1724.1678260174661178939 for ; Tue, 07 Mar 2023 23:22:54 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=i6GGipLg; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: vikas.jain@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678260174; x=1709796174; h=from:to:subject:date:message-id:references:in-reply-to: mime-version; bh=Idxr3GmbG1hTk0x3utTsGp9WxW7oHXwNVm5g/7CVf/g=; b=i6GGipLg6iG3bh96R3qBGrcXZG93kkymORAD8DhQQBB+88QunuQri6Gt F4nWu+rxl/Yjzoio/s58FTbV9/6VbtPfNcvBeev4OunXd/ZqIEi2kYXCG Ez31xujCRUOIxu8SsmiJ5Xp4xzqeQvJZJjRxmZSz+CcwO2luTjZezPEiN JyXyHQM5tc4HbgrmD+/saQQ1OgXh0xrEKdaBrXR3qRM7z2o9ru9ieZlDi j9jLbSij5eTnMJYPTeR/MOBEciFoXEZEFmXpu3xzvg2Ee9yTU4QJ4xA5d MfAaiSmP0JkrYOkF7KAUhpBZv+quZ6Wj3q3E+47NUvEf9Uue5xwoitDCf g==; X-IronPort-AV: E=McAfee;i="6500,9779,10642"; a="422353039" X-IronPort-AV: E=Sophos;i="5.98,243,1673942400"; d="scan'208,217";a="422353039" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2023 23:22:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10642"; a="709324060" X-IronPort-AV: E=Sophos;i="5.98,243,1673942400"; d="scan'208,217";a="709324060" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga001.jf.intel.com with ESMTP; 07 Mar 2023 23:22:53 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 7 Mar 2023 23:22:53 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 7 Mar 2023 23:22:53 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Tue, 7 Mar 2023 23:22:53 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.177) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Tue, 7 Mar 2023 23:22:52 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ELgjPKffuvA4SVSc3QjMfOnE9IW9WnfgIM+dVM5XFd2E0e8tnCOXORfcia3RS8zyRJXrieQPJ0H5b/VVsQTxVe+XIJac9449Fpy3bUbO0d57x04AY188GU5QDcUBGUdbEZExX2NtLh71NfChco2WauWXqBx9bTcJGu5/H/KyvKaLx80rwynd+RZo8HCqdAhLKQ9U+jgt4xJMssuz9r6c2tsp1x8FgYeeB3Jw1ioM0pnW0lkPCEwlL1oWVbpvKy0aXCgd914JWlr2e26EDaU3/iXBeS38FBNxhvtAVp28R+dgZkEIKbEz5NNLfwz68N1l3cuvs5vwIaSgOdlgtTNBhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yLnLtg7MWnPhXLXwIXAOUIKR6LOVjNCkJ0UDhJegi0c=; b=e39lTulKjDR8NIZKRvCtsCMsu7FSjhn4QgCyeka5keJH/P+dePBHoTwAFnVCkOPTth5lfT5vDHg6u8frnqJNz56lKgHNrDThVcssVIfQe2iOjL5Yxj2kqCNK28UvS7WvuT0BDmdW6f/PtRNtmJlhKBia0RalVZ5SjNRjoEZcF3mrQNyEg0tkud/wC5Rd0I6Ls9t8ohB7z/6CWV8SM2If4iTuZTWnUYjEmEBvSNT3hCWcltecrWgWDcYZdU7wwkgE4xAwhLRnDnZmin5esl4iLe2zQcGjLhdn0vJA2rsCgodvjSoue7E6sj+8+P+X6uK/PgRZjkHjfzA9hTd54THAuw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MN2PR11MB3886.namprd11.prod.outlook.com (2603:10b6:208:137::15) by PH0PR11MB5832.namprd11.prod.outlook.com (2603:10b6:510:141::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.29; Wed, 8 Mar 2023 07:22:51 +0000 Received: from MN2PR11MB3886.namprd11.prod.outlook.com ([fe80::33ca:bfbe:f906:3d29]) by MN2PR11MB3886.namprd11.prod.outlook.com ([fe80::33ca:bfbe:f906:3d29%4]) with mapi id 15.20.6156.028; Wed, 8 Mar 2023 07:22:50 +0000 From: "Jain, Vikas" To: "discuss@edk2.groups.io" , "devel@edk2.groups.io" Subject: Re: edk2/basetools python package build is failing. Thread-Topic: edk2/basetools python package build is failing. Thread-Index: AdlQ17QdY1PrWCWPQ+m/ZZqyN/XywgAtonIw Date: Wed, 8 Mar 2023 07:22:50 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN2PR11MB3886:EE_|PH0PR11MB5832:EE_ x-ms-office365-filtering-correlation-id: 2366bc8c-6413-41bd-873a-08db1fa5eca9 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: BhAy3E9H0SHWEmfXPTmB+aiqB1UPLGBmTMIg4x0kv1Ihta70FNYU6+Ox0J5JIrhcMIajkqETwQVfVHSFiSF1/qLdww3Nvp4fbjCOXR04uCypDx+LVcNvwWKzqRF/nUDNZExbR8RMAzRx6WBSQHTSr28yi+k2FmDjmYBO5tWoHixloR94r7Sr06tv9dbReyesNxeW/BLLIttSVGfaRkxWtkUgwiIjXkpYvleylqgZZyCGfU9XdpCfhKWiHWbiMdc6yRRypHY49eeXsnvzxfrgsPoO5SjgA/CYqO4hGdONBhBkkP9/hD9AR1Hiet6l99uYYSuUxcv8Byb2pHSkWRuS4uKoRre93Sz/z7lWA/ZVXg13Cv5YbqvmWSFHnpLoN/U/TInWoe/B6CBqxunR4XXz5bd/DvnLN/JvrrfZdvVxhK1Or8G905BHLwPTOAYPCK6HEl1yBknmMLf2R6290K3WVg9Uwe9w5bowuGA2xEuYiXexulNgexN+uKnVAnuL1lnZsKlH7ydbLud2Pm6BAdxGbnjAgXksWBOMLsHfXopAW7omVGyLA63Tzwg7HXYY8CMGI/XPu4GY7ZGI7mbHBxTmv4+NR2zpBr1SgMSLmcfSAfmGV1I9E2aw79VubWN8xeTCLsD4eKZ9f8enYNLPVEgNBRM2XftssPSSVn+KcgtOZVviMatuLTRkccxuohW35be0 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR11MB3886.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(39860400002)(366004)(396003)(136003)(346002)(376002)(451199018)(66446008)(64756008)(66476007)(66946007)(76116006)(66556008)(8676002)(71200400001)(966005)(166002)(5660300002)(7696005)(83380400001)(110136005)(316002)(86362001)(9326002)(8936002)(33656002)(38100700002)(478600001)(38070700005)(450100002)(52536014)(55016003)(186003)(2906002)(9686003)(82960400001)(41300700001)(26005)(6506007)(122000001)(53546011);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?DXAOXTs0swOAAdiygPN7W0jmGmgagP19fN9FHtj6zPjgRVqM33ddH+ayjw9U?= =?us-ascii?Q?/YozkdlECl3EhK4YlAWzhVMlTRNAWQ/ryt1zCxjn1UPeJcqmU/tGAoAduwsR?= =?us-ascii?Q?/508696D9dHtpu86XkqWJMrv1slZSx51pLm16WxUtgK+mhjxEyZjbO1oTtpp?= =?us-ascii?Q?tKvrU514AKhlKozNCT5kjNGdtSHDtBTxm4dTM0L/LBCm1w+j8V8z7swN6pNz?= =?us-ascii?Q?XPz5yYYEiEcnBdebu3o44BJvMDGS4rUWOgcP+kMWxOKroCkPLDyogJB9uRp3?= =?us-ascii?Q?yth+h+4zM2RX370Wb4ZKVEgQiwGaPO16lTYNpdpw3YYulZihtMDvHHNOCDEB?= =?us-ascii?Q?eNdl9MQvOzQ+lwpJ+BiMW0guHpS85ag3GRo/0BWrlC+1BkKrms8rBkgrjyrH?= =?us-ascii?Q?s/nENAvopzDVCfZ0K2NeMBZCSyIlntIgMQabRrdO5r6Y0eZMq25amb3RRiS1?= =?us-ascii?Q?81P1m+/qsrlXZTunMjoeCNdytRCKTJC61AOFaUap4VoQ2bKXbo2FnKSn6zSj?= =?us-ascii?Q?zpnaSf0DFPet0p+i9gqQOlwmtBHN4L46DOpD4WGQAzLwI3RN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qzoSyUNrRJGdeW9NM25QeOZYkar2d1D7aDY38kBQtsiDq1n?= =?us-ascii?Q?kfDHztLCZnCglM2awOHcL2gHL9B43rKMbbzF2WvgYIxtHVq3hxxW9Uf5S675?= =?us-ascii?Q?Gwuyg/I+0C+VAK+K8brj3cQAO/vp9+feePW1S74W?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB3886.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2366bc8c-6413-41bd-873a-08db1fa5eca9 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2023 07:22:50.3498 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: K08VePfhplE2cpFphCu9h92wrflW9QwFtLYCR7VPkajTE9XJoLc+I/u+CxrfGwB7C03x2kkZy3Gp7XOoN+IpeA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5832 Return-Path: vikas.jain@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_MN2PR11MB38865169D69A9E314571527C8BB49MN2PR11MB3886namp_" --_000_MN2PR11MB38865169D69A9E314571527C8BB49MN2PR11MB3886namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi All, Did any one faced same issue earlier? Can you please suggest a way to build python package for edk2 basetolls. I = am working a small application which I can use to read the capsule file dat= a using python package. Below is the sample code which I want to use: import efilib import struct def dump_hii_knobs(capsule_path): with open(capsule_path, 'rb') as f: data =3D f.read() image =3D efilib.FirmwareVolume(data) hii_handles =3D [] for section in image.get_sections(): if section.type =3D=3D efilib.SECTION_GUID_DEFINED: if section.guid =3D=3D efilib.HII_DATABASE_GUID: hii_handles.append(struct.unpack(" for= help, attaching following call stack trace!) (Python 3.9.16 on linux) Traceback (most recent call last): File "/root/edk2-basetools/edk2-basetools/edk2basetools/build/build.py", = line 2648, in Main CheckEnvVariable() File "/root/edk2-basetools/edk2-basetools/edk2basetools/build/build.py", = line 127, in CheckEnvVariable os.environ["EDK_TOOLS_PATH"] =3D os.path.normcase(os.environ["EDK_TOOLS= _PATH"]) File "/usr/lib64/python3.9/os.py", line 679, in __getitem__ raise KeyError(key) from None KeyError: 'EDK_TOOLS_PATH' - Failed - Build end time: 15:08:33, Mar.07 2023 Build total time: 00:00:00 [root@master-node edk2basetools]# Thanks for looking into it. Regards, Vikas --_000_MN2PR11MB38865169D69A9E314571527C8BB49MN2PR11MB3886namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi All,

 

Did any one faced same issue earlier?

Can you please suggest a way to build python package= for edk2 basetolls. I am working a small application which I can use to re= ad the capsule file data using python package.

Below is the sample code which I want to use:

 

import efilib

import struct

 

def dump_hii_knobs(capsule_path):

    with open(capsule_path, 'rb') as = f:

        data =3D = f.read()

 

    image =3D efilib.FirmwareVolume(d= ata)

 

    hii_handles =3D []

    for section in image.get_sections= ():

        if sectio= n.type =3D=3D efilib.SECTION_GUID_DEFINED:

        &nbs= p;   if section.guid =3D=3D efilib.HII_DATABASE_GUID:<= /p>

        &nbs= p;       hii_handles.append(struct.unpack(&qu= ot;<Q", section.body[:8])[0])

 

    for handle in hii_handles:

        hii_db = =3D efilib.HIIDatabase(image, handle)

        print(f&q= uot;Knobs for handle 0x{handle:x}:")

        for knob = in hii_db.get_knobs():

        &nbs= p;   print(f"\t{knob.guid}, {knob.name}, {knob.type}, {knob.= default}, {knob.current}")

 

if __name__ =3D=3D '__main__':

    capsule_path =3D '/path/to/capsul= e.cap'

    dump_hii_knobs(capsule_path)=

 

Regards,

Vikas

 

 

 

From: Jain, Vikas
Sent: Tuesday, March 7, 2023 3:10 PM
To: discuss@edk2.groups.io; devel@edk2.groups.io
Subject: edk2/basetools python package build is failing.<= /p>

 

Hi All,<= /span>

 

I am trying to buil= d edk2/basetools python package but it is failing with the below error, loo= ks like there is some problem with environment setup.

Can some one please= suggest a way to build it?

 

Repo Link: https://github.com/tianocore/edk2-basetools

Steps to build:

  1. Run pip install -e . (you might = need do this from an admin prompt in windows)
  2. Run edk2_build to make sure it works<= /o:p>

Error Log:

 

[root@master-node e= dk2basetools]# edk2_build

Build environment: = Linux-4.18.0-408.el8.x86_64-x86_64-with-glibc2.28

Build start time: 1= 5:08:33, Mar.07 2023

 

 

 

edk2_build...<= /o:p>

: error C0DE: Unkno= wn fatal error when processing []

 

(Please send email = to devel@edk2.groups.io for help, attaching following call stack trace!)

 

(Python 3.9.16 on l= inux) Traceback (most recent call last):

  File "/= root/edk2-basetools/edk2-basetools/edk2basetools/build/build.py", line= 2648, in Main

    = CheckEnvVariable()

  File "/= root/edk2-basetools/edk2-basetools/edk2basetools/build/build.py", line= 127, in CheckEnvVariable

    = os.environ["EDK_TOOLS_PATH"] =3D os.path.normcase(os.environ[&quo= t;EDK_TOOLS_PATH"])

  File "/= usr/lib64/python3.9/os.py", line 679, in __getitem__=

    = raise KeyError(key) from None

KeyError: 'EDK_TOOL= S_PATH'

 

 

- Failed -

Build end time: 15:= 08:33, Mar.07 2023

Build total time: 0= 0:00:00

 

[root@master-node e= dk2basetools]#

 

Thanks for looking = into it.

 

Regards,=

Vikas

--_000_MN2PR11MB38865169D69A9E314571527C8BB49MN2PR11MB3886namp_--