aboutsummaryrefslogtreecommitdiffstats
path: root/mbr/Makefile
diff options
context:
space:
mode:
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