From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=209.132.183.28; helo=mx1.redhat.com; envelope-from=lersek@redhat.com; receiver=edk2-devel@lists.01.org Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C74B7211944CD for ; Mon, 3 Dec 2018 06:11:36 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 688BC58E27; Mon, 3 Dec 2018 14:11:36 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-61.rdu2.redhat.com [10.10.120.61]) by smtp.corp.redhat.com (Postfix) with ESMTP id E6C0B1001F5E; Mon, 3 Dec 2018 14:11:34 +0000 (UTC) To: Andrew Fish , Michael Kinney Cc: krishnaLee , "edk2-devel@lists.01.org" References: <20181129224102.ab43kwgrkk6xz2bl@bivouac.eciton.net> <129a947f.308c.167624a3bd2.Coremail.sssky307@163.com> <179708E3-F8AD-41B4-90B5-ECFD94924986@apple.com> From: Laszlo Ersek Message-ID: <0cecc14d-f268-6fcb-d185-e0bddecd4f1e@redhat.com> Date: Mon, 3 Dec 2018 15:11:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <179708E3-F8AD-41B4-90B5-ECFD94924986@apple.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 03 Dec 2018 14:11:36 +0000 (UTC) Subject: Re: [RFC] Proposal to add edk2-apps repository X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Dec 2018 14:11:38 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 11/30/18 07:03, Andrew Fish wrote: > Mike, > > As Krishna points out there are flavors of Apps. Do we want to have > different packages for different flavor of apps, or different dirs in > a more generic App package? Maybe we should define classes of UEFI > Applications in the README.md and give them a place to live. In my opinion, this is absolutely the first step that should be done. Personally, I've just learned, from this thread, that there are *three* (not two) UEFI application entry point types that edk2 supports. * I've always known about main() -- libc app --, and ShellAppMain() -- shell app. I've always known these because I read about them in "AppPkg/ReadMe.txt" and "StdLib/ReadMe.txt" years ago. In particular, compare the description of "Hello" and "Main". * And now MdeModulePkg/Application has been mentioned, in this thread, where I see UefiMain() as the entry point. I don't recall reading about UefiMain() or UefiApplicationEntryPoint on this list. On the other hand, I remember several discussions where people asked if they could write an application and invoke it from SysPrep#### or similar, and the answer has always been, "oh sorry you can't do that, because the lowest level you can go is ShellAppMain(), and that won't work from SysPrep####". Thanks Laszlo