Last change
on this file since 658 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
|
Rev | Line | |
---|
[648] | 1 | SOCLIB_CC := soclib-cc |
---|
| 2 | RM := rm -rf |
---|
| 3 | CP := cp -f |
---|
| 4 | MAKE := make |
---|
[652] | 5 | TARGET := simul.x |
---|
[658] | 6 | ARGS ?= |
---|
[450] | 7 | |
---|
[652] | 8 | all: $(TARGET) preloader tags |
---|
| 9 | |
---|
[648] | 10 | # create simulator |
---|
| 11 | |
---|
[652] | 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 |
---|
[648] | 17 | |
---|
[652] | 18 | $(TARGET): $(SRCS) $(INCS) |
---|
[648] | 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 |
---|
[658] | 40 | SIMULATOR_ARGS += $(ARGS) |
---|
[648] | 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 | |
---|
[450] | 52 | clean: |
---|
[648] | 53 | $(SOCLIB_CC) -x -p top.desc -I. |
---|
| 54 | $(RM) *.o *.x tty* term* |
---|
[607] | 55 | |
---|
[648] | 56 | clean-soft: |
---|
| 57 | $(RM) $(PRELOADER_NAME) |
---|
[618] | 58 | |
---|
[648] | 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 | |
---|
[652] | 68 | .PHONY: tags preloader clean clean-soft clean-preloader |
---|
[648] | 69 | |
---|
Note: See
TracBrowser
for help on using the repository browser.