RT-AC56 3.0.0.4.374.37 core
[tomato.git] / release / src-rt-6.x.4708 / cfe / build / broadcom / carmel / Makefile
blobd05587ffdd7f57f37f2c4071bb790393ece85ab8
2 CFG_MLONG64 ?= 0
3 CFG_LITTLE ?= 0
4 CFG_RELOC ?= 1
5 CFG_UNCACHED ?= 0
6 CFG_VAPI ?= 0
7 CFG_BOOTRAM ?= 0
8 CFG_BOARDNAME = "CARMEL"
9 CFG_PCI ?= 0
10 CFG_ZLIB ?= 1
12 TOP = ../../../cfe
13 ARCH = mips
14 CPU = sb1250
15 BOARD = carmel
17 include ${TOP}/main/cfe.mk
20 # Don't clean these object files if building bi-endian.
21 # To build a clean bi-endian flash image, use "gmake clean cfe-biendian.flash"
24 ifeq ($(strip ${CFG_BIENDIAN}),0)
25 CLEANOBJS += cfe.bin.le cfe.bin.be
26 endif
29 # Uncomment to make things happy under the functional simulator.
31 #CFLAGS += -D_FUNCSIM_ -D_FASTEMUL_
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.
38 CFLAGS += -D_SB11XX_
41 # The NS16550s on the EXAR part have a different crystal. Since the
42 # crystal is actually 4x the default, we could also use the
43 # prescaler to do this. Either way should work.
45 CFLAGS += -DNS16550_HZ=7372800
47 # Main target for normal builds
50 ALL : cfe cfe.flash
51 echo done
54 # Special targets for bi-endian builds
57 cfe.bin.le :
58 ${MAKE} clean all CFG_BIENDIAN=1 CFG_LITTLE=1 CFG_RELOC=1
59 cp cfe.bin cfe.bin.le
61 cfe.bin.be :
62 ${MAKE} clean all CFG_BIENDIAN=1 CFG_LITTLE=0 CFG_RELOC=1
63 cp cfe.bin cfe.bin.be
65 biend : cfe-biendian.flash cfe-biendian.srec
66 echo done
68 cfe-biendian.flash : cfe.bin.le cfe.bin.be mkflashimage
69 ./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
71 cfe-biendian.srec : cfe-biendian.flash
72 dd if=cfe-biendian.flash of=cfe-biendian.bin bs=64 skip=1
73 $(OBJCOPY) --input-target=binary --output-target=srec cfe-biendian.bin cfe-biendian.srec
76 include ${TOP}/main/cfe_link.mk