source: branches/v4/platforms/tsarv4_mono_mmu_ioc/Makefile @ 429

Last change on this file since 429 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 
1SOCLIB_DESC=desc.py
2SOCLIB_TOP=top.cpp
3SIMULATOR_BINARY=system.x
4
5SOCLIB_DIR=$(shell soclib-cc --getpath)
6
7SIMULATOR_CMD=./$(SIMULATOR_BINARY) --nobanner
8
9all: $(SIMULATOR_BINARY)
10
11$(SIMULATOR_BINARY): $(SOCLIB_DESC) $(SOCLIB_TOP)
12        soclib-cc $(SOCLIB_CC_ARGS) -P -p $(SOCLIB_DESC) -o $(SIMULATOR_BINARY)
13
14run_tsar_boot: all tsar_boot.bin disk.img
15        $(SIMULATOR_CMD) --rom tsar_boot.bin --dsk disk.img
16
17run_dummy_boot: all vmlinux disk.img
18        $(SIMULATOR_CMD) --rom vmlinux --dsk disk.img --dummy-boot
19
20cscope.out:
21        soclib-cc -p $(SOCLIB_DESC) --tags
22
23clean:
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.