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

Subversion Repositories socgen

[/] [socgen/] [trunk/] [Makefile] - Blame information for rev 128

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

Line No. Rev Author Line
1 6 jt_eaton
SHELL=/bin/sh
2
MAKE=make
3
CUR_DIR=$(shell pwd)
4 56 jt_eaton
home=$(CUR_DIR)
5 6 jt_eaton
design=socgen
6 100 jt_eaton
project=fpgas
7 117 jt_eaton
vendor=opencores.org
8 6 jt_eaton
 
9
 
10
 
11 57 jt_eaton
 
12 101 jt_eaton
 
13 117 jt_eaton
.PHONY all: clean
14 101 jt_eaton
all:
15
        (\
16 128 jt_eaton
        ${home}/tools/sys/workspace /projects/opencores.org/fpgas         /work ;\
17
        ${home}/tools/sys/workspace /projects/opencores.org/fpga_or1200   /work ;\
18
        ${home}/tools/sys/workspace /projects/opencores.org/logic         /work ;\
19
        ${home}/tools/sys/workspace /projects/opencores.org/adv_debug_sys /work ;\
20
        ${home}/tools/sys/workspace /projects/opencores.org/io            /work ;\
21
        ${home}/tools/sys/workspace /projects/opencores.org/Mos6502       /work ;\
22
        ${home}/tools/sys/workspace /projects/opencores.org/or1k          /work ;\
23
        ${home}/tools/sys/workspace /projects/opencores.org/wishbone      /work ;\
24
        ${home}/tools/sys/workspace /projects/opencores.org/xfer          /work ;\
25
        ${home}/tools/sys/workspace /projects/opencores.org/cde           /work ;\
26
        ${home}/tools/sys/workspace /projects/github.com/openrisc         /work ;\
27 101 jt_eaton
         )
28
 
29
 
30
 
31
 
