OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [disk/] [tools/] [mkmboot/] [Makefile] - Rev 237

Go to most recent revision | Compare with Previous | Blame | View Log

#
# Makefile to build the master boot block (with an empty partition table)
#

BUILD = ../../../build

.PHONY:         all install clean

all:            mbootblk

install:        mbootblk
                mkdir -p $(BUILD)/run
                cp mbootblk $(BUILD)/run

mbootblk:       stage1/mbr.bin stage2/mboot.bin
                dd if=/dev/zero of=./zeroes bs=512 count=1
                cat stage1/mbr.bin zeroes stage2/mboot.bin >mbootblk

stage1/mbr.bin:
                $(MAKE) -C stage1

stage2/mboot.bin:
                $(MAKE) -C stage2

clean:
                $(MAKE) -C stage1 clean
                $(MAKE) -C stage2 clean
                rm -f *~ zeroes mbootblk

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.