From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by mx.groups.io with SMTP id smtpd.web12.5183.1635514041252557957 for ; Fri, 29 Oct 2021 06:27:22 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@posteo.de header.s=2017 header.b=KhcwG8jc; spf=pass (domain: posteo.de, ip: 185.67.36.65, mailfrom: mhaeuser@posteo.de) Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 62407240028 for ; Fri, 29 Oct 2021 15:27:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1635514038; bh=kg7CzIAltw5FDP1L0qHZrPSpXkYePBSHBkEEtduDNDg=; h=Date:Subject:To:Cc:From:From; b=KhcwG8jcCt+S5sguSiNGKe6w/whuEMpZHrSI/UqK1ydGKZ94p/xzhWdoFwjx8P/cS r8J/L0FRIWp8930hGVYJX4PV4DN2EwYpUDiH9SynN6Q6YGKt8+/LdXz/17ljddHeVT vtUhZFKB4dKl7o81ztTpj04ahjtKT+J8h3blNB9c+pPS28TT11RqnNgIadQ4yurY5r 8MkwpXBE4i4xVk6XsoFneB0pCpudKggnidGBqFRSvd6o4eWdATZnwBxR4ttruusbA0 xS5x2D/nIo9ICOaANiswkA5R6cy230gP1SEJYfZLeYS+lag3u8IAnCF3s8XQSwhQEi gYLJ4m4UAxhvg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Hgjs03w1Qz9rxB; Fri, 29 Oct 2021 15:27:16 +0200 (CEST) Message-ID: Date: Fri, 29 Oct 2021 13:27:15 +0000 MIME-Version: 1.0 Subject: Re: [edk2-devel] RFC: Replace FMMT Tool from C to Python Version To: devel@edk2.groups.io, bob.c.feng@intel.com, "gaoliming@byosoft.com.cn" , "Chen, Christine" , "rfc@edk2.groups.io" Cc: "Kinney, Michael D" References: <00b601d7cc6a$ed2dcb40$c78961c0$@byosoft.com.cn> From: =?UTF-8?B?TWFydmluIEjDpHVzZXI=?= In-Reply-To: Content-Language: en-GB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Good day, Is there any information available on PyGenFv? It also handles ELF to PE=20 conversion (who knows why...), is that planned to be ported to Python as=20 well? For Project Amaranth, we are currently implementing a tool to=20 replace the ELF to PE conversion (among other things) and decided to=20 write it in C to leverage the existing EDK II libraries for PE and ELF=20 parsing, rather than re-implementing parsing in a different language.=20 We'd like to stay compatible with upstream EDK II for as long as=20 possible, and plan to send patches for a tool proposal whenever it is=20 ready (do not expect it before mid next year, if at all). Best regards, Marvin On 29.10.21 12:43, Bob Feng wrote: > > Liming, > > Correct. PyFMMT does not depend on GenSec, GenFfs and GenFv. =C2=A0Yes. t= he=20 > future PyGenSec, PyGenFfs and PyGenFv can reuse code from PyFMMT. > > Thanks, > > Bob > > *From:* devel@edk2.groups.io *On Behalf Of=20 > *gaoliming > *Sent:* Friday, October 29, 2021 10:16 AM > *To:* Chen, Christine ; devel@edk2.groups.io;=20 > rfc@edk2.groups.io > *Cc:* Feng, Bob C ; Kinney, Michael D=20 > > *Subject:* =E5=9B=9E=E5=A4=8D: [edk2-devel] RFC: Replace FMMT Tool from C= to Python=20 > Version > > Christine: > > =C2=A0This is a good news. Thanks for your great work. With this change,= =20 > FMMT doesn=E2=80=99t depend on GenSec, GenFfs and GenFv C tool. Right? If= yes,=20 > can those logic be reused to replace GenSec, GenFfs and GenFv C tools? > > Thanks > > Liming > > *=E5=8F=91=E4=BB=B6=E4=BA=BA**:*Chen, Christine > *=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4:* 2021=E5=B9=B410=E6=9C=8829=E6=97= =A5 8:33 > *=E6=94=B6=E4=BB=B6=E4=BA=BA:* devel@edk2.groups.io; rfc@edk2.groups.io > *=E6=8A=84=E9=80=81:* Feng, Bob C ; Kinney, Michael= D=20 > ; Liming Gao > *=E4=B8=BB=E9=A2=98:* [edk2-devel] RFC: Replace FMMT Tool from C to Pytho= n Version > > Hi everyone, > > I would like to propose the new FMMT Python tool, which is used to=20 > replace the origin C version tool. > > Currently the FMMT C tool is saved in edk2-staging repo, but its=20 > quality and coding style can=E2=80=99t meet the Edk2 quality, which is ha= rd to=20 > maintain (Hard/Duplicate Code; Regression bugs; Restrict usage). > > The new Python version keeps same functions with origin C version. It=20 > has higher quality and better coding style, and it is much easier to=20 > extend new functions and to maintain. > > You can get the FMMT Python tool through below link. > > https://github.com/tianocore/edk2-staging/tree/PyFMMT=20 > > > If you are interested in that, pls have a try. > > Looking forward to your feedback~ > > Thanks, > > Christine (Yuwei) > >=20