2005-12-03 Marco Gerards <mgerards@xs4all.nl>
* conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"' and `cd' to make sure the filename is not prefixed with a directory name. (pkgdata_MODULES): Add `gpt.mod'. (gpt_mod_SOURCES): New variable. (gpt_mod_CFLAGS): Likewise. (gpt_mod_LDFLAGS): Likewise. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'. * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK): New macro. * partmap/gpt.c: New file. * partmap/pc.c (pc_partition_map_iterate): Don't continue when a GPT partition map is detected.
This commit is contained in:
parent
41730ed990
commit
b04216abba
8 changed files with 327 additions and 13 deletions
|
@ -6,7 +6,7 @@ grub_script.tab.c grub_script.tab.h: normal/parser.y
|
|||
|
||||
# For grub-emu.
|
||||
grub_modules_init.lst: geninit.sh
|
||||
(find $(srcdir) -name '*.c' | xargs grep GRUB_MOD_INIT) > $@
|
||||
(cd $(srcdir); find . -name '*.c' -printf "%P\n" | xargs grep GRUB_MOD_INIT) > $@
|
||||
|
||||
grub_modules_init.h: $(filter-out grub_emu_init.c,$(grub_emu_SOURCES)) geninitheader.sh grub_modules_init.lst
|
||||
sh $(srcdir)/geninitheader.sh > $@
|
||||
|
@ -75,10 +75,9 @@ affs_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|||
sfs_mod_SOURCES = fs/sfs.c
|
||||
sfs_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||
sfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
||||
|
||||
|
||||
# Partiton maps.
|
||||
pkgdata_MODULES += amiga.mod apple.mod pc.mod sun.mod acorn.mod
|
||||
# Partition maps.
|
||||
pkgdata_MODULES += amiga.mod apple.mod pc.mod sun.mod acorn.mod gpt.mod
|
||||
|
||||
# For amiga.mod
|
||||
amiga_mod_SOURCES = partmap/amiga.c
|
||||
|
@ -105,6 +104,11 @@ acorn_mod_SOURCES = partmap/acorn.c
|
|||
acorn_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||
acorn_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
||||
|
||||
# For gpt.mod
|
||||
gpt_mod_SOURCES = partmap/gpt.c
|
||||
gpt_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||
gpt_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
||||
|
||||
|
||||
# Commands.
|
||||
pkgdata_MODULES += hello.mod boot.mod terminal.mod ls.mod \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue