New patch
I send a new version of my patch. I added parttype and hide/unhide commands. Can someone have a look at it?
(I haven't tested it a lot but it works fine for me )
Vladimir
2005-08-02 Vladimir Serbinenko <[email protected]>
Sendkey, activate and parttype modules(pc) and preboots
* commands/boot.c: Added support for preboot functions
* conf/i386.rmk (sendkey): new module
(activate): Likewise
(parttype): Likewise
* commands/i386/pc/sendkey.c: New file
* commands/i386/pc/parttype.c: Likewise
* commands/i386/pc/activate.c: Likewise
* kern/misc.c (grub_split_cmdline): more bash-like quotes and doublequotes handle
* include/grub/normal.h: new headers and types for preboots
ChangeLog +15 -0
@@ -1,3 +1,18 @@ +2005-08-02 Vladimir Serbinenko <[email protected]> + + Sendkey, activate and parttype modules(pc) and preboots + + * commands/boot.c: Added support for preboot functions + * conf/i386.rmk (sendkey): new module + (activate): Likewise + (parttype): Likewise + * commands/i386/pc/sendkey.c: New file + * commands/i386/pc/parttype.c: Likewise + * commands/i386/pc/activate.c: Likewise + * kern/misc.c (grub_split_cmdline): more bash-like quotes and + doublequotes handle + * include/grub/normal.h: new headers and types for preboots + 2005-07-31 Yoshinori K. Okuji <[email protected]> * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
commands/boot.c +50 -0
69 lines not on this page · raw message
commands/i386/pc/activate.c +114 -0
114 lines not on this page · raw message
commands/i386/pc/parttype.c +165 -0
165 lines not on this page · raw message
commands/i386/pc/sendkey.c +394 -0
394 lines not on this page · raw message
conf/i386-pc.mk +152 -1
165 lines not on this page · raw message
conf/i386-pc.rmk +14 -1
@@ -102,7 +102,8 @@ pkgdata_MODULES = _chain.mod _linux.mod font.mod _multiboot.mod ls.mod boot.mod cmp.mod cat.mod \ terminal.mod fshelp.mod chain.mod multiboot.mod amiga.mod \ apple.mod pc.mod sun.mod loopback.mod reboot.mod halt.mod \ - help.mod default.mod timeout.mod configfile.mod + help.mod default.mod timeout.mod configfile.mod sendkey.mod \ + activate.mod parttype.mod # For _chain.mod. _chain_mod_SOURCES = loader/i386/pc/chainloader.c
@@ -163,6 +164,18 @@ normal_mod_ASFLAGS = $(COMMON_ASFLAGS) hello_mod_SOURCES = hello/hello.c hello_mod_CFLAGS = $(COMMON_CFLAGS) +# For sendkey.mod. +sendkey_mod_SOURCES = commands/i386/pc/sendkey.c +sendkey_mod_CFLAGS = $(COMMON_CFLAGS) + +# For activate.mod. +activate_mod_SOURCES = commands/i386/pc/activate.c +activate_mod_CFLAGS = $(COMMON_CFLAGS) + +# For parttype.mod. +parttype_mod_SOURCES = commands/i386/pc/parttype.c +parttype_mod_CFLAGS = $(COMMON_CFLAGS) + # For boot.mod. boot_mod_SOURCES = commands/boot.c boot_mod_CFLAGS = $(COMMON_CFLAGS)
include/grub/normal.h +5 -0
@@ -44,6 +44,9 @@/* Not loaded yet. Used for auto-loading. */ #define GRUB_COMMAND_FLAG_NOT_LOADED 0x20 +/* Preboot function declaration. */ +typedef void (*grub_prebootfn_t ) (void ); +/* The command description. */ struct grub_command {
@@ -178,6 +181,8 @@ grub_context_t grub_context_get (void);grub_menu_t grub_context_get_current_menu (void );grub_menu_t grub_context_push_menu (grub_menu_t menu);void grub_context_pop_menu (void ); +grub_err_t grub_preboot_add (grub_prebootfn_t fn); +grub_err_t grub_preboot_remove (grub_prebootfn_t fn);#ifdef GRUB_UTIL void grub_normal_init (void );
kern/misc.c +37 -36
85 lines not on this page · raw message