1
2CFG_LITTLE ?= 0
3CFG_RELOC ?= 1
4CFG_UNCACHED ?= 0
5CFG_VAPI ?= 0
6CFG_BOOTRAM ?= 0
7CFG_BOARDNAME = "BCM91125E"
8CFG_PCI = 1
9
10TOP = ../../../cfe
11ARCH = mips
12CPU = sb1250
13CHIPSET = sibyte
14BOARD = bcm91125e
15
16include ${TOP}/main/cfe.mk
17
18#
19# Don't clean these object files if building bi-endian.
20# To build a clean bi-endian flash image, use "gmake clean cfe-biendian.flash"
21#
22
23ifeq ($(strip ${CFG_BIENDIAN}),0)
24CLEANOBJS += cfe.bin.le cfe.bin.be
25endif
26
27#
28# Uncomment to make things happy under the functional simulator.
29#
30#CFLAGS += -D_FUNCSIM_ -D_FASTEMUL_
31CFLAGS += -DSIBYTE_HDR_FEATURES="(SIBYTE_HDR_FMASK_1250_ALL|SIBYTE_HDR_FMASK_112x_ALL)"
32
33#
34# For now, we do the BCM11xx magic at compile time, not at run-time
35# So, define this symbol to tweak the MC code and other stuff
36# to work properly.
37#
38CFLAGS += -D_SB11XX_
39#
40# Main target for normal builds
41#
42
43ALL : cfe cfe.flash
44	echo done
45
46#
47# Special targets for bi-endian builds
48#
49
50cfe.bin.le :
51	${MAKE} clean all CFG_BIENDIAN=1 CFG_LITTLE=1 CFG_RELOC=1
52	cp cfe.bin cfe.bin.le
53
54cfe.bin.be :
55	${MAKE} clean all CFG_BIENDIAN=1 CFG_LITTLE=0 CFG_RELOC=1
56	cp cfe.bin cfe.bin.be
57
58biend : cfe-biendian.flash cfe-biendian.srec
59	echo done
60
61cfe-biendian.flash : cfe.bin.le cfe.bin.be mkflashimage
62	./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
63
64cfe-biendian.srec : cfe-biendian.flash
65	dd if=cfe-biendian.flash of=cfe-biendian.bin bs=64 skip=1
66	$(OBJCOPY) --input-target=binary --output-target=srec cfe-biendian.bin cfe-biendian.srec
67
68
69include ${TOP}/main/cfe_link.mk
70
71
72