summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'boot_loader/IBL_Makefile')
-rw-r--r--boot_loader/IBL_Makefile398
1 files changed, 0 insertions, 398 deletions
diff --git a/boot_loader/IBL_Makefile b/boot_loader/IBL_Makefile
deleted file mode 100644
index 3a498fd..0000000
--- a/boot_loader/IBL_Makefile
+++ /dev/null
@@ -1,398 +0,0 @@
1#*
2#*
3#* Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
4#*
5#*
6#* Redistribution and use in source and binary forms, with or without
7#* modification, are permitted provided that the following conditions
8#* are met:
9#*
10#* Redistributions of source code must retain the above copyright
11#* notice, this list of conditions and the following disclaimer.
12#*
13#* Redistributions in binary form must reproduce the above copyright
14#* notice, this list of conditions and the following disclaimer in the
15#* documentation and/or other materials provided with the
16#* distribution.
17#*
18#* Neither the name of Texas Instruments Incorporated nor the names of
19#* its contributors may be used to endorse or promote products derived
20#* from this software without specific prior written permission.
21#*
22#* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23#* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24#* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25#* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26#* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27#* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28#* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29#* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30#* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31#* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32#* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33#*
34
35
36#*******************************************************************************************
37#* FILE PURPOSE: Top level make for the IBL
38#*******************************************************************************************
39#* FILE NAME: Makefile
40#*
41#* DESCRIPTION: Builds the Intermediate Boot Loader (IBL)
42#*
43#* Usage: make c6455 | c6472 | c6474 | c6457 | c661x
44#* [DEBUG=yes] /* Compiles for debug */
45#* [ETH=no] /* Disables ethernet support */
46#* [BIS=no] /* Disables BIS interpreter */
47#* [COFF=no] /* Disables COFF interpreter */
48#* [BLOB=no] /* Disables BLOB interpreter */
49#* [ELF=no] /* Disables ELF interpreter */
50#* [NAND=no] /* Disables NAND support through EMIF/SPI/GPIO */
51#* [NAND_SPI=no] /* Disables NAND support through SPI */
52#* [NAND_EMIF=no] /* Disables NAND support through EMIF */
53#* [NAND_GPIO=no] /* Disables NAND support through GPIO */
54#* [NOR=no] /* Disables NOR through EMIF/SPI */
55#* [NOR_SPI=no] /* Disables NOR support through SPI */
56#* [NOR_EMIF=no] /* Disables NOR support through EMIF */
57#* [SPI=no] /* Disables SPI */
58#* [I2C=no] /* Disables I2C */
59#* [EMIF=no] /* Disables EMIF */
60#* [MULTI_BOOT=no] /* Disables Multi-boot feature */
61#* [SPI_MODE=<0,1,2,3>] /* Selects the SPI operating mode */
62#* [SPI_ADDR_WIDTH=<16,24>] /* Selects the SPI address width */
63#* [SPI_NPIN=<4,5>] /* Selects the number of pins on the interface */
64#* [SPI_CSEL=<1,2>] /* Sets the SPI CSEL value in 5 pin mode */
65#* [SPI_C2TDEL=x] /* Sets the SPI C to T delay value */
66#* [SPI_CLKDIV=x] /* Sets the SPI module clock divider */
67#* [SPI_USE_ROM=yes] /* Uses SPI interface parameters from boot ROM, if available */
68#* [ENDIAN= both | big | little] /* Selects the endian of the build */
69#* [I2C_BUS_ADDR= 0x50 | 0x51] /* The initial I2C bus address */
70#* [COMPACT_I2C=yes] /* Mimimizes the size of the I2C */
71#* [I2C_MAP_ADDR= 0x500 | 0x800] /* The IBL configuration parameter offset */
72#*
73#*
74#* or to make a board specific configuraiton
75#*
76#* make evm_c6455 | evm_c6472 | evm_c6474 | evm_c6457 | evm_c661x
77#*
78#* or to test the builds by making all the devices and testing excludes
79#*
80#* make test_build
81#*******************************************************************************************
82
83IBLS_C6X= c6455 c6472 c6474 c6457 c661x
84EVMS_C6X= evm_c6455 evm_c6472 evm_c6474
85
86
87# Excluding functions from the build reduces the I2C eeprom memory used and
88# speeds the initial boot time. Note that boot table cannot be excluded
89# because it is required for the two stage I2C load process
90
91CEXCLUDES=
92
93ifeq ($(ETH),no)
94 CEXCLUDES+= ETH
95endif
96
97ifeq ($(BIS),no)
98 CEXCLUDES+= BIS
99endif
100
101ifeq ($(COFF),no)
102 CEXCLUDES+= COFF
103endif
104
105ifeq ($(BLOB),no)
106 CEXCLUDES+= BLOB
107endif
108
109ifeq ($(ELF),no)
110 CEXCLUDES+= ELF
111endif
112
113ifeq ($(NAND),no)
114 CEXCLUDES+= NAND_SPI
115 CEXCLUDES+= NAND_EMIF
116 CEXCLUDES+= NAND_GPIO
117
118else
119
120 ifeq ($(NAND_SPI),no)
121 CEXCLUDES+= NAND_SPI
122 endif
123
124 ifeq ($(NAND_EMIF),no)
125 CEXCLUDES+= NAND_EMIF
126 endif
127
128 ifeq ($(NAND_GPIO),no)
129 CEXCLUDES+= NAND_GPIO
130 endif
131
132endif
133
134
135ifeq ($(NOR),no)
136 CEXCLUDES+= NOR_SPI
137 CEXCLUDES+= NOR_EMIF
138
139else
140
141 ifeq ($(NOR_SPI),no)
142 CEXCLUDES+= NOR_SPI
143 endif
144
145 ifeq ($(NOR_EMIF),no)
146 CEXCLUDES+= NOR_EMIF
147 endif
148
149endif
150
151
152ifeq ($(I2C),no)
153 CEXCLUDES+= I2C
154endif
155
156
157ifeq ($(SPI),no)
158
159 ifeq (,$(findstring NAND_SPI, $(CEXCLUDES)))
160 CEXCLUDES+= NAND_SPI
161 endif
162
163 ifeq (,$(findstring NOR_SPI, $(CEXCLUDES)))
164 CEXCLUDES+= NOR_SPI
165 endif
166
167endif
168
169
170ifeq ($(EMIF),no)
171
172 ifeq (,$(findstring NAND_EMIF, $(CEXCLUDES)))
173 CEXCLUDES+= NAND_EMIF
174 endif
175
176 ifeq (,$(findstring NOR_EMIF, $(CEXCLUDES)))
177 CEXCLUDES+= NOR_EMIF
178 endif
179
180endif
181
182ifeq ($(MULTI_BOOT),no)
183 CEXCLUDES+= MULTI_BOOT
184endif
185
186# The endian of the build. The default target builds a single ROM image with both endians present
187ifeq ($(ENDIAN),big)
188 ENDIAN_MODE=big
189else
190 ifeq ($(ENDIAN),little)
191 ENDIAN_MODE=little
192 else
193 ENDIAN_MODE=both
194 endif
195endif
196
197# The i2c ROM bus address. The code will advance accross I2C bus address boundaries (the code must
198# be blocked so that a single block doesn't cross a boundary, however).
199ifndef I2C_BUS_ADDR
200 I2C_BUS_ADDR=0x50
201endif
202
203ifndef I2C_MAP_ADDR
204ifeq ($(ENDIAN),big)
205 I2C_MAP_ADDR=0x800
206 else
207 I2C_MAP_ADDR=0x500
208 endif
209endif
210
211
212# The SPI configuration parameters
213ifndef SPI_MODE
214 SPI_MODE=1
215endif
216
217ifndef SPI_ADDR_WIDTH
218 SPI_ADDR_WIDTH=24
219endif
220
221ifndef SPI_NPIN
222 SPI_NPIN=5
223endif
224
225ifndef SPI_CSEL
226 SPI_CSEL=2
227endif
228
229ifndef SPI_C2TDEL
230 SPI_C2TDEL=4
231endif
232
233ifndef SPI_CLKDIV
234 SPI_CLKDIV=8
235endif
236
237ifneq ($(SPI_USE_ROM),0)
238 SPI_ROM=1
239else
240 SPI_ROM=0
241endif
242
243SPI_DEFS= SPI_MODE=$(SPI_MODE)
244SPI_DEFS+= SPI_ADDR_WIDTH=$(SPI_ADDR_WIDTH)
245SPI_DEFS+= SPI_NPIN=$(SPI_NPIN)
246SPI_DEFS+= SPI_CSEL=$(SPI_CSEL)
247SPI_DEFS+= SPI_C2TDEL=$(SPI_C2TDEL)
248SPI_DEFS+= SPI_CLKDIV=$(SPI_CLKDIV)
249SPI_DEFS+= SPI_ROM=$(SPI_ROM)
250
251
252.PHONY: all $(IBLS_C6X) evm_c6455 evm_c6472 evm_c6474 evm_c6457 evm_c6618
253.PHONY: test_c661x test_c6455 test_c6472 test_c6474 test_c6457 clean
254
255
256all:
257 @echo must specify a target [ $(IBLS_C6X) $(EVMS_C6X) ]
258
259
260# The debug flag changes compiler options
261ifndef DEBUG
262 DEBUG=no
263endif
264export DEBUG
265
266
267$(IBLS_C6X):
268 make -f makestg1 ARCH=c64x TARGET=$@ I2C_BUS_ADDR=$(I2C_BUS_ADDR) I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=$(COMPACT_I2C) ENDIAN_MODE=$(ENDIAN_MODE) CEXCLUDES='$(CEXCLUDES)' SPI_DEFS='$(SPI_DEFS)' $@
269
270# Configurations for individual evms
271# The c6455 EVM has a 128k eeprom (64k at 0x50, 64k at 0x51), so both endians are built with full functionality
272evm_c6455:
273 make -f makestg1 ARCH=c64x TARGET=c6455 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES='MULTI_BOOT' c6455
274
275# The c6472 EVM has a 128k eeprom (64k at 0x50, 64k at 0x51), so both endians are built with full functionality
276evm_c6472:
277 make -f makestg1 ARCH=c64x TARGET=c6472 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES='MULTI_BOOT' c6472
278
279# The 6474 EVM has a 32k eeprom. A stripped down version is build with only one endian.
280evm_c6474:
281 make -f makestg1 ARCH=c64x TARGET=c6474 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 COMPACT_I2C=yes ENDIAN_MODE=little CEXCLUDES='ELF NAND_GPIO BIS MULTI_BOOT' I2C_SIZE_BYTES=0x8000 c6474
282 cp ibl_c6474/i2crom.dat ibl_c6474/i2crom_0x50_c6474_le.dat
283 make -f makestg1 ARCH=c64x TARGET=c6474 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 COMPACT_I2C=yes ENDIAN_MODE=big CEXCLUDES='ELF NAND_GPIO BIS MULTI_BOOT' I2C_SIZE_BYTES=0x8000 c6474
284 cp ibl_c6474/i2crom.dat ibl_c6474/i2crom_0x50_c6474_be.dat
285
286evm_c6474l:
287 make -f makestg1 ARCH=c64x TARGET=c6474 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 COMPACT_I2C=yes ENDIAN_MODE=little CEXCLUDES='ELF NAND_GPIO BIS MULTI_BOOT' c6474
288 cp ibl_c6474/i2crom.dat ibl_c6474/i2crom_0x50_c6474l_le.dat
289 make -f makestg1 ARCH=c64x TARGET=c6474 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 COMPACT_I2C=yes ENDIAN_MODE=big CEXCLUDES='ELF NAND_GPIO BIS MULTI_BOOT' c6474
290 cp ibl_c6474/i2crom.dat ibl_c6474/i2crom_0x50_c6474l_be.dat
291
292# The 6457 EVM
293evm_c6457:
294 make -f makestg1 ARCH=c64x TARGET=c6457 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 COMPACT_I2C=yes ENDIAN_MODE=little CEXCLUDES='ELF NAND_GPIO BIS MULTI_BOOT' c6457
295 cp ibl_c6457/i2crom.dat ibl_c6457/i2crom_0x50_c6457_le.dat
296 make -f makestg1 ARCH=c64x TARGET=c6457 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 COMPACT_I2C=yes ENDIAN_MODE=big CEXCLUDES='ELF NAND_GPIO BIS MULTI_BOOT' c6457
297 cp ibl_c6457/i2crom.dat ibl_c6457/i2crom_0x50_c6457_be.dat
298
299# The 6608 EVM
300EVM_6608_SPI_DEFS= SPI_MODE=1 SPI_ADDR_WIDTH=24 SPI_NPIN=5 SPI_CSEL=2 SPI_C2TDEL=1 SPI_CLKDIV=8 SPI_ROM=1
301
302evm_c6608:
303 make -f makestg1 ARCH=c64x TARGET=c661x I2C=no I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x500 ENDIAN_MODE=little CEXCLUDES=I2C SPI_DEFS='$(EVM_6608_SPI_DEFS)' c661x
304
305# The 667x EVM SPI/NOR Boot
306EVM_667x_SPI_DEFS= SPI_MODE=1 SPI_ADDR_WIDTH=24 SPI_NPIN=5 SPI_CSEL=2 SPI_C2TDEL=1 SPI_CLKDIV=8 SPI_ROM=1
307
308evm_c667x_spi:
309 make -f makestg1 ARCH=c64x TARGET=c661x I2C=no I2C_BUS_ADDR=0x51 I2C_MAP_ADDR=0x500 ENDIAN_MODE=little CEXCLUDES=I2C SPI_DEFS='$(EVM_667x_SPI_DEFS)' c661x
310
311evm_c667x_i2c:
312 make -f makestg1 I2C_BUS_ADDR=$(I2C_BUS_ADDR) I2C_MAP_ADDR=$(I2C_MAP_ADDR) ENDIAN_MODE=$(ENDIAN) ARCH=c64x TARGET=c661x SPI=no INTERNAL_UTILS=no SPI_DEFS='$(EVM_667x_SPI_DEFS)' c661x
313
314test_c661x:
315 make -f makestg1 ARCH=c64x TARGET=c661x ENDIAN_MODE=both CEXCLUDES='NOR_SPI' SPI_DEFS='SPI_ROM=1 SPI_MODE=3 SPI_ADDR_WIDTH=24 SPI_NPIN=5 SPI_CSEL=2 SPI_C2TDEL=8 SPI_CLKDIV=0x20' I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no c661x
316 make -f makestg1 ARCH=c64x TARGET=c661x ENDIAN_MODE=both CEXCLUDES='NAND_SPI' SPI_DEFS='SPI_ROM=1 SPI_MODE=3 SPI_ADDR_WIDTH=24 SPI_NPIN=5 SPI_CSEL=2 SPI_C2TDEL=8 SPI_CLKDIV=0x20' I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no c661x
317 make -f makestg1 ARCH=c64x TARGET=c661x ENDIAN_MODE=both CEXCLUDES='NOR_EMIF' SPI_DEFS='SPI_ROM=1 SPI_MODE=3 SPI_ADDR_WIDTH=24 SPI_NPIN=5 SPI_CSEL=2 SPI_C2TDEL=8 SPI_CLKDIV=0x20' I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no c661x
318 make -f makestg1 ARCH=c64x TARGET=c661x ENDIAN_MODE=both CEXCLUDES='NAND_EMIF' SPI_DEFS='SPI_ROM=1 SPI_MODE=3 SPI_ADDR_WIDTH=24 SPI_NPIN=5 SPI_CSEL=2 SPI_C2TDEL=8 SPI_CLKDIV=0x20' I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no c661x
319 make -f makestg1 ARCH=c64x TARGET=c661x ENDIAN_MODE=both CEXCLUDES='NAND_EMIF NOR_EMIF' SPI_DEFS='SPI_ROM=1 SPI_MODE=3 SPI_ADDR_WIDTH=24 SPI_NPIN=5 SPI_CSEL=2 SPI_C2TDEL=8 SPI_CLKDIV=0x20' I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no c661x
320 make -f makestg1 ARCH=c64x TARGET=c661x ENDIAN_MODE=both CEXCLUDES='SPI NOR_SPI NAND_SPI' I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no c661x
321 make -f makestg1 ARCH=c64x TARGET=c661x ENDIAN_MODE=both CEXCLUDES=I2C SPI_DEFS='SPI_ROM=1 SPI_MODE=3 SPI_ADDR_WIDTH=24 SPI_NPIN=5 SPI_CSEL=2 SPI_C2TDEL=8 SPI_CLKDIV=0x20' c661x
322
323# Test - builds all the targets, with single component exclusion
324
325test_c6455:
326 make -f makestg1 ARCH=c64x TARGET=c6455 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES= c6455
327 make -f makestg1 ARCH=c64x TARGET=c6455 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES=ETH c6455
328 make -f makestg1 ARCH=c64x TARGET=c6455 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES=NAND_GPIO c6455
329 make -f makestg1 ARCH=c64x TARGET=c6455 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES=BIS c6455
330 make -f makestg1 ARCH=c64x TARGET=c6455 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES=COFF c6455
331 make -f makestg1 ARCH=c64x TARGET=c6455 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES=ELF c6455
332 make -f makestg1 ARCH=c64x TARGET=c6455 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES=BLOB c6455
333
334test_c6457:
335 make -f makestg1 ARCH=c64x TARGET=c6457 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=yes ENDIAN_MODE=both CEXCLUDES= c6457
336 make -f makestg1 ARCH=c64x TARGET=c6457 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=yes ENDIAN_MODE=both CEXCLUDES=ETH c6457
337 make -f makestg1 ARCH=c64x TARGET=c6457 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=yes ENDIAN_MODE=both CEXCLUDES=NAND_GPIO c6457
338 make -f makestg1 ARCH=c64x TARGET=c6457 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=yes ENDIAN_MODE=both CEXCLUDES=BIS c6457
339 make -f makestg1 ARCH=c64x TARGET=c6457 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=yes ENDIAN_MODE=both CEXCLUDES=COFF c6457
340 make -f makestg1 ARCH=c64x TARGET=c6457 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=yes ENDIAN_MODE=both CEXCLUDES=ELF c6457
341 make -f makestg1 ARCH=c64x TARGET=c6457 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=yes ENDIAN_MODE=both CEXCLUDES=BLOB c6457
342
343test_c6472:
344 make -f makestg1 ARCH=c64x TARGET=c6472 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES= c6472
345 make -f makestg1 ARCH=c64x TARGET=c6472 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES=ETH c6472
346 make -f makestg1 ARCH=c64x TARGET=c6472 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES=NAND_GPIO c6472
347 make -f makestg1 ARCH=c64x TARGET=c6472 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES=BIS c6472
348 make -f makestg1 ARCH=c64x TARGET=c6472 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES=COFF c6472
349 make -f makestg1 ARCH=c64x TARGET=c6472 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES=ELF c6472
350 make -f makestg1 ARCH=c64x TARGET=c6472 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES=BLOB c6472
351
352test_c6474:
353 make -f makestg1 ARCH=c64x TARGET=c6474 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=yes ENDIAN_MODE=both CEXCLUDES= c6474
354 make -f makestg1 ARCH=c64x TARGET=c6474 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=yes ENDIAN_MODE=both CEXCLUDES=ETH c6474
355 make -f makestg1 ARCH=c64x TARGET=c6474 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=yes ENDIAN_MODE=both CEXCLUDES=NAND_GPIO c6474
356 make -f makestg1 ARCH=c64x TARGET=c6474 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=yes ENDIAN_MODE=both CEXCLUDES=BIS c6474
357 make -f makestg1 ARCH=c64x TARGET=c6474 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=yes ENDIAN_MODE=both CEXCLUDES=COFF c6474
358 make -f makestg1 ARCH=c64x TARGET=c6474 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=yes ENDIAN_MODE=both CEXCLUDES=ELF c6474
359 make -f makestg1 ARCH=c64x TARGET=c6474 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=yes ENDIAN_MODE=both CEXCLUDES=BLOB c6474
360
361
362test_build: test_c6455 test_c6457 test_c6472 test_c6474 test_c661x
363
364
365# will need to add a line for each additional ARCH type added
366clean:
367 make -f makestg2 clean ARCH=c64x TARGET=c6472
368 make -f makestg2 cleant ARCH=c64x TARGET=c6472
369 make -f makestg2 cleant ARCH=c64x TARGET=c6474
370 make -f makestg2 cleant ARCH=c64x TARGET=c6455
371 make -f makestg2 cleant ARCH=c64x TARGET=c6457
372 make -f makestg2 cleant ARCH=c64x TARGET=c661x
373 make -C ../util/bconvert clean
374 make -C ../util/btoccs clean
375 make -C ../util/i2cConfig clean ARCH=c64x TARGET=c6455
376 make -C ../util/i2cConfig clean ARCH=c64x TARGET=c6472
377 make -C ../util/i2cConfig clean ARCH=c64x TARGET=c6474
378 make -C ../util/i2cConfig clean ARCH=c64x TARGET=c6457
379 make -C ../util/i2cConfig clean ARCH=c64x TARGET=c661x
380 make -C ../util/romparse clean
381 make -C ../test/test1 clean
382 make -C ../test/test2 clean
383 find ../ -name *.oc | xargs rm -f
384 find ../ -name *.dc | xargs rm -f
385 find ../ -name *.oa | xargs rm -f
386 find ../ -name *.da | xargs rm -f
387 find ../ -name *.tmp | xargs rm -f
388 find ../ -name cdefdep | xargs rm -f
389
390
391
392
393
394
395
396
397
398