67ff7f88d0373a3ffd831f9e38a775fe60ca3d45
1 #**************************************************************************
2 #* FILE NAME: makefile
3 #*
4 #* DESCRIPTION: Makes the low level drivers for the hardware modules
5 #*
6 #**************************************************************************
8 ifndef IBL_ROOT
9 export IBL_ROOT=../../..
10 endif
12 ECODIR= $(IBL_ROOT)/hw
14 ifeq ($(TARGET),c6472)
15 CSRC= t64.c cpmacdrv.c pll.c psc.c emif31.c mdio.c gpio.c nandgpio.c i2c.c
16 endif
18 .PHONY: hw
21 include $(IBL_ROOT)/make/$(ARCH)/makeeco.mk
24 C6X_C_DIR= $(IBL_ROOT)
25 C6X_C_DIR+= ;$(IBL_ROOT)/arch/$(ARCH)
26 C6X_C_DIR+= ;$(ECODIR)
27 C6X_C_DIR+= ;$(STDINC)
28 C6X_C_DIR+= ;$(IBL_ROOT)/cfg/$(TARGET)
29 C6X_C_DIR+= ;$(IBL_ROOT)/hw/timer
30 C6X_C_DIR+= ;$(IBL_ROOT)/hw/macs/cpmac
31 C6X_C_DIR+= ;$(IBL_ROOT)/driver/eth
32 C6X_C_DIR+= ;$(IBL_ROOT)/device
33 C6X_C_DIR+= ;$(IBL_ROOT)/device/$(TARGET)
34 C6X_C_DIR+= ;$(IBL_ROOT)/hw/plls
35 C6X_C_DIR+= ;$(IBL_ROOT)/hw/pscs
36 C6X_C_DIR+= ;$(IBL_ROOT)/hw/mdio
37 C6X_C_DIR+= ;$(IBL_ROOT)/hw/gpio
38 C6X_C_DIR+= ;$(IBL_ROOT)/hw/nands
39 C6X_C_DIR+= ;$(IBL_ROOT)/hw/nands/gpio
40 C6X_C_DIR+= ;$(IBL_ROOT)/hw/i2c
41 C6X_C_DIR+= ;$(IBL_ROOT)/ecc
42 export C6X_C_DIR
45 vpath % $(ECODIR)/timer/timer64
47 ifeq ($(TARGET),c6472)
48 vpath % $(ECODIR)/macs/cpmac
49 vpath % $(ECODIR)/plls/pllxx1p8
50 vpath % $(ECODIR)/pscs/psc2
51 vpath % $(ECODIR)/ddrs/emif31
52 vpath % $(ECODIR)/mdio
53 vpath % $(ECODIR)/gpio
54 vpath % $(ECODIR)/nands/gpio
55 vpath % $(ECODIR)/i2c
56 endif
59 hw: gen_cdefdep makefile $(OBJS)
61 $(OBJS): cdefdep
64 gen_cdefdep:
65 @echo Checking command line dependencies
66 @echo $(ENDIAN) $(TARGET) $(ARCH) > cdefdep.tmp
67 @sh -c 'if diff -q cdefdep.tmp cdefdep ; then echo same ; else $(CP) cdefdep.tmp cdefdep ; fi '