aboutsummaryrefslogtreecommitdiffstats
path: root/mbr/Makefile
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-05-13 17:52:26 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-05-13 17:52:26 -0700
commit1a5fab0f3e3d7841e7888fb90f29f0e598f56343 (patch)
tree899ff7d54ca84135a1a6870bac6465fa1b80a0fe /mbr/Makefile
parent4561fc3586957f5d745bc9eb3baf8d859897da17 (diff)
parentee14b6efe1ab8674edea83fba7596857f0fcad21 (diff)
downloadsyslinux-1a5fab0f3e3d7841e7888fb90f29f0e598f56343.tar.gz
syslinux-1a5fab0f3e3d7841e7888fb90f29f0e598f56343.tar.xz
syslinux-1a5fab0f3e3d7841e7888fb90f29f0e598f56343.zip
Merge commit 'origin/gptmbr'
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 6a1bcb7b..76a47e05 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