8ce720cbe8b501eb8205c9d5b4164828761e467c
1 #*************************************************************************
2 #* FILE PURPOSE: Build the IBL device specific module
3 #*************************************************************************
4 #* FILE NAME: makefile
5 #*
6 #* DESCRIPTION: Makes the device specific modules
7 #*
8 #*************************************************************************
10 ifndef IBL_ROOT
11 export IBL_ROOT=../../..
12 endif
14 ECODIR= $(IBL_ROOT)/device
16 # For no target set CSRC to all sources for clean
17 ifeq ($(TARGET),c6472)
18 CSRC= c6472.c
19 else
20 ifeq ($(TARGET),c6455)
21 CSRC= c6455.c
22 else
23 ifeq ($(TARGET),c6474)
24 CSRC= c6474.c
25 else
26 ifeq ($(TARGET),c6474l)
27 CSRC= c6474l.c
28 else
29 ifeq ($(TARGET),c6457)
30 CSRC= c6457.c
31 else
32 CSRC= c6472.c c6455.c c6474.c c6474l.c c6457.c
33 endif
34 endif
35 endif
36 endif
37 endif
39 .PHONY: device
42 include $(IBL_ROOT)/make/$(ARCH)/makeeco.mk
45 C6X_C_DIR= $(IBL_ROOT)/device/$(TARGET)
46 C6X_C_DIR+= ;$(IBL_ROOT)/device
47 C6X_C_DIR+= ;$(IBL_ROOT)
48 C6X_C_DIR+= ;$(IBL_ROOT)/arch/$(ARCH)
49 C6X_C_DIR+= ;$(STDINC)
50 C6X_C_DIR+= ;$(IBL_ROOT)/hw/plls
51 C6X_C_DIR+= ;$(IBL_ROOT)/hw/pscs
52 C6X_C_DIR+= ;$(IBL_ROOT)/hw/gpio
53 C6X_C_DIR+= ;$(IBL_ROOT)/hw/ddrs/emif31
54 export C6X_C_DIR
56 vpath % $(IBL_ROOT)/device/$(TARGET)
59 device: gen_cdefdep makefile $(OBJS)
62 $(OBJS): cdefdep
65 gen_cdefdep:
66 @echo Checking command line dependencies
67 @echo $(ENDIAN) $(TARGET) $(ARCH) $(CDEFS) $(DEBUG) > cdefdep.tmp
68 @sh -c 'if diff -q cdefdep.tmp cdefdep ; then echo same ; else $(CP) cdefdep.tmp cdefdep ; fi '