RT-AC66 3.0.0.4.374.130 core
[tomato.git] / release / src-rt-6.x / cfe / build / broadcom / bu4704 / Makefile
blob7c045f6b70103f8c2512d6dd532692daf9ff6e00
2 #GCC = mips64-sb1sim-gcc -DDBG -DBCMDBG
3 GCC = mips64-sb1sim-gcc
4 GLD = mips64-sb1sim-ld
5 AR = mips64-sb1sim-ar
6 OBJDUMP = mips64-sb1sim-objdump
7 OBJCOPY = mips64-sb1sim-objcopy
8 RANLIB = mips64-sb1sim-ranlib
10 CFG_MLONG64 ?= 0
12 # Uncomment to boot from PCI/JTAG
13 #CFG_EPIBOOT=1
15 # Note: Big endian is not likely to work without some
16 # major source changes in the drivers.
17 # Note: this configuration is for loading into FLASH via
18 # Epidiag
20 # Link & Run uncached (Quickturn ala Epidiag/JTAG)
21 ifeq ($(CFG_EPIBOOT),1)
22 CFG_LITTLE ?= 1
23 CFG_RELOC ?= 0
24 CFG_UNCACHED ?= 1
25 CFG_VAPI ?= 0
26 CFG_BOOTRAM ?= 1
27 CFG_UNCACHED_RAMAPP ?= 1
28 CFG_BOARDNAME = "BU4704"
29 # For JTAG Boot, uncomment this line
30 CFLAGS += -DJTAG_RAM_BOOT
31 #CFG_MINIMAL_SIZE=1
32 CFG_MINIMAL_SIZE=0
34 else
36 # Note: this configuration is for loading into FLASH via
37 # Epidiag via "s flashutl.tcl" and "flwritefile cfe.bin"
38 # Link and Run cached (Note: will not work from Epidiag)
40 CFG_LITTLE ?= 1
41 CFG_RELOC ?= 1
42 CFG_UNCACHED ?= 0
43 CFG_VAPI ?= 0
44 CFG_BOOTRAM ?= 0
45 CFG_BOARDNAME = "BU4704"
46 CFG_PCI = 0
47 CFG_MSYS = 0
48 CFG_MINIMAL_SIZE=0
49 endif
51 # Define the CPU family
52 CFLAGS += -DMIPS33xx
53 CFLAGS += -DBCM4704
55 # Define for building 4704
56 CFG_4704 = 1
58 # For DDR SDRAM
59 CFLAGS += -DDDRAM
61 # Disable Flow control on UART
62 CFLAGS += -DNS16550_NO_FLOW
64 CFG_PCI = 0
65 CFG_ZLIB=1
66 CFG_MSYS= 0
70 # Set the path HND_TOP, below, to the 'src'
71 # directory checked out from the HND's CVS repository.
73 # Below this directory should be the "shared" and "et/sys"
74 # directories.
76 # The CFE build procedure will pull in sources required
77 # for the Ethernet driver from this location.
79 HND_TOP=../../../..
81 TOP = ../../../cfe
82 ARCH = mips
83 CPU = bcmcore
84 BOARD = bcm4x5x
86 include ${TOP}/main/cfe.mk
88 #LDLIBS += -lgcc
90 ALL : cfe cfe.flash
91 echo done
93 include ${TOP}/main/cfe_link.mk