aboutsummaryrefslogtreecommitdiffstats
path: root/mbr/Makefile
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2009-03-30 18:17:05 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2009-03-30 18:17:05 -0700
commit848c8f9a4133e4e0113120a2b311d2352af26228 (patch)
tree9a7b32bb2fe51c98e0a16af42a5f07f05b6d20fa /mbr/Makefile
parenta1e66d80179262be63c43bb33046bd41069b803d (diff)
downloadsyslinux.git-848c8f9a4133e4e0113120a2b311d2352af26228.tar.gz
syslinux.git-848c8f9a4133e4e0113120a2b311d2352af26228.tar.xz
syslinux.git-848c8f9a4133e4e0113120a2b311d2352af26228.zip
altmbr: an alternative MBR which ignores the active flag
Impact: new feature Create an alternative MBR which takes a partition number in byte 439 instead of looking at the active flag. This is useful when dual-booting legacy operating systems which assume that their particular partition must be the active partition. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'mbr/Makefile')
-rw-r--r--mbr/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/mbr/Makefile b/mbr/Makefile
index 0bdf7e3f..e9fc3875 100644
--- a/mbr/Makefile
+++ b/mbr/Makefile
@@ -17,7 +17,7 @@
topdir = ..
include $(topdir)/MCONFIG.embedded
-all: mbr.bin gptmbr.bin isohdpfx.bin
+all: mbr.bin altmbr.bin gptmbr.bin isohdpfx.bin
.PRECIOUS: %.o
%.o: %.S
@@ -31,6 +31,10 @@ mbr.bin: mbr.elf checksize.pl
$(OBJCOPY) -O binary $< $@
$(PERL) checksize.pl $@ 440
+altmbr.bin: altmbr.elf checksize.pl
+ $(OBJCOPY) -O binary $< $@
+ $(PERL) checksize.pl $@ 439 440
+
isohdpfx.bin: isohdpfx.elf checksize.pl
$(OBJCOPY) -O binary $< $@
$(PERL) checksize.pl $@ 432