-
Notifications
You must be signed in to change notification settings - Fork 47
/
Makefile
executable file
·234 lines (213 loc) · 8.21 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
all: u2 u2_rv u2_rv_revert u2plus u2pl u64
u2:
@$(MAKE) -C tools
@$(MAKE) -C target/fpga/mb700
@$(MAKE) -C target/fpga/mb700dd
@$(MAKE) -C target/fpga/mb700gm
@$(MAKE) -C target/u2/microblaze/mb_lwip
@$(MAKE) -C target/u2/microblaze/mb_boot
@$(MAKE) -C target/u2/microblaze/mb_boot_dd
@$(MAKE) -C target/u2/microblaze/mb_boot_gm
@$(MAKE) -C target/u2/microblaze/mb_boot2
@$(MAKE) -C target/u2/microblaze/mb_ultimate
@$(MAKE) -C target/u2/microblaze/mb_update
@$(MAKE) -C target/u2/microblaze/mb_update_dd
@$(MAKE) -C target/u2/microblaze/mb_update_gm
@cp target/u2/microblaze/mb_update/result/update.u2u ./update_audio.u2u
@cp target/u2/microblaze/mb_update_dd/result/update.u2u ./update_dual_drive_acia.u2u
@cp target/u2/microblaze/mb_update_gm/result/update.u2u ./update_dual_drive_gmod2.u2u
u2_rv:
@$(MAKE) -C tools
@$(MAKE) -C target/u2/riscv/boot1
@$(MAKE) -C target/u2/riscv/boot2
@$(MAKE) -C target/u2/riscv/loader
@$(MAKE) -C target/libs/riscv/lwip
@$(MAKE) -C target/u2/riscv/ultimate
@$(MAKE) -C target/fpga/rv700dd
@$(MAKE) -C target/fpga/rv700au
@$(MAKE) -C target/fpga/rv700_loader
@$(MAKE) -C target/u2/riscv/updater
@$(MAKE) -C target/u2/microblaze/mb_lwip
@$(MAKE) -C target/u2/microblaze/mb_update_to_rv
@cp target/u2/microblaze/mb_update_to_rv/result/update.u2u ./update_to_rv.u2u
@cp target/u2/riscv/updater/result/update.u2r ./update.u2r
u2_rv_revert:
@$(MAKE) u2
@$(MAKE) u2_rv
@$(MAKE) -C target/u2/riscv/reverter
@cp target/u2/riscv/reverter/result/revert.u2r ./revert_to_mb.u2r
mb:
@$(MAKE) -C tools
@$(MAKE) -C target/u2/microblaze/mb_lwip
@$(MAKE) -C target/u2/microblaze/mb_boot
@$(MAKE) -C target/u2/microblaze/mb_boot_dd
@$(MAKE) -C target/u2/microblaze/mb_boot_gm
@$(MAKE) -C target/u2/microblaze/mb_boot2
@$(MAKE) -C target/u2/microblaze/mb_ultimate
@$(MAKE) -C target/u2/microblaze/mb_update
@$(MAKE) -C target/u2/microblaze/mb_update_dd
@$(MAKE) -C target/u2/microblaze/mb_update_gm
@cp target/u2/microblaze/mb_update/result/update.u2u ./update_audio.u2u
@cp target/u2/microblaze/mb_update_dd/result/update.u2u ./update_dual_drive_acia.u2u
@cp target/u2/microblaze/mb_update_gm/result/update.u2u ./update_dual_drive_gmod2.u2u
niosclean:
@$(MAKE) -C target/libs/nios2/lwip clean
@$(MAKE) -C target/u2plus/nios/boot_recovery clean
@$(MAKE) -C target/u2plus/nios/boot_run clean
@$(MAKE) -C target/u2plus/nios/ultimate clean
@$(MAKE) -C target/u2plus/nios/recovery clean
@$(MAKE) -C target/u2plus/nios/flash clean
@$(MAKE) -C target/u2plus/nios/updater clean
niosboot:
@$(MAKE) -C target/libs/nios2/lwip
@$(MAKE) -C target/u2plus/nios/boot_recovery
@$(MAKE) -C target/u2plus/nios/boot_run
@$(MAKE) -C software/nios_solo_bsp
@$(MAKE) -C software/nios_appl_bsp
u2plus:
@touch software/nios_solo_bsp/Makefile
@touch software/nios_solo_bsp/public.mk
@touch software/nios_appl_bsp/Makefile
@touch software/nios_appl_bsp/public.mk
@$(MAKE) -C tools
@$(MAKE) -C software/nios_solo_bsp
@$(MAKE) -C software/nios_appl_bsp
@$(MAKE) -C target/libs/nios2/lwip
@$(MAKE) -C target/u2plus/nios/boot_recovery
@$(MAKE) -C target/u2plus/nios/boot_run
@$(MAKE) -C target/fpga/u2plus_recovery
@$(MAKE) -C target/fpga/u2plus_run
@$(MAKE) -C target/u2plus/nios/ultimate
@$(MAKE) -C target/u2plus/nios/recovery
@$(MAKE) -C target/u2plus/nios/updater
@cp target/u2plus/nios/updater/result/update.app ./update.u2p
u2p_tester:
@$(MAKE) -C target/libs/nios2/lwip
@$(MAKE) -C target/tester_u2p/nios/testboot
@$(MAKE) -C target/tester_u2p/nios/dutboot
@$(MAKE) -C target/fpga/testdut
@$(MAKE) -C target/fpga/testexec
@touch software/nios_dut_bsp/Makefile
@touch software/nios_dut_bsp/public.mk
@touch software/nios_tester_bsp/Makefile
@touch software/nios_tester_bsp/public.mk
@$(MAKE) -C software/nios_dut_bsp
@$(MAKE) -C software/nios_tester_bsp
@$(MAKE) -C target/tester_u2p/nios/dut clean
@$(MAKE) -C target/tester_u2p/nios/tester clean
@$(MAKE) -C target/tester_u2p/nios/testloader clean
@$(MAKE) -C target/tester_u2p/nios/testflasher clean
@$(MAKE) -C target/tester_u2p/nios/dut
@$(MAKE) -C target/tester_u2p/nios/testloader
@$(MAKE) -C target/tester_u2p/nios/tester
@$(MAKE) -C target/tester_u2p/nios/testflasher
@$(MAKE) -C target/tester_package force
@$(MAKE) -C target/tester_package force
u2p_tester_sw:
@$(MAKE) -C target/libs/nios2/lwip
@touch software/nios_dut_bsp/Makefile
@touch software/nios_dut_bsp/public.mk
@touch software/nios_tester_bsp/Makefile
@touch software/nios_tester_bsp/public.mk
@$(MAKE) -C software/nios_dut_bsp
@$(MAKE) -C software/nios_tester_bsp
@$(MAKE) -C target/tester_u2p/nios/dut clean
@$(MAKE) -C target/tester_u2p/nios/tester clean
@$(MAKE) -C target/tester_u2p/nios/testloader clean
@$(MAKE) -C target/tester_u2p/nios/testflasher clean
@$(MAKE) -C target/tester_u2p/nios/dut
@$(MAKE) -C target/tester_u2p/nios/testloader
@$(MAKE) -C target/tester_u2p/nios/tester
@$(MAKE) -C target/tester_u2p/nios/testflasher
@$(MAKE) -C target/tester_package force
@$(MAKE) -C target/tester_package force
clean:
@$(MAKE) -C tools clean
@rm -f ./update*.u2*
@rm -f ./update.u64
@rm -rf target/fpga/mb700/work
@rm -rf target/fpga/mb700dd/work
@rm -rf target/fpga/mb700gm/work
@rm -rf target/fpga/rv700dd/rv700dd
@rm -rf target/fpga/rv700au/work
@rm -rf target/fpga/rv700_loader/work
@rm -rf target/fpga/_xm*
@rm -rf target/fpga/x*
@rm -rf target/fpga/*.x*
@rm -rf `find target -name result`
@rm -rf `find target -name output`
sw_clean:
@rm -f ./update*.u2*
@rm -f ./update.u64
@rm -rf `find target -name result`
@rm -rf `find target -name output`
mb_clean:
@rm -f ./update*.u2u
@rm -rf `find target/u2/microblaze/mb* -name result`
@rm -rf `find target/u2/microblaze/mb* -name output`
u2plus_swonly:
@touch software/nios_solo_bsp/Makefile
@touch software/nios_solo_bsp/public.mk
@touch software/nios_appl_bsp/Makefile
@touch software/nios_appl_bsp/public.mk
@$(MAKE) -C tools
@$(MAKE) -C software/nios_solo_bsp
@$(MAKE) -C software/nios_appl_bsp
@$(MAKE) -C target/libs/nios2/lwip
@$(MAKE) -C target/u2plus/nios/ultimate
@$(MAKE) -C target/u2plus/nios/recovery
@$(MAKE) -C target/u2plus/nios/updater
@cp target/u2plus/nios/updater/result/update.app ./update.u2p
u2plus_swapply:
@$(MAKE) -C tools
@$(MAKE) -C software/nios_solo_bsp
@$(MAKE) -C software/nios_appl_bsp
@$(MAKE) -C target/libs/nios2/lwip
@$(MAKE) -C target/u2plus/nios/ultimate
nios2-download -g target/u2plus/nios/ultimate/result/ultimate.elf
u2_swonly:
@$(MAKE) -C tools
@$(MAKE) -C target/u2/microblaze/mb_lwip
@$(MAKE) -C target/u2/microblaze/mb_boot
@$(MAKE) -C target/u2/microblaze/mb_boot_dd
@$(MAKE) -C target/u2/microblaze/mb_boot_gm
@$(MAKE) -C target/u2/microblaze/mb_boot2
@$(MAKE) -C target/u2/microblaze/mb_ultimate
nios_bsps:
@touch software/nios_solo_bsp/Makefile
@touch software/nios_solo_bsp/public.mk
@touch software/nios_appl_bsp/Makefile
@touch software/nios_appl_bsp/public.mk
@$(MAKE) -C software/nios_solo_bsp
@$(MAKE) -C software/nios_appl_bsp
u64:
@touch software/nios_solo_bsp/Makefile
@touch software/nios_solo_bsp/public.mk
@touch software/nios_appl_bsp/Makefile
@touch software/nios_appl_bsp/public.mk
@$(MAKE) -C tools
@$(MAKE) -C software/nios_solo_bsp
@$(MAKE) -C software/nios_appl_bsp
@$(MAKE) -C target/libs/nios2/lwip
@$(MAKE) -C target/u64/nios2/ultimate
@$(MAKE) -C target/u64/nios2/updater
@cp target/u64/nios2/updater/result/update.app ./update.u64
u64_clean:
@$(MAKE) -C target/u64/nios2/ultimate clean
@$(MAKE) -C target/u64/nios2/updater clean
u2pl:
@$(MAKE) -C tools
@$(MAKE) -C neorv32/sw/example all
@$(MAKE) -C target/libs/riscv/lwip
@$(MAKE) -C target/u2plus_L/riscv/bootloader
@$(MAKE) -C target/u2plus_L/rvlite/bootloader
@$(MAKE) -C target/fpga/u2plus_ecp5
@$(MAKE) -C target/u2plus_L/riscv/ultimate
@$(MAKE) -C target/u2plus_L/riscv/updater
@cp target/u2plus_L/riscv/updater/result/update.app ./update.u2l
u2pl_swonly:
@$(MAKE) -C tools
@$(MAKE) -C target/libs/riscv/lwip
@$(MAKE) -C target/u2plus_L/riscv/ultimate
@$(MAKE) -C target/u2plus_L/riscv/updater
@cp target/u2plus_L/riscv/updater/result/update.app ./update.u2l