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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [scripts/] [make/] [Makefile-swrules.inc] - Blame information for rev 736

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

Line No. Rev Author Line
1 542 julius
 
2
#
3
# Software compilation rules used mostly in simulation.
4
#
5
 
6
# Name of the image the RAM model will attempt to load via Verilog $readmemh
7
# system function.
8
 
9
# Set PRELOAD_RAM=1 to preload the system memory
10
ifeq ($(PRELOAD_RAM), 1)
11
SIM_SW_IMAGE ?=sram.vmem
12
endif
13
 
14
ifeq ($(SIM_SW_IMAGE),)
15
SIM_SW_IMAGE ?=flash.in
16
endif
17
 
18
.PHONY : sw
19
sw: $(SIM_SW_IMAGE)
20
 
21
 
22
flash.in: $(SW_TEST_DIR)/$(TEST).flashin
23
        $(Q)if [ -L $@ ]; then unlink $@; fi
24
        $(Q)ln -s $< $@
25
 
26 655 julius
flash16.in: $(SW_TEST_DIR)/$(TEST).flash16
27
        $(Q)if [ -L $@ ]; then unlink $@; fi
28
        $(Q)ln -s $< $@
29
 
30 542 julius
sram.vmem: $(SW_TEST_DIR)/$(TEST).vmem
31
        $(Q)if [ -L $@ ]; then unlink $@; fi
32
        $(Q)ln -s $< $@
33
 
34
.PHONY: $(SW_TEST_DIR)/$(TEST).flashin
35
$(SW_TEST_DIR)/$(TEST).flashin:
36
        $(Q) echo; echo "\t### Compiling software ###"; echo;
37
        $(Q)$(MAKE) -C $(SW_TEST_DIR) $(TEST).flashin
38
 
39
.PHONY: $(SW_TEST_DIR)/$(TEST).vmem
40
$(SW_TEST_DIR)/$(TEST).vmem:
41
        $(Q) echo; echo "\t### Compiling software ###"; echo;
42
        $(Q)$(MAKE) -C $(SW_TEST_DIR) $(TEST).vmem
43
 
44 655 julius
.PHONY: $(SW_TEST_DIR)/$(TEST).flash16
45
$(SW_TEST_DIR)/$(TEST).flash16:
46
        $(Q) echo; echo "\t### Compiling software ###"; echo;
47
        $(Q)$(MAKE) -C $(SW_TEST_DIR) $(TEST).flash16
48
 
49 542 julius
# Create test software disassembly
50
 
51
sw-dis: $(SW_TEST_DIR)/$(TEST).dis
52
        $(Q)cp -v $< .
53
 
54
$(SW_TEST_DIR)/$(TEST).dis:
55
        $(Q)$(MAKE) -C $(SW_TEST_DIR) $(TEST).dis
56
 
57
 
58
#
59
# Clean rules
60
#
61
 
62
clean-sim-test-sw:
63
        $(Q)if [ -e $(SIM_SW_IMAGE) ]; then unlink $(SIM_SW_IMAGE); fi

powered by: WebSVN 2.1.0

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