From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4001:c06::232; helo=mail-io0-x232.google.com; envelope-from=tweek@google.com; receiver=edk2-devel@lists.01.org Received: from mail-io0-x232.google.com (mail-io0-x232.google.com [IPv6:2607:f8b0:4001:c06::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 551E921FCA26E for ; Thu, 2 Nov 2017 03:49:03 -0700 (PDT) Received: by mail-io0-x232.google.com with SMTP id n137so12932809iod.6 for ; Thu, 02 Nov 2017 03:52:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=jkylNexz+/GebL19pScir897DZzN4Vncs79hetOQC9g=; b=mKWC4DtcsjdFeibUQ1609Ab29pxQolPvTOjpSaVpcbvY7i8HZCGyBAOEtYQB2wqWbf ayTMbSMGlzpAT7l+dgKpK86L/PVKSnTZJevFRi1Xz1ebkNJvePd/wsBtUuxIfVtxgQJ/ c0cYFiApWFVxeRcuICqMOsdt9KwmLAya7tJlbWRzVS4GzLa7EPnMwzlHnOUgmQrJmU1g MI/bsge8TJbtDebXr2TPwRI3gW/IzjaHXH1zGXDRjoiPGngVzn2SJgZ/FdWi39QkjKka dsj3sI5h9eiPNvAGzh97RLL+wuBAc+KSfQz830OrhWJbuEjrNaLIIySSx+msQZDg6JJ/ Txtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=jkylNexz+/GebL19pScir897DZzN4Vncs79hetOQC9g=; b=R+VRDDZ102wS7mdIPSmfowTdllxWYvRCMLPYyXqeY5zfw4nM1Fr1ljH0U6b0y8i6hz OHNEwBtQxBXNS6C76LEO6OvydcJvMVfvsJ9simmq7oLvKML/8g63gmv4W2Y61E36Ir4W qVmBjT53Esf4GRyVS89axlwCNXEZD+GSZd4lEbZdzSs9BBB1l+v6/FJlRaVVKWzqIepm ShFjkaAqx4InQ0bfcNsbnupbh4HB355SUW7W308Eqg2ZZrmljGIswuAk43aKYWwHi+vl 81Et49vuIwsY9TdwWat0XsU94ZT8yxVScC5yJmbLP8sYef+SaBvQNLabDqFrlIXHaNBD /y7A== X-Gm-Message-State: AJaThX4VMieqidz9vNAzRK1MnY6iwpUEfOI+fv4qte593o+foyjNE8ui oFRdNU/TX7x8LBnDTCQRiTtA7iifHUZVkedbz+LFYg== X-Google-Smtp-Source: ABhQp+TeCHcw6fUx1OGZdOEIzOJsUrUe6p4PI2JWC5aK8WeQ8y8Sym93hMAqzyFqoaGN46hyrKu/e9NF0kSMr8WKBNU= X-Received: by 10.107.41.205 with SMTP id p196mr3878754iop.142.1509619975709; Thu, 02 Nov 2017 03:52:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.145.213 with HTTP; Thu, 2 Nov 2017 03:52:35 -0700 (PDT) In-Reply-To: <80AC2BAA3152784F98F581129E5CF5AFA4635665@ORSMSX114.amr.corp.intel.com> References: <80AC2BAA3152784F98F581129E5CF5AFA4635665@ORSMSX114.amr.corp.intel.com> From: Thiebaud Weksteen Date: Thu, 2 Nov 2017 11:52:35 +0100 Message-ID: To: "Richardson, Brian" , Christian Heimes , Antoine Pitrou , Brett Cannon Cc: "python-dev@python.org" , "edk2-devel@lists.01.org" X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: Re: Official port of Python on EDK2 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Nov 2017 10:49:03 -0000 Content-Type: text/plain; charset="UTF-8" Christian, Antoine, Brett: Thanks for the clarification on what an official support would require. As Christian mentioned, sending simple headers patches is an obvious starting point, no matter if the support becomes official or not. Brian: Thanks for your email. As I suggested, by having the support directly within the Python community, you would avoid having to maintain a separate port. I don't think that having a new Python3 port as part of EDK2 is a good idea. What I am suggesting is that Intel should contribute directly to the Python repository by sending your modifications upstream and not expect someone to re-import Python into EDK2. That is, bringing your UEFI experience to Python and not the opposite. This would be a much better use of anyone's time. Thanks, Thiebaud On Thu, Nov 2, 2017 at 2:36 AM, Richardson, Brian < brian.richardson@intel.com> wrote: > Thiebaud: > > Thank you. I have started discussions within Intel for updating the UEFI > CPython implementation to Python 3.x. The TianoCore community would > appreciate contributions by people with Python experience to bring this > code up to current standards. > > Please review the contribution guidelines for TianoCore and let me know if > you have any questions. > http://www.tianocore.org/contrib/ > > Thanks ... br > --- > Brian Richardson, Senior Technical Marketing Engineer, Intel Software > brian.richardson@intel.com -- @intel_brian (Twitter & WeChat) > https://software.intel.com/en-us/meet-the-developers/evangel > ists/team/brian-richardson > > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > Thiebaud Weksteen > Sent: Wednesday, November 1, 2017 5:07 AM > To: python-dev@python.org > Cc: edk2-devel@lists.01.org > Subject: [edk2] Official port of Python on EDK2 > > Hi, > > UEFI has become the standard for firmware (BIOS) interface. Intel has > provided an open source implementation under the name EDK2 (part of the > TianoCore initiative) [1] for some time. This implementation has evolved > significantly and now provides the functionalities of a small OS with a > standard library similar to POSIX. > > In 2011, a port of Python 2.7.1 was added to the EDK2 repository [2]. > This port then evolved to 2.7.2 which is still defined as the reference > port [3]. In 2015, another port was added of Python 2.7.10 in parallel of > 2.7.2 [4]. Since then, both implementations have diverged from upstream and > know vulnerabilities have not been fixed. > > I would like to bring support for edk2 in the official Python repository > to remediate this situation, that is officially support > edk2 as a platform. Technically, there would be three main aspects for the > on-boarding work: > > 1) Fix headers and source to resolve definition conflicts, similarly to > ABS definition in [5]; > 2) Add the edk2module.c [6] to handle platform-specific functionalities, > similarly to the posixmodule.c; > 3) Add the build configuration file [7] and necessary modifications within > Python to handle the edk2 toolchain; > > This work would target the master branch (that is Python 3). I would be > interested in hearing your thoughts on this idea. > > Thanks, > Thiebaud > > [1] https://github.com/tianocore/edk2 > [2] https://github.com/tianocore/edk2/commit/006fecd5a177b4b7b6b > 36fab6690bf2b2fa11829 > [3] https://github.com/tianocore/edk2/blob/master/AppPkg/Applica > tions/Python/PythonReadMe.txt > [4] https://github.com/tianocore/edk2/commit/c8042e10763bca064df > 257547d04ae3dfcdfaf91 > [5] https://gist.github.com/tweksteen/ed516ca7ab7dfa8d18428f59d9c22a3e > [6] https://github.com/tianocore/edk2/blob/master/AppPkg/Applica > tions/Python/Efi/edk2module.c > [7] https://github.com/tianocore/edk2/blob/master/AppPkg/Applica > tions/Python/PythonCore.inf > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel >