Sorry, but there is no way to convert that without use of the shell spec.  you 
can use the Appendix to do standard based conversion and do the code yourself 
and not use the shell binary.

This seems like it would be a lot easier to just use the shell though...

> -----Original Message-----
> From: S.Vieira [mailto:jwvsan...@outlook.com]
> Sent: Monday, April 20, 2015 5:41 AM
> To: edk2-devel@lists.sourceforge.net
> Subject: Re: [edk2] AutoLoad .EFI
> Importance: High
> 
> Hi Carsey.
> So...
> 
> I saw the Load.c code (
> UDK2014.SP1/ShellPkg/Library/UefiSHellLevel2COmmandsLib/Load.c)
> 
> LoadDriver(
>   IN CONST CHAR16   *FileName,
>   IN CONST BOOLEAN  Connect
>   )
> {
> 
>    ....
>    ....
>    ....
> 
>    //Convert to DEVICE_PATH
> 
>    FilePath = gEfiShellProtocol->GetDevicePathFromFilePath(FileName);
> 
>    ...
>    ...
>    ...
>   Status = gBS->LoadImage(
>     FALSE,
>     gImageHandle,
>     FilePath,
>     NULL,
>     0,
>     &LoadedDriverHandle);
> 
> 
> }
> 
> 
> My question is:
> 
> How can i convert CHAR16 to DevicePath using Protocol of the UEFI Spec,
> without SHELL Spec ?
> 
> 
> I thought in to use any function of the DEVICE_PATH_PROTOCOL, but doesn't
> worked!
> 
> 
> Can you help me?
> 
> Att.
> Vieira
> 
> 
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop
> your own process in accordance with the BPMN 2 standard Learn Process
> modeling best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
> event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_camp
> aign=VA_SF
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to