Writing GRUB Modules: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
m →‎Loading: architectural correction
→‎Introduction: Informtion on building.
Line 17:
const struct grub_arg_option * parser); //Registers a command on the GRUB command line
</source>
 
==== Building ====
GRUB2 modules are object files. You therefore need to use GCC (i686-elf recommended) to build your C files, then use LD's -r option to combine your object files (if neccessary). the final output needs to be named .mod.
 
==== Loading ====