aboutsummaryrefslogtreecommitdiffstats
path: root/mbr/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mbr/Makefile')
-rw-r--r--mbr/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/mbr/Makefile b/mbr/Makefile
index 7952e60b..a57b3946 100644
--- a/mbr/Makefile
+++ b/mbr/Makefile
@@ -17,23 +17,25 @@
topdir = ..
include $(topdir)/MCONFIG.embedded
-all: mbr.bin gptmbr.bin
+all: mbr.bin gptmbr.bin isohdpfx.bin
.PRECIOUS: %.o
%.o: %.S
$(CC) $(SFLAGS) -Wa,-a=$*.lst -c -o $@ $<
-mbr.elf: mbr.o mbr.ld
+.PRECIOUS: %.elf
+%.elf: %.o mbr.ld
$(LD) $(LDFLAGS) -T mbr.ld -e _start -o $@ $<
mbr.bin: mbr.elf checksize.pl
$(OBJCOPY) -O binary $< $@
$(PERL) checksize.pl mbr.bin 440
-mbr_bin.c: mbr.bin
+isohdpfx.bin: isohdpfx.elf checksize.pl
+ $(OBJCOPY) -O binary $< $@
+ $(PERL) checksize.pl mbr.bin 432
-gptmbr.elf: gptmbr.o mbr.ld
- $(LD) $(LDFLAGS) -T mbr.ld -e _start -o $@ $<
+mbr_bin.c: mbr.bin
gptmbr.bin: gptmbr.elf checksize.pl
$(OBJCOPY) -O binary $< $@