CFG_LITTLE ?= 0 CFG_RELOC ?= 1 CFG_UNCACHED ?= 0 CFG_VAPI ?= 0 CFG_BOOTRAM ?= 0 CFG_BOARDNAME = "BCM1250CPCI" CFG_PCI = 1 CFG_DOWNLOAD = 0 TOP = ../../../cfe ARCH = mips BOARD = bcm1250cpci CHIPSET = sibyte CPU = sb1250 include ${TOP}/main/cfe.mk # # Don't clean these object files if building bi-endian. # To build a clean bi-endian flash image, use "gmake clean cfe-biendian.flash" # ifeq ($(strip ${CFG_BIENDIAN}),0) CLEANOBJS += cfe.bin.le cfe.bin.be endif # # These settings speed up the cache init by not doing too much of it. This helps # boot time in the sim. It also adjusts timers and other hardware stuff # for running in the functional simulator (mostly changes CPU speed to # 500Khz). Remove this before using on real hardware. # # CFLAGS += -D_FASTEMUL_ -D_FUNCSIM_ CFLAGS += -DSIBYTE_HDR_FEATURES="(SIBYTE_HDR_FMASK_1250_ALL|SIBYTE_HDR_FMASK_112x_ALL)" ALL : cfe cfe.flash echo done # # Special targets for bi-endian builds # cfe.bin.le : ${MAKE} clean all CFG_BIENDIAN=1 CFG_LITTLE=1 CFG_RELOC=1 cp cfe.bin cfe.bin.le cfe.bin.be : ${MAKE} clean all CFG_BIENDIAN=1 CFG_LITTLE=0 CFG_RELOC=1 cp cfe.bin cfe.bin.be biend : cfe-biendian.flash cfe-biendian.srec echo done cfe-biendian.flash : cfe.bin.le cfe.bin.be mkflashimage ./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 cfe-biendian.srec : cfe-biendian.flash dd if=cfe-biendian.flash of=cfe-biendian.bin bs=64 skip=1 $(OBJCOPY) --input-target=binary --output-target=srec cfe-biendian.bin cfe-biendian.srec # # Linker script # include ${TOP}/main/cfe_link.mk