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