PDA

View Full Version : Submit your patches here


blanka
4th April 2006, 08:51 PM
Include a brief description of what your patch does.

Steve1496
4th April 2006, 09:07 PM
Stickied...


Steve

chrisp
4th April 2006, 09:16 PM
The attached patch adds support for parsing command-line arguments passed via the LoadOptions field of the LoadedImage protocol. The options correspond to the ones already implemented in rEFIt 0.4 and discussed in this thread (http://forum.onmac.net/showthread.php?t=674).

The patch affects lib.c and xom.c. In lib.c, the ShellInterface code is replaced with code that parses LoadOptions into the argc and argv variables. In xom.c, argv is parsed for options and the appropriate variables are set. The '-s' option causes xomChooseBoot() to return with BootLegacy right away without waiting for user input.

The patch was taken against revision 12 of the repository.

blanka
5th April 2006, 09:30 AM
Hey chrisp,

Thanks for the patch. I just checked it in as revision 13.
Btw, will your new cmd line parsing understand the arguments passed from the EFI shell as well? I didn't have a chance to test them under the shell...

chrisp
7th April 2006, 09:21 AM
Yes, the shell also sets the LoadOptions field, so calling xom.efi from the shell with parameters should still work. Didn't test it, though.