32 100 jt_eaton
.PHONY cmp:
33
cmp:
34
        (\
35
        rm -f -r tools_cmp/*  ;\
36
        mkdir    tools_cmp  ;\
37
        chdir    tools_cmp  ;\
38
        lndir    ../tools  .   ;\
39 106 jt_eaton
        cd ${home}/tools_cmp/utils;\
40
        ${MAKE} ;\
41 100 jt_eaton
         )
42 57 jt_eaton
 
43 100 jt_eaton
 
44
 
45
 
46
 
47
.PHONY clean:
48
clean:
49 10 jt_eaton
        (\
50 83 jt_eaton
        rm -f -r work/*  ;\
51 128 jt_eaton
        rm -f -r doc_dir/*  ;\
52 119 jt_eaton
        rm -f -r doc/geda/*  ;\
53 83 jt_eaton
        find . | grep "~" | xargs rm -f  $1 ;\
54 56 jt_eaton
         )
55 6 jt_eaton
 
56
 
57 100 jt_eaton
 
58
 
59 117 jt_eaton
.PHONY index:
60
index:
61
        (\
62
        ${home}/tools/yp/create_yp;\
63
        ${home}/tools/yp/create_hier_index  ${home}/tools/yp/hier_index.xml\
64
         )
65
 
66
 
67
.PHONY workspace:
68 100 jt_eaton
workspace:
69
        (\
70 117 jt_eaton
        ${home}/tools/sys/workspace $(project) $(vendor) ;\
71 100 jt_eaton
         )
72
 
73
 
74
 
75
 
76
 
77
 
78 57 jt_eaton
.PHONY build_hw:
79
build_hw:
80 99 jt_eaton
        @for PROJECT in `ls $(CUR_DIR)/work`; do \
81 90 jt_eaton
        echo "###############################################"; \
82
        echo; \
83
        echo "Building HW: $$PROJECT ####"; echo; \
84 119 jt_eaton
        ${home}/tools/sys/build_hw $$PROJECT /work  ;\
85 90 jt_eaton
        done; \
86 6 jt_eaton
 
87 57 jt_eaton
 
88
 
89
 
90 106 jt_eaton
.PHONY build_obj:
91
build_obj:
92
        @for PROJECT in `ls $(CUR_DIR)/work`; do \
93
        echo "################################################"; \
94
        echo "build_obj: $$PROJECT ####"; echo; \
95
        cd ${home}/work/$$PROJECT/bin;\
96
        ${MAKE} group_build_obj;\
97
        done; \
98
 
99
 
100 6 jt_eaton
.PHONY build_sw:
101 100 jt_eaton
build_sw:
102 49 jt_eaton
        @for PROJECT in `ls $(CUR_DIR)/work`; do \
103 6 jt_eaton
        echo "################################################"; \
104
        echo "build_sw: $$PROJECT ####"; echo; \
105 56 jt_eaton
        cd ${home}/work/$$PROJECT/bin;\
106 6 jt_eaton
        ${MAKE} group_build_sw;\
107
        done; \
108
 
109 118 jt_eaton
.PHONY run_sims: run_lint
110 96 jt_eaton
run_sims:
111 49 jt_eaton
        @for PROJECT in `ls $(CUR_DIR)/work`; do \
112 6 jt_eaton
        echo "################################################"; \
113
        echo "run_sims: $$PROJECT ####"; echo; \
114 119 jt_eaton
        ${home}/tools/simulation/run_sims $$PROJECT /work  ;\
115 128 jt_eaton
        ${home}/tools/simulation/run_coverage  $$PROJECT /work &\
116 6 jt_eaton
        done; \
117
 
118 112 jt_eaton
 
119 118 jt_eaton
.PHONY run_lint:
120
run_lint:
121
        @for PROJECT in `ls $(CUR_DIR)/work`; do \
122
        echo "################################################"; \
123
        echo "run_lint: $$PROJECT ####"; echo; \
124 119 jt_eaton
        ${home}/tools/simulation/run_lint  $$PROJECT /work ;\
125 118 jt_eaton
        done; \
126
 
127
 
128 112 jt_eaton
.PHONY run_coverage:
129
run_coverage:
130
        @for PROJECT in `ls $(CUR_DIR)/work`; do \
131
        echo "################################################"; \
132 118 jt_eaton
        echo "run_coverage: $$PROJECT ####"; echo; \
133 128 jt_eaton
        ${home}/tools/simulation/run_coverage  $$PROJECT /work ;\
134 112 jt_eaton
        done; \
135
 
136
 
137
 
138
 
139
 
140 6 jt_eaton
.PHONY build_fpgas:
141
build_fpgas:
142 49 jt_eaton
        @for PROJECT in `ls $(CUR_DIR)/work`; do \
143 6 jt_eaton
        echo "################################################"; \
144
        echo "build_fpgas: $$PROJECT ####"; echo; \
145 119 jt_eaton
        ${home}/tools/synthesys/build_fpgas $$PROJECT /work ;\
146 6 jt_eaton
        done; \
147
 
148 49 jt_eaton
 
149
 
150
 
151
 
152 6 jt_eaton
.PHONY check_sims:
153 49 jt_eaton
check_sims:
154
        @for COMP in `ls $(CUR_DIR)/work`; do \
155 54 jt_eaton
        echo "*******************************************************************************************";\
156 49 jt_eaton
        echo " number of $$COMP sims run";\
157 97 jt_eaton
        find ./work/$$COMP  | grep test_define | grep -v target | grep -v children| grep -v cov | wc -l;\
158 6 jt_eaton
        echo " number of sims that finished";\
159 54 jt_eaton
        find ./work/$$COMP  | grep _sim.log | xargs grep PASSED $1    | wc -l ;\
160 6 jt_eaton
        echo " number of warnings";\
161 54 jt_eaton
        find ./work/$$COMP  | grep _sim.log | xargs grep WARNING $1   | wc -l ;\
162 6 jt_eaton
        echo " number of errors";\
163 54 jt_eaton
        find ./work/$$COMP  | grep _sim.log | xargs grep ERROR $1     | wc -l ;\
164 100 jt_eaton
        echo " Elaboration Errors";\
165
        find ./work/$$COMP  | grep _elab.log | xargs cat $1  ;\
166 49 jt_eaton
        echo " Code Coverage";\
167 19 jt_eaton
        echo " number of warnings";\
168 54 jt_eaton
        find ./work/$$COMP  | grep _cov.log | xargs grep WARNING $1  ;\
169 19 jt_eaton
        echo " number of errors";\
170 54 jt_eaton
        find ./work/$$COMP  | grep _cov.log | xargs grep ERROR $1    ;\
171 83 jt_eaton
        echo " Lint Coverage";\
172
        echo " number of errors";\
173
        find ./work/$$COMP  | grep lint.log | xargs grep Error $1  ;\
174 125 jt_eaton
        done;\
175 6 jt_eaton
 
176
 
177 83 jt_eaton
 
178
 
179 6 jt_eaton
.PHONY check_fpgas:
180
check_fpgas:
181
        (\
182 56 jt_eaton
        cd ${home}/work  ;\
183 6 jt_eaton
        echo " number of fpgas";\
184 128 jt_eaton
        find . | grep syn/ise |grep Yst |  wc -l   ;\
185 6 jt_eaton
        echo " number that finished";\
186 54 jt_eaton
        find . | grep Board_Design_jtag.bit | wc -l ;\
187 6 jt_eaton
         )
188
 
189
 
190
 
191
 
192
 
193
 
194
 
195
 
196
 
197
 
198
 
199
 
200
 
201
 
202
 
203
 
204
 
205
 
206
 
207
 
208
 
209
 

powered by: WebSVN 2.1.0

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