Hi

After power-on the system, from default UEFI shell prompt, then moving to FS0:>, I execute a uefi application (bootx64.efi) which starts image by calling 'Shell.efi' image. But shell.efi doesn't calls FS0:\startup.nsh.

I understood 'EFI/BOOT/startup.nsh' is called on booting the system if it boots through UEFI shell.

But my scenario to write the UEFI C code (bootx64.c) which supports gnu-efi (3.0.6)  libraries from USB mass storage (i.e. first boot) which calls Shell.efi with FS0:\startup.nsh.

Shell.efi is from EDK2 
 
Please let me know to achieve this using gnu-efi other than EDK2. Since EDK2 development environment is tough to understand quickly.     
 

Thank & Regards
Manjunatha Srinivasan N