BCM WL 6.30.102.9 (r366174)
[tomato.git] / release / src-rt / cfe / build / broadcom / bcm91125c / Makefile
blobc8bedb7057bbdcd0ee7ec97a325d63205ccb65be
2 CFG_MLONG64 ?= 1
3 CFG_LITTLE ?= 0
4 CFG_RELOC ?= 1
5 CFG_UNCACHED ?= 0
6 CFG_VAPI ?= 0
7 CFG_BOOTRAM ?= 0
8 CFG_BOARDNAME = "BCM91125C"
9 CFG_PCI ?= 1
11 TOP = ../../../cfe
12 ARCH = mips
13 CPU = sb1250
14 BOARD = bcm91125c
16 include ${TOP}/main/cfe.mk
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"
23 ifeq ($(strip ${CFG_BIENDIAN}),0)
24 CLEANOBJS += cfe.bin.le cfe.bin.be
25 endif
27 ifeq ($(strip ${CFG_PCI}),1)
28 BSPOBJS += bcm91125c_pci.o
29 endif
32 # Uncomment to make things happy under the functional simulator.
34 #CFLAGS += -D_FUNCSIM_ -D_FASTEMUL_
37 # For now, we do the BCM11xx magic at compile time, not at run-time
38 # So, define this symbol to tweak the MC code and other stuff
39 # to work properly.
41 CFLAGS += -D_SB11XX_
43 # Main target for normal builds
46 ALL : cfe cfe.flash
47 echo done
50 # Special targets for bi-endian builds
53 cfe.bin.le :
54 ${MAKE} clean all CFG_BIENDIAN=1 CFG_LITTLE=1 CFG_RELOC=1
55 cp cfe.bin cfe.bin.le
57 cfe.bin.be :
58 ${MAKE} clean all CFG_BIENDIAN=1 CFG_LITTLE=0 CFG_RELOC=1
59 cp cfe.bin cfe.bin.be
61 biend : cfe-biendian.flash
62 echo done
64 cfe-biendian.flash : cfe.bin.le cfe.bin.be mkflashimage
65 ./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
67 include ${TOP}/main/cfe_link.mk