summaryrefslogtreecommitdiff
path: root/mbr/Makefile
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-25 14:22:54 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-25 14:22:54 -0800
commite0298c88e927849e7f10d4dd0318907886cd50a1 (patch)
tree51cb21bb66041a4398bd6433db94830de3bbdeed /mbr/Makefile
parent6152d7affa392c8233b527b5800299f0b38246f0 (diff)
downloadsyslinux-e0298c88e927849e7f10d4dd0318907886cd50a1.tar.gz
Master boot record for GPT partition tables
Beginnings of a master boot record for GPT partition tables.
Diffstat (limited to 'mbr/Makefile')
-rw-r--r--mbr/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/mbr/Makefile b/mbr/Makefile
index a64869b1..ed33aedf 100644
--- a/mbr/Makefile
+++ b/mbr/Makefile
@@ -29,7 +29,7 @@ PERL = perl
.SUFFIXES: .S .s .o .elf
-all: mbr.bin
+all: mbr.bin gptmbr.bin
.PRECIOUS: %.o
%.o: %.S
@@ -42,6 +42,13 @@ mbr.bin: mbr.elf checksize.pl
$(OBJCOPY) -O binary $< $@
$(PERL) checksize.pl mbr.bin 440
+gptmbr.elf: gptmbr.o mbr.ld
+ $(LD) -T mbr.ld -e _start -o $@ $<
+
+gptmbr.bin: gptmbr.elf checksize.pl
+ $(OBJCOPY) -O binary $< $@
+ $(PERL) checksize.pl gptmbr.bin 424
+
tidy:
rm -f *.o *.elf *.lst