Last change
on this file since 545 was
420,
checked in by porquet, 11 years ago
|
various modifications to the platform
- make simulation parameters a structure instead of global variables
- choice between tsar_boot and dummy_boot (linux directly loaded in RAM)
- change the default target (current target 0, the memcache, doesn't
handle errors properly)
|
File size:
678 bytes
|
Line | |
---|
1 | SOCLIB_DESC=desc.py |
---|
2 | SOCLIB_TOP=top.cpp |
---|
3 | SIMULATOR_BINARY=system.x |
---|
4 | |
---|
5 | SOCLIB_DIR=$(shell soclib-cc --getpath) |
---|
6 | |
---|
7 | SIMULATOR_CMD=./$(SIMULATOR_BINARY) --nobanner |
---|
8 | |
---|
9 | all: $(SIMULATOR_BINARY) |
---|
10 | |
---|
11 | $(SIMULATOR_BINARY): $(SOCLIB_DESC) $(SOCLIB_TOP) |
---|
12 | soclib-cc $(SOCLIB_CC_ARGS) -P -p $(SOCLIB_DESC) -o $(SIMULATOR_BINARY) |
---|
13 | |
---|
14 | run_tsar_boot: all tsar_boot.bin disk.img |
---|
15 | $(SIMULATOR_CMD) --rom tsar_boot.bin --dsk disk.img |
---|
16 | |
---|
17 | run_dummy_boot: all vmlinux disk.img |
---|
18 | $(SIMULATOR_CMD) --rom vmlinux --dsk disk.img --dummy-boot |
---|
19 | |
---|
20 | cscope.out: |
---|
21 | soclib-cc -p $(SOCLIB_DESC) --tags |
---|
22 | |
---|
23 | clean: |
---|
24 | soclib-cc -P -p $(SOCLIB_DESC) -x -o $(SIMULATOR_BINARY) |
---|
25 | rm -f $(SIMULATOR_BINARY) *.o vci* |
---|
26 | |
---|
27 | .PHONY: $(SIMULATOR_BINARY) |
---|
Note: See
TracBrowser
for help on using the repository browser.