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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [disk/] [tools/] [Makefile.run] - Blame information for rev 278

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

Line No. Rev Author Line
1 17 hellwig
#
2
# Makefile to build a bootable disk, and either start the
3
# ECO32 simulator with a ROM monitor (goal: run an OS within
4
# the simulator) or start the serial line disk server (goal:
5
# run an OS on an FPGA board).
6
#
7 99 hellwig
# NOTE: Please set SER_DEV to the serial line device on which
8
#       the disk server should wait for commands!
9
#
10 17 hellwig
 
11
BUILD = ..
12
 
13 99 hellwig
SER_DEV = /dev/tty01
14
DSK_IMG = disk.img
15 274 hellwig
DSK_SIZ = 650M
16 99 hellwig
RUN_LOG = run.log
17 17 hellwig
 
18 99 hellwig
all:            $(DSK_IMG)
19
 
20
run-sim:        $(DSK_IMG)
21 245 hellwig
                $(BUILD)/bin/sim -i -m 32 -c -s 2 -t 0 -t 1 \
22 189 hellwig
                  -r $(BUILD)/monitor/simulator/monitor.bin \
23 99 hellwig
                  -d $(DSK_IMG) -o $(RUN_LOG)
24 17 hellwig
 
25 99 hellwig
run-server:     $(DSK_IMG)
26
                $(BUILD)/bin/diskserv $(SER_DEV) $(DSK_IMG)
27 17 hellwig
 
28 99 hellwig
$(DSK_IMG):
29 205 hellwig
                $(BUILD)/bin/mkdisk $(DSK_IMG) $(DSK_SIZ)
30 99 hellwig
                $(BUILD)/bin/mkpart $(DSK_IMG) disk.part
31 17 hellwig
                $(MAKE) -C fs-EOS32 all
32
                $(MAKE) -C fs-NetBSD all
33 205 hellwig
                $(MAKE) -C fs-Linux all
34 17 hellwig
 
35
clean:
36
                $(MAKE) -C fs-EOS32 clean
37
                $(MAKE) -C fs-NetBSD clean
38 205 hellwig
                $(MAKE) -C fs-Linux clean
39 99 hellwig
                rm -f *~ $(DSK_IMG) $(RUN_LOG)

powered by: WebSVN 2.1.0

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