public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Nico.Schulz@ts.fujitsu.com" <Nico.Schulz@ts.fujitsu.com>
To: "ruiyu.ni@intel.com" <ruiyu.ni@intel.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: "jaben.carsey@intel.com" <jaben.carsey@intel.com>
Subject: Re: [PATCH] ShellPkg: More fallbacks + error handling in UefiShellLib
Date: Thu, 8 Sep 2016 07:06:33 +0000	[thread overview]
Message-ID: <2853f2d4a2ef43179eb4f6393fd365ad@R01UKEXCASM221.r01.fujitsu.local> (raw)
In-Reply-To: <734D49CCEBEEF84792F5B80ED585239D58D4DCB9@SHSMSX103.ccr.corp.intel.com>

Hello Ray,

Thanks for your response. I was not aware of this library, that sounds like
a very good idea.

 

But when having a look at it, there seem to be only file read/write/info
operations. I cannot find a function that would give me a file handle and
open it. Especially for me it needs to be the device where also the program
is running (normally the boot device). Currently I use ShellOpenFileByName()
for this operation. I could not find anything like that, do you know what is
required to get a file handle and open the file properly? Is there any
example that I am missing?

 

Also I am wondering why the ShellPkg library has fallbacks for almost every
function if they are not essentially required. It might make sense to add my
patch anyways to complete the fallbacks. But that is up to you, you should
know it best.

 

Cheers,

Nico

 

 

From: Ni, Ruiyu [mailto:ruiyu.ni@intel.com] 
Sent: Wednesday, September 7, 2016 2:55 AM
To: Schulz, Nico; edk2-devel@lists.01.org
Cc: Carsey, Jaben
Subject: RE: [PATCH] ShellPkg: More fallbacks + error handling in
UefiShellLib

 

Nico,

You want to develop an application which needs file system access support
but doesn’t depend on Shell environment. So you link your application to
UefiShellLib 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
provides 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 <jaben.carsey@intel.com>; Ni, Ruiyu <ruiyu.ni@intel.com>
Subject: [PATCH] ShellPkg: More fallbacks + error handling in UefiShellLib

 

Dear edk2 developers,

I’ve made a patch in the edk2 ShellPkg CodeModule. It improves compatibility
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
discussion might be required before this patch gets applied. Feedback is
highly welcome. Thanks a lot J

 

Contributed-under: TianoCore Contribution Agreement 1.0

Signed-off-by:  Nico Schulz nico.schulz@ts.fujitsu.com

 

Cheers,

Nico

 



      reply	other threads:[~2016-09-08  7:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-06 12:02 [PATCH] ShellPkg: More fallbacks + error handling in UefiShellLib Nico.Schulz
2016-09-07  0:54 ` Ni, Ruiyu
2016-09-08  7:06   ` Nico.Schulz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2853f2d4a2ef43179eb4f6393fd365ad@R01UKEXCASM221.r01.fujitsu.local \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox