From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 14E231A1E91 for ; Tue, 6 Sep 2016 17:55:02 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP; 06 Sep 2016 17:54:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,294,1470726000"; d="scan'208,217";a="1052332596" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 06 Sep 2016 17:54:49 -0700 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 6 Sep 2016 17:54:47 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 6 Sep 2016 17:54:47 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.102]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.174]) with mapi id 14.03.0248.002; Wed, 7 Sep 2016 08:54:45 +0800 From: "Ni, Ruiyu" To: "Nico.Schulz@ts.fujitsu.com" , "edk2-devel@lists.01.org" CC: "Carsey, Jaben" Thread-Topic: [PATCH] ShellPkg: More fallbacks + error handling in UefiShellLib Thread-Index: AdIIM9fTKQ4HHPJGRS6tb0zLVLHYYQAbgTwA Date: Wed, 7 Sep 2016 00:54:44 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D58D4DCB9@SHSMSX103.ccr.corp.intel.com> References: In-Reply-To: Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMmZlZDVjNDMtOGUxOC00NzExLTkwNjUtMTM2ZTEwNjYzYzg1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IkIzdytDdENOek1KUzdWUlFaeUkzdm9TcjVxU2lyK1ExYk5IeWN1ZHdXSnM9In0= x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: Re: [PATCH] ShellPkg: More fallbacks + error handling in UefiShellLib X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2016 00:55:02 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Nico, You want to develop an application which needs file system access support b= ut doesn't depend on Shell environment. So you link your application to Uef= iShellLib and change the shell library to handle the case when it's not in = the Shell environment. Is my understanding correct? If yes, I suggest you directly use MdePkg/Library/UefiFileHandleLib. It pro= vides file system access support while doesn't depend on Shell environment. It's a bit strange to remove the hard dependency of Shell environment from = Uefi*Shell*Lib. Regards, Ray From: Nico.Schulz@ts.fujitsu.com [mailto:Nico.Schulz@ts.fujitsu.com] Sent: Tuesday, September 6, 2016 8:02 PM To: edk2-devel@lists.01.org Cc: Carsey, Jaben ; Ni, Ruiyu Subject: [PATCH] ShellPkg: More fallbacks + error handling in UefiShellLib Dear edk2 developers, I've made a patch in the edk2 ShellPkg CodeModule. It improves compatibilit= y when no Efi Shell is available. I've noted all details on Github. To not = duplicate the information, please visit this link below. You can also find = and compare the code there: https://github.com/tianocore/edk2/pull/111 It would be really nice if you can have a look at the patch. Some further d= iscussion might be required before this patch gets applied. Feedback is hig= hly welcome. Thanks a lot :) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Nico Schulz nico.schulz@ts.fujitsu.com Cheers, Nico