2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
* conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'. (grub_emu_SOURCES): Likewise. (pkgdata_MODULES): Add `sun.mod'. (sun_mod_SOURCES, sun_mod_CFLAGS): New variables. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `partmap/sun.c'. (pkgdata_MODULES): Add `sun.mod'. (sun_mod_SOURCES, sun_mod_CFLAGS): New variables. * include/grub/partition.h (grub_sun_partition_map_init): New prototype. (grub_sun_partition_map_fini): Likewise. * partmap/sun.c: New file. * util/grub-emu.c (main): Initialize and de-initialize the sun partitionmap support.
This commit is contained in:
parent
4d4e372ebd
commit
4ed2e1dd1c
8 changed files with 392 additions and 29 deletions
17
ChangeLog
17
ChangeLog
|
@ -1,3 +1,20 @@
|
||||||
|
2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
|
||||||
|
|
||||||
|
* conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
|
||||||
|
(grub_emu_SOURCES): Likewise.
|
||||||
|
(pkgdata_MODULES): Add `sun.mod'.
|
||||||
|
(sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
|
||||||
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
|
||||||
|
`partmap/sun.c'.
|
||||||
|
(pkgdata_MODULES): Add `sun.mod'.
|
||||||
|
(sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
|
||||||
|
* include/grub/partition.h (grub_sun_partition_map_init): New
|
||||||
|
prototype.
|
||||||
|
(grub_sun_partition_map_fini): Likewise.
|
||||||
|
* partmap/sun.c: New file.
|
||||||
|
* util/grub-emu.c (main): Initialize and de-initialize the sun
|
||||||
|
partitionmap support.
|
||||||
|
|
||||||
2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
|
2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
|
||||||
|
|
||||||
This implements an Emacs-like menu entry editor.
|
This implements an Emacs-like menu entry editor.
|
||||||
|
|
|
@ -311,12 +311,12 @@ grub_mkimage_LDFLAGS = -llzo
|
||||||
grub_setup_SOURCES = util/i386/pc/grub-setup.c util/i386/pc/biosdisk.c \
|
grub_setup_SOURCES = util/i386/pc/grub-setup.c util/i386/pc/biosdisk.c \
|
||||||
util/misc.c util/i386/pc/getroot.c kern/device.c kern/disk.c \
|
util/misc.c util/i386/pc/getroot.c kern/device.c kern/disk.c \
|
||||||
kern/err.c kern/misc.c fs/fat.c fs/ext2.c \
|
kern/err.c kern/misc.c fs/fat.c fs/ext2.c \
|
||||||
kern/partition.c partmap/amiga.c partmap/apple.c partmap/pc.c \
|
kern/partition.c partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c \
|
||||||
fs/ufs.c fs/minix.c fs/hfs.c fs/jfs.c kern/file.c kern/fs.c kern/env.c fs/fshelp.c
|
fs/ufs.c fs/minix.c fs/hfs.c fs/jfs.c kern/file.c kern/fs.c kern/env.c fs/fshelp.c
|
||||||
CLEANFILES += grub-setup grub_setup-util_i386_pc_grub_setup.o grub_setup-util_i386_pc_biosdisk.o grub_setup-util_misc.o grub_setup-util_i386_pc_getroot.o grub_setup-kern_device.o grub_setup-kern_disk.o grub_setup-kern_err.o grub_setup-kern_misc.o grub_setup-fs_fat.o grub_setup-fs_ext2.o grub_setup-kern_partition.o grub_setup-partmap_amiga.o grub_setup-partmap_apple.o grub_setup-partmap_pc.o grub_setup-fs_ufs.o grub_setup-fs_minix.o grub_setup-fs_hfs.o grub_setup-fs_jfs.o grub_setup-kern_file.o grub_setup-kern_fs.o grub_setup-kern_env.o grub_setup-fs_fshelp.o
|
CLEANFILES += grub-setup grub_setup-util_i386_pc_grub_setup.o grub_setup-util_i386_pc_biosdisk.o grub_setup-util_misc.o grub_setup-util_i386_pc_getroot.o grub_setup-kern_device.o grub_setup-kern_disk.o grub_setup-kern_err.o grub_setup-kern_misc.o grub_setup-fs_fat.o grub_setup-fs_ext2.o grub_setup-kern_partition.o grub_setup-partmap_amiga.o grub_setup-partmap_apple.o grub_setup-partmap_pc.o grub_setup-partmap_sun.o grub_setup-fs_ufs.o grub_setup-fs_minix.o grub_setup-fs_hfs.o grub_setup-fs_jfs.o grub_setup-kern_file.o grub_setup-kern_fs.o grub_setup-kern_env.o grub_setup-fs_fshelp.o
|
||||||
MOSTLYCLEANFILES += grub_setup-util_i386_pc_grub_setup.d grub_setup-util_i386_pc_biosdisk.d grub_setup-util_misc.d grub_setup-util_i386_pc_getroot.d grub_setup-kern_device.d grub_setup-kern_disk.d grub_setup-kern_err.d grub_setup-kern_misc.d grub_setup-fs_fat.d grub_setup-fs_ext2.d grub_setup-kern_partition.d grub_setup-partmap_amiga.d grub_setup-partmap_apple.d grub_setup-partmap_pc.d grub_setup-fs_ufs.d grub_setup-fs_minix.d grub_setup-fs_hfs.d grub_setup-fs_jfs.d grub_setup-kern_file.d grub_setup-kern_fs.d grub_setup-kern_env.d grub_setup-fs_fshelp.d
|
MOSTLYCLEANFILES += grub_setup-util_i386_pc_grub_setup.d grub_setup-util_i386_pc_biosdisk.d grub_setup-util_misc.d grub_setup-util_i386_pc_getroot.d grub_setup-kern_device.d grub_setup-kern_disk.d grub_setup-kern_err.d grub_setup-kern_misc.d grub_setup-fs_fat.d grub_setup-fs_ext2.d grub_setup-kern_partition.d grub_setup-partmap_amiga.d grub_setup-partmap_apple.d grub_setup-partmap_pc.d grub_setup-partmap_sun.d grub_setup-fs_ufs.d grub_setup-fs_minix.d grub_setup-fs_hfs.d grub_setup-fs_jfs.d grub_setup-kern_file.d grub_setup-kern_fs.d grub_setup-kern_env.d grub_setup-fs_fshelp.d
|
||||||
|
|
||||||
grub-setup: grub_setup-util_i386_pc_grub_setup.o grub_setup-util_i386_pc_biosdisk.o grub_setup-util_misc.o grub_setup-util_i386_pc_getroot.o grub_setup-kern_device.o grub_setup-kern_disk.o grub_setup-kern_err.o grub_setup-kern_misc.o grub_setup-fs_fat.o grub_setup-fs_ext2.o grub_setup-kern_partition.o grub_setup-partmap_amiga.o grub_setup-partmap_apple.o grub_setup-partmap_pc.o grub_setup-fs_ufs.o grub_setup-fs_minix.o grub_setup-fs_hfs.o grub_setup-fs_jfs.o grub_setup-kern_file.o grub_setup-kern_fs.o grub_setup-kern_env.o grub_setup-fs_fshelp.o
|
grub-setup: grub_setup-util_i386_pc_grub_setup.o grub_setup-util_i386_pc_biosdisk.o grub_setup-util_misc.o grub_setup-util_i386_pc_getroot.o grub_setup-kern_device.o grub_setup-kern_disk.o grub_setup-kern_err.o grub_setup-kern_misc.o grub_setup-fs_fat.o grub_setup-fs_ext2.o grub_setup-kern_partition.o grub_setup-partmap_amiga.o grub_setup-partmap_apple.o grub_setup-partmap_pc.o grub_setup-partmap_sun.o grub_setup-fs_ufs.o grub_setup-fs_minix.o grub_setup-fs_hfs.o grub_setup-fs_jfs.o grub_setup-kern_file.o grub_setup-kern_fs.o grub_setup-kern_env.o grub_setup-fs_fshelp.o
|
||||||
$(BUILD_CC) -o $@ $^ $(BUILD_LDFLAGS) $(grub_setup_LDFLAGS)
|
$(BUILD_CC) -o $@ $^ $(BUILD_LDFLAGS) $(grub_setup_LDFLAGS)
|
||||||
|
|
||||||
grub_setup-util_i386_pc_grub_setup.o: util/i386/pc/grub-setup.c
|
grub_setup-util_i386_pc_grub_setup.o: util/i386/pc/grub-setup.c
|
||||||
|
@ -431,6 +431,14 @@ grub_setup-partmap_pc.d: partmap/pc.c
|
||||||
|
|
||||||
-include grub_setup-partmap_pc.d
|
-include grub_setup-partmap_pc.d
|
||||||
|
|
||||||
|
grub_setup-partmap_sun.o: partmap/sun.c
|
||||||
|
$(BUILD_CC) -Ipartmap -I$(srcdir)/partmap $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
grub_setup-partmap_sun.d: partmap/sun.c
|
||||||
|
set -e; $(BUILD_CC) -Ipartmap -I$(srcdir)/partmap $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -M $< | sed 's,sun\.o[ :]*,grub_setup-partmap_sun.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@
|
||||||
|
|
||||||
|
-include grub_setup-partmap_sun.d
|
||||||
|
|
||||||
grub_setup-fs_ufs.o: fs/ufs.c
|
grub_setup-fs_ufs.o: fs/ufs.c
|
||||||
$(BUILD_CC) -Ifs -I$(srcdir)/fs $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -c -o $@ $<
|
$(BUILD_CC) -Ifs -I$(srcdir)/fs $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
@ -508,14 +516,14 @@ grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c \
|
||||||
kern/partition.c kern/rescue.c kern/term.c \
|
kern/partition.c kern/rescue.c kern/term.c \
|
||||||
normal/arg.c normal/cmdline.c normal/command.c normal/main.c \
|
normal/arg.c normal/cmdline.c normal/command.c normal/main.c \
|
||||||
normal/menu.c normal/menu_entry.c \
|
normal/menu.c normal/menu_entry.c \
|
||||||
partmap/amiga.c partmap/apple.c partmap/pc.c \
|
partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c \
|
||||||
util/console.c util/grub-emu.c util/misc.c \
|
util/console.c util/grub-emu.c util/misc.c \
|
||||||
util/i386/pc/biosdisk.c util/i386/pc/getroot.c \
|
util/i386/pc/biosdisk.c util/i386/pc/getroot.c \
|
||||||
util/i386/pc/misc.c
|
util/i386/pc/misc.c
|
||||||
CLEANFILES += grub-emu grub_emu-commands_boot.o grub_emu-commands_cat.o grub_emu-commands_cmp.o grub_emu-commands_help.o grub_emu-commands_terminal.o grub_emu-commands_ls.o grub_emu-commands_i386_pc_halt.o grub_emu-commands_i386_pc_reboot.o grub_emu-disk_loopback.o grub_emu-fs_ext2.o grub_emu-fs_fat.o grub_emu-fs_fshelp.o grub_emu-fs_hfs.o grub_emu-fs_iso9660.o grub_emu-fs_jfs.o grub_emu-fs_minix.o grub_emu-fs_ufs.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_env.o grub_emu-kern_err.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-kern_loader.o grub_emu-kern_main.o grub_emu-kern_misc.o grub_emu-kern_partition.o grub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-normal_arg.o grub_emu-normal_cmdline.o grub_emu-normal_command.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_emu-normal_menu_entry.o grub_emu-partmap_amiga.o grub_emu-partmap_apple.o grub_emu-partmap_pc.o grub_emu-util_console.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_i386_pc_biosdisk.o grub_emu-util_i386_pc_getroot.o grub_emu-util_i386_pc_misc.o
|
CLEANFILES += grub-emu grub_emu-commands_boot.o grub_emu-commands_cat.o grub_emu-commands_cmp.o grub_emu-commands_help.o grub_emu-commands_terminal.o grub_emu-commands_ls.o grub_emu-commands_i386_pc_halt.o grub_emu-commands_i386_pc_reboot.o grub_emu-disk_loopback.o grub_emu-fs_ext2.o grub_emu-fs_fat.o grub_emu-fs_fshelp.o grub_emu-fs_hfs.o grub_emu-fs_iso9660.o grub_emu-fs_jfs.o grub_emu-fs_minix.o grub_emu-fs_ufs.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_env.o grub_emu-kern_err.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-kern_loader.o grub_emu-kern_main.o grub_emu-kern_misc.o grub_emu-kern_partition.o grub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-normal_arg.o grub_emu-normal_cmdline.o grub_emu-normal_command.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_emu-normal_menu_entry.o grub_emu-partmap_amiga.o grub_emu-partmap_apple.o grub_emu-partmap_pc.o grub_emu-partmap_sun.o grub_emu-util_console.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_i386_pc_biosdisk.o grub_emu-util_i386_pc_getroot.o grub_emu-util_i386_pc_misc.o
|
||||||
MOSTLYCLEANFILES += grub_emu-commands_boot.d grub_emu-commands_cat.d grub_emu-commands_cmp.d grub_emu-commands_help.d grub_emu-commands_terminal.d grub_emu-commands_ls.d grub_emu-commands_i386_pc_halt.d grub_emu-commands_i386_pc_reboot.d grub_emu-disk_loopback.d grub_emu-fs_ext2.d grub_emu-fs_fat.d grub_emu-fs_fshelp.d grub_emu-fs_hfs.d grub_emu-fs_iso9660.d grub_emu-fs_jfs.d grub_emu-fs_minix.d grub_emu-fs_ufs.d grub_emu-kern_device.d grub_emu-kern_disk.d grub_emu-kern_dl.d grub_emu-kern_env.d grub_emu-kern_err.d grub_emu-kern_file.d grub_emu-kern_fs.d grub_emu-kern_loader.d grub_emu-kern_main.d grub_emu-kern_misc.d grub_emu-kern_partition.d grub_emu-kern_rescue.d grub_emu-kern_term.d grub_emu-normal_arg.d grub_emu-normal_cmdline.d grub_emu-normal_command.d grub_emu-normal_main.d grub_emu-normal_menu.d grub_emu-normal_menu_entry.d grub_emu-partmap_amiga.d grub_emu-partmap_apple.d grub_emu-partmap_pc.d grub_emu-util_console.d grub_emu-util_grub_emu.d grub_emu-util_misc.d grub_emu-util_i386_pc_biosdisk.d grub_emu-util_i386_pc_getroot.d grub_emu-util_i386_pc_misc.d
|
MOSTLYCLEANFILES += grub_emu-commands_boot.d grub_emu-commands_cat.d grub_emu-commands_cmp.d grub_emu-commands_help.d grub_emu-commands_terminal.d grub_emu-commands_ls.d grub_emu-commands_i386_pc_halt.d grub_emu-commands_i386_pc_reboot.d grub_emu-disk_loopback.d grub_emu-fs_ext2.d grub_emu-fs_fat.d grub_emu-fs_fshelp.d grub_emu-fs_hfs.d grub_emu-fs_iso9660.d grub_emu-fs_jfs.d grub_emu-fs_minix.d grub_emu-fs_ufs.d grub_emu-kern_device.d grub_emu-kern_disk.d grub_emu-kern_dl.d grub_emu-kern_env.d grub_emu-kern_err.d grub_emu-kern_file.d grub_emu-kern_fs.d grub_emu-kern_loader.d grub_emu-kern_main.d grub_emu-kern_misc.d grub_emu-kern_partition.d grub_emu-kern_rescue.d grub_emu-kern_term.d grub_emu-normal_arg.d grub_emu-normal_cmdline.d grub_emu-normal_command.d grub_emu-normal_main.d grub_emu-normal_menu.d grub_emu-normal_menu_entry.d grub_emu-partmap_amiga.d grub_emu-partmap_apple.d grub_emu-partmap_pc.d grub_emu-partmap_sun.d grub_emu-util_console.d grub_emu-util_grub_emu.d grub_emu-util_misc.d grub_emu-util_i386_pc_biosdisk.d grub_emu-util_i386_pc_getroot.d grub_emu-util_i386_pc_misc.d
|
||||||
|
|
||||||
grub-emu: grub_emu-commands_boot.o grub_emu-commands_cat.o grub_emu-commands_cmp.o grub_emu-commands_help.o grub_emu-commands_terminal.o grub_emu-commands_ls.o grub_emu-commands_i386_pc_halt.o grub_emu-commands_i386_pc_reboot.o grub_emu-disk_loopback.o grub_emu-fs_ext2.o grub_emu-fs_fat.o grub_emu-fs_fshelp.o grub_emu-fs_hfs.o grub_emu-fs_iso9660.o grub_emu-fs_jfs.o grub_emu-fs_minix.o grub_emu-fs_ufs.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_env.o grub_emu-kern_err.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-kern_loader.o grub_emu-kern_main.o grub_emu-kern_misc.o grub_emu-kern_partition.o grub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-normal_arg.o grub_emu-normal_cmdline.o grub_emu-normal_command.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_emu-normal_menu_entry.o grub_emu-partmap_amiga.o grub_emu-partmap_apple.o grub_emu-partmap_pc.o grub_emu-util_console.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_i386_pc_biosdisk.o grub_emu-util_i386_pc_getroot.o grub_emu-util_i386_pc_misc.o
|
grub-emu: grub_emu-commands_boot.o grub_emu-commands_cat.o grub_emu-commands_cmp.o grub_emu-commands_help.o grub_emu-commands_terminal.o grub_emu-commands_ls.o grub_emu-commands_i386_pc_halt.o grub_emu-commands_i386_pc_reboot.o grub_emu-disk_loopback.o grub_emu-fs_ext2.o grub_emu-fs_fat.o grub_emu-fs_fshelp.o grub_emu-fs_hfs.o grub_emu-fs_iso9660.o grub_emu-fs_jfs.o grub_emu-fs_minix.o grub_emu-fs_ufs.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_env.o grub_emu-kern_err.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-kern_loader.o grub_emu-kern_main.o grub_emu-kern_misc.o grub_emu-kern_partition.o grub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-normal_arg.o grub_emu-normal_cmdline.o grub_emu-normal_command.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_emu-normal_menu_entry.o grub_emu-partmap_amiga.o grub_emu-partmap_apple.o grub_emu-partmap_pc.o grub_emu-partmap_sun.o grub_emu-util_console.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_i386_pc_biosdisk.o grub_emu-util_i386_pc_getroot.o grub_emu-util_i386_pc_misc.o
|
||||||
$(BUILD_CC) -o $@ $^ $(BUILD_LDFLAGS) $(grub_emu_LDFLAGS)
|
$(BUILD_CC) -o $@ $^ $(BUILD_LDFLAGS) $(grub_emu_LDFLAGS)
|
||||||
|
|
||||||
grub_emu-commands_boot.o: commands/boot.c
|
grub_emu-commands_boot.o: commands/boot.c
|
||||||
|
@ -830,6 +838,14 @@ grub_emu-partmap_pc.d: partmap/pc.c
|
||||||
|
|
||||||
-include grub_emu-partmap_pc.d
|
-include grub_emu-partmap_pc.d
|
||||||
|
|
||||||
|
grub_emu-partmap_sun.o: partmap/sun.c
|
||||||
|
$(BUILD_CC) -Ipartmap -I$(srcdir)/partmap $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
grub_emu-partmap_sun.d: partmap/sun.c
|
||||||
|
set -e; $(BUILD_CC) -Ipartmap -I$(srcdir)/partmap $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -M $< | sed 's,sun\.o[ :]*,grub_emu-partmap_sun.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@
|
||||||
|
|
||||||
|
-include grub_emu-partmap_sun.d
|
||||||
|
|
||||||
grub_emu-util_console.o: util/console.c
|
grub_emu-util_console.o: util/console.c
|
||||||
$(BUILD_CC) -Iutil -I$(srcdir)/util $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $<
|
$(BUILD_CC) -Iutil -I$(srcdir)/util $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
@ -902,7 +918,7 @@ genmoddep-util_genmoddep.d: util/genmoddep.c
|
||||||
pkgdata_MODULES = _chain.mod _linux.mod linux.mod fat.mod ufs.mod ext2.mod minix.mod \
|
pkgdata_MODULES = _chain.mod _linux.mod linux.mod fat.mod ufs.mod ext2.mod minix.mod \
|
||||||
hfs.mod jfs.mod normal.mod hello.mod vga.mod font.mod _multiboot.mod ls.mod \
|
hfs.mod jfs.mod normal.mod hello.mod vga.mod font.mod _multiboot.mod ls.mod \
|
||||||
boot.mod cmp.mod cat.mod terminal.mod fshelp.mod chain.mod multiboot.mod \
|
boot.mod cmp.mod cat.mod terminal.mod fshelp.mod chain.mod multiboot.mod \
|
||||||
amiga.mod apple.mod pc.mod loopback.mod reboot.mod halt.mod help.mod
|
amiga.mod apple.mod pc.mod sun.mod loopback.mod reboot.mod halt.mod help.mod
|
||||||
|
|
||||||
# For _chain.mod.
|
# For _chain.mod.
|
||||||
_chain_mod_SOURCES = loader/i386/pc/chainloader.c
|
_chain_mod_SOURCES = loader/i386/pc/chainloader.c
|
||||||
|
@ -2051,6 +2067,45 @@ pc_mod-partmap_pc.d: partmap/pc.c
|
||||||
|
|
||||||
pc_mod_CFLAGS = $(COMMON_CFLAGS)
|
pc_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||||
|
|
||||||
|
# For sun.mod
|
||||||
|
sun_mod_SOURCES = partmap/sun.c
|
||||||
|
CLEANFILES += sun.mod mod-sun.o mod-sun.c pre-sun.o sun_mod-partmap_sun.o def-sun.lst und-sun.lst
|
||||||
|
MOSTLYCLEANFILES += sun_mod-partmap_sun.d
|
||||||
|
DEFSYMFILES += def-sun.lst
|
||||||
|
UNDSYMFILES += und-sun.lst
|
||||||
|
|
||||||
|
sun.mod: pre-sun.o mod-sun.o
|
||||||
|
-rm -f $@
|
||||||
|
$(LD) -r -d -o $@ $^
|
||||||
|
$(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
|
||||||
|
|
||||||
|
pre-sun.o: sun_mod-partmap_sun.o
|
||||||
|
-rm -f $@
|
||||||
|
$(LD) -r -d -o $@ $^
|
||||||
|
|
||||||
|
mod-sun.o: mod-sun.c
|
||||||
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(sun_mod_CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
mod-sun.c: moddep.lst genmodsrc.sh
|
||||||
|
sh $(srcdir)/genmodsrc.sh 'sun' $< > $@ || (rm -f $@; exit 1)
|
||||||
|
|
||||||
|
def-sun.lst: pre-sun.o
|
||||||
|
$(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 sun/' > $@
|
||||||
|
|
||||||
|
und-sun.lst: pre-sun.o
|
||||||
|
echo 'sun' > $@
|
||||||
|
$(NM) -u -P -p $< | cut -f1 -d' ' >> $@
|
||||||
|
|
||||||
|
sun_mod-partmap_sun.o: partmap/sun.c
|
||||||
|
$(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) $(sun_mod_CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
sun_mod-partmap_sun.d: partmap/sun.c
|
||||||
|
set -e; $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) $(sun_mod_CFLAGS) -M $< | sed 's,sun\.o[ :]*,sun_mod-partmap_sun.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@
|
||||||
|
|
||||||
|
-include sun_mod-partmap_sun.d
|
||||||
|
|
||||||
|
sun_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||||
|
|
||||||
# For loopback.mod
|
# For loopback.mod
|
||||||
loopback_mod_SOURCES = disk/loopback.c
|
loopback_mod_SOURCES = disk/loopback.c
|
||||||
CLEANFILES += loopback.mod mod-loopback.o mod-loopback.c pre-loopback.o loopback_mod-disk_loopback.o def-loopback.lst und-loopback.lst
|
CLEANFILES += loopback.mod mod-loopback.o mod-loopback.c pre-loopback.o loopback_mod-disk_loopback.o def-loopback.lst und-loopback.lst
|
||||||
|
|
|
@ -61,7 +61,7 @@ grub_mkimage_LDFLAGS = -llzo
|
||||||
grub_setup_SOURCES = util/i386/pc/grub-setup.c util/i386/pc/biosdisk.c \
|
grub_setup_SOURCES = util/i386/pc/grub-setup.c util/i386/pc/biosdisk.c \
|
||||||
util/misc.c util/i386/pc/getroot.c kern/device.c kern/disk.c \
|
util/misc.c util/i386/pc/getroot.c kern/device.c kern/disk.c \
|
||||||
kern/err.c kern/misc.c fs/fat.c fs/ext2.c \
|
kern/err.c kern/misc.c fs/fat.c fs/ext2.c \
|
||||||
kern/partition.c partmap/amiga.c partmap/apple.c partmap/pc.c \
|
kern/partition.c partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c \
|
||||||
fs/ufs.c fs/minix.c fs/hfs.c fs/jfs.c kern/file.c kern/fs.c kern/env.c fs/fshelp.c
|
fs/ufs.c fs/minix.c fs/hfs.c fs/jfs.c kern/file.c kern/fs.c kern/env.c fs/fshelp.c
|
||||||
|
|
||||||
# For grub
|
# For grub
|
||||||
|
@ -76,7 +76,7 @@ grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c \
|
||||||
kern/partition.c kern/rescue.c kern/term.c \
|
kern/partition.c kern/rescue.c kern/term.c \
|
||||||
normal/arg.c normal/cmdline.c normal/command.c normal/main.c \
|
normal/arg.c normal/cmdline.c normal/command.c normal/main.c \
|
||||||
normal/menu.c normal/menu_entry.c \
|
normal/menu.c normal/menu_entry.c \
|
||||||
partmap/amiga.c partmap/apple.c partmap/pc.c \
|
partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c \
|
||||||
util/console.c util/grub-emu.c util/misc.c \
|
util/console.c util/grub-emu.c util/misc.c \
|
||||||
util/i386/pc/biosdisk.c util/i386/pc/getroot.c \
|
util/i386/pc/biosdisk.c util/i386/pc/getroot.c \
|
||||||
util/i386/pc/misc.c
|
util/i386/pc/misc.c
|
||||||
|
@ -90,7 +90,7 @@ genmoddep_SOURCES = util/genmoddep.c
|
||||||
pkgdata_MODULES = _chain.mod _linux.mod linux.mod fat.mod ufs.mod ext2.mod minix.mod \
|
pkgdata_MODULES = _chain.mod _linux.mod linux.mod fat.mod ufs.mod ext2.mod minix.mod \
|
||||||
hfs.mod jfs.mod normal.mod hello.mod vga.mod font.mod _multiboot.mod ls.mod \
|
hfs.mod jfs.mod normal.mod hello.mod vga.mod font.mod _multiboot.mod ls.mod \
|
||||||
boot.mod cmp.mod cat.mod terminal.mod fshelp.mod chain.mod multiboot.mod \
|
boot.mod cmp.mod cat.mod terminal.mod fshelp.mod chain.mod multiboot.mod \
|
||||||
amiga.mod apple.mod pc.mod loopback.mod reboot.mod halt.mod help.mod
|
amiga.mod apple.mod pc.mod sun.mod loopback.mod reboot.mod halt.mod help.mod
|
||||||
|
|
||||||
# For _chain.mod.
|
# For _chain.mod.
|
||||||
_chain_mod_SOURCES = loader/i386/pc/chainloader.c
|
_chain_mod_SOURCES = loader/i386/pc/chainloader.c
|
||||||
|
@ -211,6 +211,10 @@ apple_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||||
pc_mod_SOURCES = partmap/pc.c
|
pc_mod_SOURCES = partmap/pc.c
|
||||||
pc_mod_CFLAGS = $(COMMON_CFLAGS)
|
pc_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||||
|
|
||||||
|
# For sun.mod
|
||||||
|
sun_mod_SOURCES = partmap/sun.c
|
||||||
|
sun_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||||
|
|
||||||
# For loopback.mod
|
# For loopback.mod
|
||||||
loopback_mod_SOURCES = disk/loopback.c
|
loopback_mod_SOURCES = disk/loopback.c
|
||||||
loopback_mod_CFLAGS = $(COMMON_CFLAGS)
|
loopback_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||||
|
|
|
@ -67,16 +67,16 @@ grub_emu_SOURCES = kern/main.c kern/device.c \
|
||||||
kern/misc.c kern/loader.c kern/rescue.c kern/term.c \
|
kern/misc.c kern/loader.c kern/rescue.c kern/term.c \
|
||||||
partmap/amiga.c partmap/pc.c partmap/apple.c fs/fshelp.c \
|
partmap/amiga.c partmap/pc.c partmap/apple.c fs/fshelp.c \
|
||||||
util/i386/pc/biosdisk.c fs/fat.c fs/ext2.c fs/ufs.c fs/minix.c fs/hfs.c \
|
util/i386/pc/biosdisk.c fs/fat.c fs/ext2.c fs/ufs.c fs/minix.c fs/hfs.c \
|
||||||
fs/jfs.c fs/iso9660.c \
|
fs/jfs.c fs/iso9660.c partmap/sun.c \
|
||||||
normal/cmdline.c normal/command.c normal/main.c normal/menu.c \
|
normal/cmdline.c normal/command.c normal/main.c normal/menu.c \
|
||||||
normal/arg.c kern/partition.c \
|
normal/menu_entry.c normal/arg.c kern/partition.c \
|
||||||
util/console.c util/grub-emu.c util/misc.c util/i386/pc/getroot.c \
|
util/console.c util/grub-emu.c util/misc.c util/i386/pc/getroot.c \
|
||||||
kern/env.c disk/loopback.c commands/ls.c commands/help.c \
|
kern/env.c disk/loopback.c commands/ls.c commands/help.c \
|
||||||
commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c
|
commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c
|
||||||
CLEANFILES += grub-emu grub_emu-kern_main.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-kern_err.o grub_emu-kern_misc.o grub_emu-kern_loader.o grub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-partmap_amiga.o grub_emu-partmap_pc.o grub_emu-partmap_apple.o grub_emu-fs_fshelp.o grub_emu-util_i386_pc_biosdisk.o grub_emu-fs_fat.o grub_emu-fs_ext2.o grub_emu-fs_ufs.o grub_emu-fs_minix.o grub_emu-fs_hfs.o grub_emu-fs_jfs.o grub_emu-fs_iso9660.o grub_emu-normal_cmdline.o grub_emu-normal_command.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_emu-normal_arg.o grub_emu-kern_partition.o grub_emu-util_console.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_i386_pc_getroot.o grub_emu-kern_env.o grub_emu-disk_loopback.o grub_emu-commands_ls.o grub_emu-commands_help.o grub_emu-commands_terminal.o grub_emu-commands_boot.o grub_emu-commands_cmp.o grub_emu-commands_cat.o
|
CLEANFILES += grub-emu grub_emu-kern_main.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-kern_err.o grub_emu-kern_misc.o grub_emu-kern_loader.o grub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-partmap_amiga.o grub_emu-partmap_pc.o grub_emu-partmap_apple.o grub_emu-fs_fshelp.o grub_emu-util_i386_pc_biosdisk.o grub_emu-fs_fat.o grub_emu-fs_ext2.o grub_emu-fs_ufs.o grub_emu-fs_minix.o grub_emu-fs_hfs.o grub_emu-fs_jfs.o grub_emu-fs_iso9660.o grub_emu-partmap_sun.o grub_emu-normal_cmdline.o grub_emu-normal_command.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_emu-normal_menu_entry.o grub_emu-normal_arg.o grub_emu-kern_partition.o grub_emu-util_console.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_i386_pc_getroot.o grub_emu-kern_env.o grub_emu-disk_loopback.o grub_emu-commands_ls.o grub_emu-commands_help.o grub_emu-commands_terminal.o grub_emu-commands_boot.o grub_emu-commands_cmp.o grub_emu-commands_cat.o
|
||||||
MOSTLYCLEANFILES += grub_emu-kern_main.d grub_emu-kern_device.d grub_emu-kern_disk.d grub_emu-kern_dl.d grub_emu-kern_file.d grub_emu-kern_fs.d grub_emu-kern_err.d grub_emu-kern_misc.d grub_emu-kern_loader.d grub_emu-kern_rescue.d grub_emu-kern_term.d grub_emu-partmap_amiga.d grub_emu-partmap_pc.d grub_emu-partmap_apple.d grub_emu-fs_fshelp.d grub_emu-util_i386_pc_biosdisk.d grub_emu-fs_fat.d grub_emu-fs_ext2.d grub_emu-fs_ufs.d grub_emu-fs_minix.d grub_emu-fs_hfs.d grub_emu-fs_jfs.d grub_emu-fs_iso9660.d grub_emu-normal_cmdline.d grub_emu-normal_command.d grub_emu-normal_main.d grub_emu-normal_menu.d grub_emu-normal_arg.d grub_emu-kern_partition.d grub_emu-util_console.d grub_emu-util_grub_emu.d grub_emu-util_misc.d grub_emu-util_i386_pc_getroot.d grub_emu-kern_env.d grub_emu-disk_loopback.d grub_emu-commands_ls.d grub_emu-commands_help.d grub_emu-commands_terminal.d grub_emu-commands_boot.d grub_emu-commands_cmp.d grub_emu-commands_cat.d
|
MOSTLYCLEANFILES += grub_emu-kern_main.d grub_emu-kern_device.d grub_emu-kern_disk.d grub_emu-kern_dl.d grub_emu-kern_file.d grub_emu-kern_fs.d grub_emu-kern_err.d grub_emu-kern_misc.d grub_emu-kern_loader.d grub_emu-kern_rescue.d grub_emu-kern_term.d grub_emu-partmap_amiga.d grub_emu-partmap_pc.d grub_emu-partmap_apple.d grub_emu-fs_fshelp.d grub_emu-util_i386_pc_biosdisk.d grub_emu-fs_fat.d grub_emu-fs_ext2.d grub_emu-fs_ufs.d grub_emu-fs_minix.d grub_emu-fs_hfs.d grub_emu-fs_jfs.d grub_emu-fs_iso9660.d grub_emu-partmap_sun.d grub_emu-normal_cmdline.d grub_emu-normal_command.d grub_emu-normal_main.d grub_emu-normal_menu.d grub_emu-normal_menu_entry.d grub_emu-normal_arg.d grub_emu-kern_partition.d grub_emu-util_console.d grub_emu-util_grub_emu.d grub_emu-util_misc.d grub_emu-util_i386_pc_getroot.d grub_emu-kern_env.d grub_emu-disk_loopback.d grub_emu-commands_ls.d grub_emu-commands_help.d grub_emu-commands_terminal.d grub_emu-commands_boot.d grub_emu-commands_cmp.d grub_emu-commands_cat.d
|
||||||
|
|
||||||
grub-emu: grub_emu-kern_main.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-kern_err.o grub_emu-kern_misc.o grub_emu-kern_loader.o grub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-partmap_amiga.o grub_emu-partmap_pc.o grub_emu-partmap_apple.o grub_emu-fs_fshelp.o grub_emu-util_i386_pc_biosdisk.o grub_emu-fs_fat.o grub_emu-fs_ext2.o grub_emu-fs_ufs.o grub_emu-fs_minix.o grub_emu-fs_hfs.o grub_emu-fs_jfs.o grub_emu-fs_iso9660.o grub_emu-normal_cmdline.o grub_emu-normal_command.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_emu-normal_arg.o grub_emu-kern_partition.o grub_emu-util_console.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_i386_pc_getroot.o grub_emu-kern_env.o grub_emu-disk_loopback.o grub_emu-commands_ls.o grub_emu-commands_help.o grub_emu-commands_terminal.o grub_emu-commands_boot.o grub_emu-commands_cmp.o grub_emu-commands_cat.o
|
grub-emu: grub_emu-kern_main.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-kern_err.o grub_emu-kern_misc.o grub_emu-kern_loader.o grub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-partmap_amiga.o grub_emu-partmap_pc.o grub_emu-partmap_apple.o grub_emu-fs_fshelp.o grub_emu-util_i386_pc_biosdisk.o grub_emu-fs_fat.o grub_emu-fs_ext2.o grub_emu-fs_ufs.o grub_emu-fs_minix.o grub_emu-fs_hfs.o grub_emu-fs_jfs.o grub_emu-fs_iso9660.o grub_emu-partmap_sun.o grub_emu-normal_cmdline.o grub_emu-normal_command.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_emu-normal_menu_entry.o grub_emu-normal_arg.o grub_emu-kern_partition.o grub_emu-util_console.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_i386_pc_getroot.o grub_emu-kern_env.o grub_emu-disk_loopback.o grub_emu-commands_ls.o grub_emu-commands_help.o grub_emu-commands_terminal.o grub_emu-commands_boot.o grub_emu-commands_cmp.o grub_emu-commands_cat.o
|
||||||
$(BUILD_CC) -o $@ $^ $(BUILD_LDFLAGS) $(grub_emu_LDFLAGS)
|
$(BUILD_CC) -o $@ $^ $(BUILD_LDFLAGS) $(grub_emu_LDFLAGS)
|
||||||
|
|
||||||
grub_emu-kern_main.o: kern/main.c
|
grub_emu-kern_main.o: kern/main.c
|
||||||
|
@ -263,6 +263,14 @@ grub_emu-fs_iso9660.d: fs/iso9660.c
|
||||||
|
|
||||||
-include grub_emu-fs_iso9660.d
|
-include grub_emu-fs_iso9660.d
|
||||||
|
|
||||||
|
grub_emu-partmap_sun.o: partmap/sun.c
|
||||||
|
$(BUILD_CC) -Ipartmap -I$(srcdir)/partmap $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
grub_emu-partmap_sun.d: partmap/sun.c
|
||||||
|
set -e; $(BUILD_CC) -Ipartmap -I$(srcdir)/partmap $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -M $< | sed 's,sun\.o[ :]*,grub_emu-partmap_sun.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@
|
||||||
|
|
||||||
|
-include grub_emu-partmap_sun.d
|
||||||
|
|
||||||
grub_emu-normal_cmdline.o: normal/cmdline.c
|
grub_emu-normal_cmdline.o: normal/cmdline.c
|
||||||
$(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $<
|
$(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
@ -295,6 +303,14 @@ grub_emu-normal_menu.d: normal/menu.c
|
||||||
|
|
||||||
-include grub_emu-normal_menu.d
|
-include grub_emu-normal_menu.d
|
||||||
|
|
||||||
|
grub_emu-normal_menu_entry.o: normal/menu_entry.c
|
||||||
|
$(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
grub_emu-normal_menu_entry.d: normal/menu_entry.c
|
||||||
|
set -e; $(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -M $< | sed 's,menu_entry\.o[ :]*,grub_emu-normal_menu_entry.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@
|
||||||
|
|
||||||
|
-include grub_emu-normal_menu_entry.d
|
||||||
|
|
||||||
grub_emu-normal_arg.o: normal/arg.c
|
grub_emu-normal_arg.o: normal/arg.c
|
||||||
$(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $<
|
$(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
@ -641,7 +657,7 @@ genmoddep-util_genmoddep.d: util/genmoddep.c
|
||||||
pkgdata_MODULES = _linux.mod linux.mod fat.mod ufs.mod ext2.mod minix.mod \
|
pkgdata_MODULES = _linux.mod linux.mod fat.mod ufs.mod ext2.mod minix.mod \
|
||||||
hfs.mod jfs.mod normal.mod hello.mod font.mod ls.mod \
|
hfs.mod jfs.mod normal.mod hello.mod font.mod ls.mod \
|
||||||
boot.mod cmp.mod cat.mod terminal.mod fshelp.mod amiga.mod apple.mod \
|
boot.mod cmp.mod cat.mod terminal.mod fshelp.mod amiga.mod apple.mod \
|
||||||
pc.mod suspend.mod loopback.mod help.mod reboot.mod halt.mod
|
pc.mod suspend.mod loopback.mod help.mod reboot.mod halt.mod sun.mod
|
||||||
|
|
||||||
# For fshelp.mod.
|
# For fshelp.mod.
|
||||||
fshelp_mod_SOURCES = fs/fshelp.c
|
fshelp_mod_SOURCES = fs/fshelp.c
|
||||||
|
@ -999,10 +1015,11 @@ linux_mod-loader_powerpc_ieee1275_linux_normal.d: loader/powerpc/ieee1275/linux_
|
||||||
linux_mod_CFLAGS = $(COMMON_CFLAGS)
|
linux_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||||
|
|
||||||
# For normal.mod.
|
# For normal.mod.
|
||||||
normal_mod_SOURCES = normal/cmdline.c normal/command.c normal/main.c \
|
normal_mod_SOURCES = normal/arg.c normal/cmdline.c normal/command.c \
|
||||||
normal/menu.c normal/arg.c normal/powerpc/setjmp.S
|
normal/main.c normal/menu.c normal/menu_entry.c \
|
||||||
CLEANFILES += normal.mod mod-normal.o mod-normal.c pre-normal.o normal_mod-normal_cmdline.o normal_mod-normal_command.o normal_mod-normal_main.o normal_mod-normal_menu.o normal_mod-normal_arg.o normal_mod-normal_powerpc_setjmp.o def-normal.lst und-normal.lst
|
normal/powerpc/setjmp.S
|
||||||
MOSTLYCLEANFILES += normal_mod-normal_cmdline.d normal_mod-normal_command.d normal_mod-normal_main.d normal_mod-normal_menu.d normal_mod-normal_arg.d normal_mod-normal_powerpc_setjmp.d
|
CLEANFILES += normal.mod mod-normal.o mod-normal.c pre-normal.o normal_mod-normal_arg.o normal_mod-normal_cmdline.o normal_mod-normal_command.o normal_mod-normal_main.o normal_mod-normal_menu.o normal_mod-normal_menu_entry.o normal_mod-normal_powerpc_setjmp.o def-normal.lst und-normal.lst
|
||||||
|
MOSTLYCLEANFILES += normal_mod-normal_arg.d normal_mod-normal_cmdline.d normal_mod-normal_command.d normal_mod-normal_main.d normal_mod-normal_menu.d normal_mod-normal_menu_entry.d normal_mod-normal_powerpc_setjmp.d
|
||||||
DEFSYMFILES += def-normal.lst
|
DEFSYMFILES += def-normal.lst
|
||||||
UNDSYMFILES += und-normal.lst
|
UNDSYMFILES += und-normal.lst
|
||||||
|
|
||||||
|
@ -1011,7 +1028,7 @@ normal.mod: pre-normal.o mod-normal.o
|
||||||
$(LD) -r -d -o $@ $^
|
$(LD) -r -d -o $@ $^
|
||||||
$(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
|
$(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
|
||||||
|
|
||||||
pre-normal.o: normal_mod-normal_cmdline.o normal_mod-normal_command.o normal_mod-normal_main.o normal_mod-normal_menu.o normal_mod-normal_arg.o normal_mod-normal_powerpc_setjmp.o
|
pre-normal.o: normal_mod-normal_arg.o normal_mod-normal_cmdline.o normal_mod-normal_command.o normal_mod-normal_main.o normal_mod-normal_menu.o normal_mod-normal_menu_entry.o normal_mod-normal_powerpc_setjmp.o
|
||||||
-rm -f $@
|
-rm -f $@
|
||||||
$(LD) -r -d -o $@ $^
|
$(LD) -r -d -o $@ $^
|
||||||
|
|
||||||
|
@ -1028,6 +1045,14 @@ und-normal.lst: pre-normal.o
|
||||||
echo 'normal' > $@
|
echo 'normal' > $@
|
||||||
$(NM) -u -P -p $< | cut -f1 -d' ' >> $@
|
$(NM) -u -P -p $< | cut -f1 -d' ' >> $@
|
||||||
|
|
||||||
|
normal_mod-normal_arg.o: normal/arg.c
|
||||||
|
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
normal_mod-normal_arg.d: normal/arg.c
|
||||||
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,arg\.o[ :]*,normal_mod-normal_arg.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@
|
||||||
|
|
||||||
|
-include normal_mod-normal_arg.d
|
||||||
|
|
||||||
normal_mod-normal_cmdline.o: normal/cmdline.c
|
normal_mod-normal_cmdline.o: normal/cmdline.c
|
||||||
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
|
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
@ -1060,13 +1085,13 @@ normal_mod-normal_menu.d: normal/menu.c
|
||||||
|
|
||||||
-include normal_mod-normal_menu.d
|
-include normal_mod-normal_menu.d
|
||||||
|
|
||||||
normal_mod-normal_arg.o: normal/arg.c
|
normal_mod-normal_menu_entry.o: normal/menu_entry.c
|
||||||
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
|
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
normal_mod-normal_arg.d: normal/arg.c
|
normal_mod-normal_menu_entry.d: normal/menu_entry.c
|
||||||
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,arg\.o[ :]*,normal_mod-normal_arg.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,menu_entry\.o[ :]*,normal_mod-normal_menu_entry.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@
|
||||||
|
|
||||||
-include normal_mod-normal_arg.d
|
-include normal_mod-normal_menu_entry.d
|
||||||
|
|
||||||
normal_mod-normal_powerpc_setjmp.o: normal/powerpc/setjmp.S
|
normal_mod-normal_powerpc_setjmp.o: normal/powerpc/setjmp.S
|
||||||
$(CC) -Inormal/powerpc -I$(srcdir)/normal/powerpc $(CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -c -o $@ $<
|
$(CC) -Inormal/powerpc -I$(srcdir)/normal/powerpc $(CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -c -o $@ $<
|
||||||
|
@ -1469,6 +1494,45 @@ pc_mod-partmap_pc.d: partmap/pc.c
|
||||||
|
|
||||||
pc_mod_CFLAGS = $(COMMON_CFLAGS)
|
pc_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||||
|
|
||||||
|
# For sun.mod
|
||||||
|
sun_mod_SOURCES = partmap/sun.c
|
||||||
|
CLEANFILES += sun.mod mod-sun.o mod-sun.c pre-sun.o sun_mod-partmap_sun.o def-sun.lst und-sun.lst
|
||||||
|
MOSTLYCLEANFILES += sun_mod-partmap_sun.d
|
||||||
|
DEFSYMFILES += def-sun.lst
|
||||||
|
UNDSYMFILES += und-sun.lst
|
||||||
|
|
||||||
|
sun.mod: pre-sun.o mod-sun.o
|
||||||
|
-rm -f $@
|
||||||
|
$(LD) -r -d -o $@ $^
|
||||||
|
$(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
|
||||||
|
|
||||||
|
pre-sun.o: sun_mod-partmap_sun.o
|
||||||
|
-rm -f $@
|
||||||
|
$(LD) -r -d -o $@ $^
|
||||||
|
|
||||||
|
mod-sun.o: mod-sun.c
|
||||||
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(sun_mod_CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
mod-sun.c: moddep.lst genmodsrc.sh
|
||||||
|
sh $(srcdir)/genmodsrc.sh 'sun' $< > $@ || (rm -f $@; exit 1)
|
||||||
|
|
||||||
|
def-sun.lst: pre-sun.o
|
||||||
|
$(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 sun/' > $@
|
||||||
|
|
||||||
|
und-sun.lst: pre-sun.o
|
||||||
|
echo 'sun' > $@
|
||||||
|
$(NM) -u -P -p $< | cut -f1 -d' ' >> $@
|
||||||
|
|
||||||
|
sun_mod-partmap_sun.o: partmap/sun.c
|
||||||
|
$(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) $(sun_mod_CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
sun_mod-partmap_sun.d: partmap/sun.c
|
||||||
|
set -e; $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) $(sun_mod_CFLAGS) -M $< | sed 's,sun\.o[ :]*,sun_mod-partmap_sun.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@
|
||||||
|
|
||||||
|
-include sun_mod-partmap_sun.d
|
||||||
|
|
||||||
|
sun_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||||
|
|
||||||
# For loopback.mod
|
# For loopback.mod
|
||||||
loopback_mod_SOURCES = disk/loopback.c
|
loopback_mod_SOURCES = disk/loopback.c
|
||||||
CLEANFILES += loopback.mod mod-loopback.o mod-loopback.c pre-loopback.o loopback_mod-disk_loopback.o def-loopback.lst und-loopback.lst
|
CLEANFILES += loopback.mod mod-loopback.o mod-loopback.c pre-loopback.o loopback_mod-disk_loopback.o def-loopback.lst und-loopback.lst
|
||||||
|
|
|
@ -37,7 +37,7 @@ grub_emu_SOURCES = kern/main.c kern/device.c \
|
||||||
kern/misc.c kern/loader.c kern/rescue.c kern/term.c \
|
kern/misc.c kern/loader.c kern/rescue.c kern/term.c \
|
||||||
partmap/amiga.c partmap/pc.c partmap/apple.c fs/fshelp.c \
|
partmap/amiga.c partmap/pc.c partmap/apple.c fs/fshelp.c \
|
||||||
util/i386/pc/biosdisk.c fs/fat.c fs/ext2.c fs/ufs.c fs/minix.c fs/hfs.c \
|
util/i386/pc/biosdisk.c fs/fat.c fs/ext2.c fs/ufs.c fs/minix.c fs/hfs.c \
|
||||||
fs/jfs.c fs/iso9660.c \
|
fs/jfs.c fs/iso9660.c partmap/sun.c \
|
||||||
normal/cmdline.c normal/command.c normal/main.c normal/menu.c \
|
normal/cmdline.c normal/command.c normal/main.c normal/menu.c \
|
||||||
normal/menu_entry.c normal/arg.c kern/partition.c \
|
normal/menu_entry.c normal/arg.c kern/partition.c \
|
||||||
util/console.c util/grub-emu.c util/misc.c util/i386/pc/getroot.c \
|
util/console.c util/grub-emu.c util/misc.c util/i386/pc/getroot.c \
|
||||||
|
@ -65,7 +65,7 @@ genmoddep_SOURCES = util/genmoddep.c
|
||||||
pkgdata_MODULES = _linux.mod linux.mod fat.mod ufs.mod ext2.mod minix.mod \
|
pkgdata_MODULES = _linux.mod linux.mod fat.mod ufs.mod ext2.mod minix.mod \
|
||||||
hfs.mod jfs.mod normal.mod hello.mod font.mod ls.mod \
|
hfs.mod jfs.mod normal.mod hello.mod font.mod ls.mod \
|
||||||
boot.mod cmp.mod cat.mod terminal.mod fshelp.mod amiga.mod apple.mod \
|
boot.mod cmp.mod cat.mod terminal.mod fshelp.mod amiga.mod apple.mod \
|
||||||
pc.mod suspend.mod loopback.mod help.mod reboot.mod halt.mod
|
pc.mod suspend.mod loopback.mod help.mod reboot.mod halt.mod sun.mod
|
||||||
|
|
||||||
# For fshelp.mod.
|
# For fshelp.mod.
|
||||||
fshelp_mod_SOURCES = fs/fshelp.c
|
fshelp_mod_SOURCES = fs/fshelp.c
|
||||||
|
@ -154,6 +154,10 @@ apple_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||||
pc_mod_SOURCES = partmap/pc.c
|
pc_mod_SOURCES = partmap/pc.c
|
||||||
pc_mod_CFLAGS = $(COMMON_CFLAGS)
|
pc_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||||
|
|
||||||
|
# For sun.mod
|
||||||
|
sun_mod_SOURCES = partmap/sun.c
|
||||||
|
sun_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||||
|
|
||||||
# For loopback.mod
|
# For loopback.mod
|
||||||
loopback_mod_SOURCES = disk/loopback.c
|
loopback_mod_SOURCES = disk/loopback.c
|
||||||
loopback_mod_CFLAGS = $(COMMON_CFLAGS)
|
loopback_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||||
|
|
|
@ -89,6 +89,8 @@ void grub_amiga_partition_map_init (void);
|
||||||
void grub_amiga_partition_map_fini (void);
|
void grub_amiga_partition_map_fini (void);
|
||||||
void grub_apple_partition_map_init (void);
|
void grub_apple_partition_map_init (void);
|
||||||
void grub_apple_partition_map_fini (void);
|
void grub_apple_partition_map_fini (void);
|
||||||
|
void grub_sun_partition_map_init (void);
|
||||||
|
void grub_sun_partition_map_fini (void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline unsigned long
|
static inline unsigned long
|
||||||
|
|
215
partmap/sun.c
Normal file
215
partmap/sun.c
Normal file
|
@ -0,0 +1,215 @@
|
||||||
|
/* sun.c - Read SUN style partition tables. */
|
||||||
|
/*
|
||||||
|
* GRUB -- GRand Unified Bootloader
|
||||||
|
* Copyright (C) 2002, 2005 Free Software Foundation, Inc.
|
||||||
|
*
|
||||||
|
* GRUB is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with GRUB; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <grub/partition.h>
|
||||||
|
#include <grub/disk.h>
|
||||||
|
#include <grub/mm.h>
|
||||||
|
#include <grub/misc.h>
|
||||||
|
#include <grub/dl.h>
|
||||||
|
#include <grub/symbol.h>
|
||||||
|
#include <grub/types.h>
|
||||||
|
#include <grub/err.h>
|
||||||
|
|
||||||
|
#define GRUB_PARTMAP_SUN_MAGIC 0xDABE
|
||||||
|
#define GRUB_PARTMAP_SUN_MAX_PARTS 8
|
||||||
|
#define GRUB_PARTMAP_SUN_WHOLE_DISK_ID 0x05
|
||||||
|
|
||||||
|
struct grub_sun_partition_info
|
||||||
|
{
|
||||||
|
grub_uint8_t spare1;
|
||||||
|
grub_uint8_t id;
|
||||||
|
grub_uint8_t spare2;
|
||||||
|
grub_uint8_t flags;
|
||||||
|
} __attribute__ ((packed));
|
||||||
|
|
||||||
|
struct grub_sun_partition_descriptor
|
||||||
|
{
|
||||||
|
grub_uint32_t start_cylinder;
|
||||||
|
grub_uint32_t num_sectors;
|
||||||
|
} __attribute__ ((packed));
|
||||||
|
|
||||||
|
struct grub_sun_block
|
||||||
|
{
|
||||||
|
grub_uint8_t info[128]; /* Informative text string. */
|
||||||
|
grub_uint8_t spare0[14];
|
||||||
|
struct grub_sun_partition_info infos[8];
|
||||||
|
grub_uint8_t spare1[246]; /* Boot information etc. */
|
||||||
|
grub_uint16_t rspeed; /* Disk rotational speed. */
|
||||||
|
grub_uint16_t pcylcount; /* Physical cylinder count. */
|
||||||
|
grub_uint16_t sparecyl; /* extra sects per cylinder. */
|
||||||
|
grub_uint8_t spare2[4]; /* More magic... */
|
||||||
|
grub_uint16_t ilfact; /* Interleave factor. */
|
||||||
|
grub_uint16_t ncyl; /* Data cylinder count. */
|
||||||
|
grub_uint16_t nacyl; /* Alt. cylinder count. */
|
||||||
|
grub_uint16_t ntrks; /* Tracks per cylinder. */
|
||||||
|
grub_uint16_t nsect; /* Sectors per track. */
|
||||||
|
grub_uint8_t spare3[4]; /* Even more magic... */
|
||||||
|
struct grub_sun_partition_descriptor partitions[8];
|
||||||
|
grub_uint16_t magic; /* Magic number. */
|
||||||
|
grub_uint16_t csum; /* Label xor'd checksum. */
|
||||||
|
} __attribute__ ((packed));
|
||||||
|
|
||||||
|
static struct grub_partition_map grub_sun_partition_map;
|
||||||
|
|
||||||
|
#ifndef GRUB_UTIL
|
||||||
|
static grub_dl_t my_mod;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Verify checksum (true=ok). */
|
||||||
|
static int
|
||||||
|
grub_sun_is_valid (struct grub_sun_block *label)
|
||||||
|
{
|
||||||
|
grub_uint16_t *pos;
|
||||||
|
grub_uint16_t sum = 0;
|
||||||
|
for (pos = (grub_uint16_t *) label; pos < (grub_uint16_t *) (label + 1); pos++)
|
||||||
|
sum ^= *pos;
|
||||||
|
return !sum;
|
||||||
|
}
|
||||||
|
|
||||||
|
static grub_err_t
|
||||||
|
sun_partition_map_iterate (grub_disk_t disk,
|
||||||
|
int (*hook) (const grub_partition_t partition))
|
||||||
|
{
|
||||||
|
struct grub_partition *p;
|
||||||
|
struct grub_disk raw;
|
||||||
|
struct grub_sun_block block;
|
||||||
|
int partnum;
|
||||||
|
raw = *disk;
|
||||||
|
raw.partition = 0;
|
||||||
|
p = (struct grub_partition *) grub_malloc (sizeof (struct grub_partition));
|
||||||
|
if (!p)
|
||||||
|
return grub_errno;
|
||||||
|
|
||||||
|
p->offset = 0;
|
||||||
|
p->data = 0;
|
||||||
|
p->partmap = &grub_sun_partition_map;
|
||||||
|
if (grub_disk_read (&raw, 0, 0, sizeof (struct grub_sun_block),
|
||||||
|
(char *) &block) == GRUB_ERR_NONE)
|
||||||
|
{
|
||||||
|
if (GRUB_PARTMAP_SUN_MAGIC != grub_be_to_cpu16 (block.magic))
|
||||||
|
grub_error (GRUB_ERR_BAD_PART_TABLE, "not a sun partiton table");
|
||||||
|
if (!grub_sun_is_valid (&block))
|
||||||
|
grub_error (GRUB_ERR_BAD_PART_TABLE, "invalid checksum");
|
||||||
|
/* Maybe another error value would be better, because partition
|
||||||
|
table _is_ recognised but invalid. */
|
||||||
|
for (partnum = 0; partnum < GRUB_PARTMAP_SUN_MAX_PARTS; partnum++)
|
||||||
|
{
|
||||||
|
if (block.infos[partnum].id == 0 ||
|
||||||
|
block.infos[partnum].id == GRUB_PARTMAP_SUN_WHOLE_DISK_ID)
|
||||||
|
continue;
|
||||||
|
p->start = grub_be_to_cpu32
|
||||||
|
(block.partitions[partnum].start_cylinder)
|
||||||
|
* grub_be_to_cpu16 (block.ntrks)
|
||||||
|
* grub_be_to_cpu16 (block.nsect);
|
||||||
|
p->len = grub_be_to_cpu32 (block.partitions[partnum].num_sectors);
|
||||||
|
p->index = partnum;
|
||||||
|
if (p->len)
|
||||||
|
{
|
||||||
|
if (hook (p))
|
||||||
|
partnum = GRUB_PARTMAP_SUN_MAX_PARTS;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
grub_free (p);
|
||||||
|
|
||||||
|
return grub_errno;
|
||||||
|
}
|
||||||
|
|
||||||
|
static grub_partition_t
|
||||||
|
sun_partition_map_probe (grub_disk_t disk, const char *str)
|
||||||
|
{
|
||||||
|
grub_partition_t p = 0;
|
||||||
|
int partnum = 0;
|
||||||
|
char *s = (char *) str;
|
||||||
|
|
||||||
|
auto int find_func (const grub_partition_t partition);
|
||||||
|
int find_func (const grub_partition_t partition)
|
||||||
|
{
|
||||||
|
if (partnum == partition->index)
|
||||||
|
{
|
||||||
|
p = (grub_partition_t) grub_malloc (sizeof (*p));
|
||||||
|
if (p)
|
||||||
|
grub_memcpy(p, partition, sizeof (*p));
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
grub_errno = GRUB_ERR_NONE;
|
||||||
|
partnum = grub_strtoul (s, 0, 10);
|
||||||
|
if (grub_errno == GRUB_ERR_NONE)
|
||||||
|
{
|
||||||
|
if (sun_partition_map_iterate (disk, find_func))
|
||||||
|
{
|
||||||
|
grub_free (p);
|
||||||
|
p = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
grub_error (GRUB_ERR_BAD_FILENAME, "invalid partition");
|
||||||
|
p = 0;
|
||||||
|
}
|
||||||
|
return p;
|
||||||
|
}
|
||||||
|
|
||||||
|
static char *
|
||||||
|
sun_partition_map_get_name (const grub_partition_t p)
|
||||||
|
{
|
||||||
|
char *name;
|
||||||
|
name = grub_malloc (13);
|
||||||
|
if (name)
|
||||||
|
grub_sprintf (name, "%d", p->index);
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Partition map type. */
|
||||||
|
static struct grub_partition_map grub_sun_partition_map =
|
||||||
|
{
|
||||||
|
.name = "sun_partition_map",
|
||||||
|
.iterate = sun_partition_map_iterate,
|
||||||
|
.probe = sun_partition_map_probe,
|
||||||
|
.get_name = sun_partition_map_get_name
|
||||||
|
};
|
||||||
|
|
||||||
|
#ifdef GRUB_UTIL
|
||||||
|
void
|
||||||
|
grub_sun_partition_map_init (void)
|
||||||
|
{
|
||||||
|
grub_partition_map_register (&grub_sun_partition_map);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
grub_sun_partition_map_fini (void)
|
||||||
|
{
|
||||||
|
grub_partition_map_unregister (&grub_sun_partition_map);
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
GRUB_MOD_INIT
|
||||||
|
{
|
||||||
|
grub_partition_map_register (&grub_sun_partition_map);
|
||||||
|
my_mod = mod;
|
||||||
|
}
|
||||||
|
|
||||||
|
GRUB_MOD_FINI
|
||||||
|
{
|
||||||
|
grub_partition_map_unregister (&grub_sun_partition_map);
|
||||||
|
}
|
||||||
|
#endif
|
|
@ -172,6 +172,7 @@ main (int argc, char *argv[])
|
||||||
grub_pc_partition_map_init ();
|
grub_pc_partition_map_init ();
|
||||||
grub_amiga_partition_map_init ();
|
grub_amiga_partition_map_init ();
|
||||||
grub_apple_partition_map_init ();
|
grub_apple_partition_map_init ();
|
||||||
|
grub_sun_partition_map_init ();
|
||||||
|
|
||||||
/* Initialize the default modules. */
|
/* Initialize the default modules. */
|
||||||
grub_iso9660_init ();
|
grub_iso9660_init ();
|
||||||
|
@ -217,6 +218,7 @@ main (int argc, char *argv[])
|
||||||
grub_amiga_partition_map_fini ();
|
grub_amiga_partition_map_fini ();
|
||||||
grub_pc_partition_map_fini ();
|
grub_pc_partition_map_fini ();
|
||||||
grub_apple_partition_map_fini ();
|
grub_apple_partition_map_fini ();
|
||||||
|
grub_sun_partition_map_fini ();
|
||||||
|
|
||||||
grub_machine_fini ();
|
grub_machine_fini ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue