8 CFG_BOARDNAME
= "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
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
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
54 # Special targets for bi-endian builds
58 ${MAKE} clean all CFG_BIENDIAN
=1 CFG_LITTLE
=1 CFG_RELOC
=1
62 ${MAKE} clean all CFG_BIENDIAN
=1 CFG_LITTLE
=0 CFG_RELOC
=1
65 biend
: cfe-biendian.flash cfe-biendian.srec
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