1
2CFG_LITTLE ?= 0
3CFG_RELOC ?= 1
4CFG_UNCACHED ?= 0
5CFG_VAPI ?= 0
6CFG_BOOTRAM ?= 0
7CFG_BOARDNAME = "BCM1250CPCI"
8CFG_PCI = 1
9CFG_DOWNLOAD = 0
10
11TOP = ../../../cfe
12ARCH = mips
13BOARD = bcm1250cpci
14CHIPSET = sibyte
15CPU = sb1250
16
17
18include ${TOP}/main/cfe.mk
19
20#
21# Don't clean these object files if building bi-endian.
22# To build a clean bi-endian flash image, use "gmake clean cfe-biendian.flash"
23#
24
25ifeq ($(strip ${CFG_BIENDIAN}),0)
26CLEANOBJS += cfe.bin.le cfe.bin.be
27endif
28
29#
30# These settings speed up the cache init by not doing too much of it.  This helps 
31# boot time in the sim.  It also adjusts timers and other hardware stuff 
32# for running in the functional simulator (mostly changes CPU speed to 
33# 500Khz).  Remove this before using on real hardware.
34#
35# CFLAGS += -D_FASTEMUL_ -D_FUNCSIM_
36CFLAGS += -DSIBYTE_HDR_FEATURES="(SIBYTE_HDR_FMASK_1250_ALL|SIBYTE_HDR_FMASK_112x_ALL)"
37
38ALL : cfe cfe.flash
39	echo done
40
41#
42# Special targets for bi-endian builds
43#
44
45cfe.bin.le :
46	${MAKE} clean all CFG_BIENDIAN=1 CFG_LITTLE=1 CFG_RELOC=1 
47	cp cfe.bin cfe.bin.le
48
49cfe.bin.be :
50	${MAKE} clean all CFG_BIENDIAN=1 CFG_LITTLE=0 CFG_RELOC=1 
51	cp cfe.bin cfe.bin.be
52
53biend : cfe-biendian.flash cfe-biendian.srec
54	echo done
55
56cfe-biendian.flash : cfe.bin.le cfe.bin.be mkflashimage
57	./mkflashimage -v -EX -B ${CFG_BOARDNAME} -V ${CFE_VER_MAJ}.${CFE_VER_MIN}.${CFE_VER_ECO} cfe.bin.be cfe.bin.le cfe-biendian.flash
58
59cfe-biendian.srec : cfe-biendian.flash
60	dd if=cfe-biendian.flash of=cfe-biendian.bin bs=64 skip=1
61	$(OBJCOPY) --input-target=binary --output-target=srec cfe-biendian.bin cfe-biendian.srec
62
63#
64# Linker script
65#
66
67include ${TOP}/main/cfe_link.mk
68
69
70