Last change
on this file since 702 was
658,
checked in by cfuguet, 11 years ago
|
TSAR FAULT TOLERANCE BRANCH
- Introducing replicated ROMs in cluster to contain
the distributed boot procedure.
- Erasing ROM in the IO network
|
-
Property svn:executable set to
*
|
File size:
1.4 KB
|
Line | |
---|
1 | SOCLIB_CC := soclib-cc |
---|
2 | RM := rm -rf |
---|
3 | CP := cp -f |
---|
4 | MAKE := make |
---|
5 | TARGET := simul.x |
---|
6 | ARGS ?= |
---|
7 | |
---|
8 | all: $(TARGET) preloader tags |
---|
9 | |
---|
10 | # create simulator |
---|
11 | |
---|
12 | SRCS := top.cpp |
---|
13 | SRCS += tsar_iob_cluster/caba/source/src/tsar_iob_cluster.cpp |
---|
14 | INCS := tsar_iob_cluster/caba/source/include/tsar_iob_cluster.h |
---|
15 | INCS += top.desc |
---|
16 | INCS += soclib.conf |
---|
17 | |
---|
18 | $(TARGET): $(SRCS) $(INCS) |
---|
19 | $(SOCLIB_CC) -P -p top.desc -I. -o simul.x |
---|
20 | |
---|
21 | # create preloader |
---|
22 | |
---|
23 | MESHSIZE := 4c1p |
---|
24 | PRELOADER_CONF := $(PWD)/conf/preloader_$(MESHSIZE) |
---|
25 | PRELOADER_PATH := $(TSARPATH)/trunk/softs/tsar_boot |
---|
26 | PRELOADER_ARGS := "PLATFORM_DIR=$(PRELOADER_CONF) USE_DT=0 SOCLIB=1" |
---|
27 | PRELOADER_NAME ?= soft/soft.elf |
---|
28 | |
---|
29 | $(PRELOADER_NAME): |
---|
30 | $(MAKE) -C $(PRELOADER_PATH) "$(PRELOADER_ARGS)" |
---|
31 | $(CP) $(PRELOADER_PATH)/preloader.elf $(PRELOADER_NAME) |
---|
32 | |
---|
33 | preloader: $(PRELOADER_NAME) |
---|
34 | |
---|
35 | # run simulator |
---|
36 | |
---|
37 | SIMULATOR_ARGS = -SOFT $(PRELOADER_NAME) |
---|
38 | SIMULATOR_ARGS += -DISK soft/disk.dmg |
---|
39 | SIMULATOR_ARGS += -XSIZE 2 -YSIZE 2 -NPROCS 1 |
---|
40 | SIMULATOR_ARGS += $(ARGS) |
---|
41 | |
---|
42 | run: $(TARGET) $(PRELOADER_NAME) |
---|
43 | ./$< $(SIMULATOR_ARGS) |
---|
44 | |
---|
45 | # create tags file with ctags |
---|
46 | |
---|
47 | tags: |
---|
48 | $(SOCLIB_CC) -p top.desc --tags --tags-type=ctags --tags-output=$@ |
---|
49 | |
---|
50 | # clean targets |
---|
51 | |
---|
52 | clean: |
---|
53 | $(SOCLIB_CC) -x -p top.desc -I. |
---|
54 | $(RM) *.o *.x tty* term* |
---|
55 | |
---|
56 | clean-soft: |
---|
57 | $(RM) $(PRELOADER_NAME) |
---|
58 | |
---|
59 | clean-tags: |
---|
60 | $(RM) tags |
---|
61 | |
---|
62 | distclean: clean clean-soft clean-tags |
---|
63 | |
---|
64 | clean-preloader: clean-soft |
---|
65 | $(MAKE) -C $(PRELOADER_PATH) clean |
---|
66 | |
---|
67 | |
---|
68 | .PHONY: tags preloader clean clean-soft clean-preloader |
---|
69 | |
---|
Note: See
TracBrowser
for help on using the repository browser.