]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/ibl.git/blob - src/device/c64x/make/makefile
Merge branch 'newI2cMap' into tmp-mike2
[keystone-rtos/ibl.git] / src / device / c64x / make / makefile
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 c6472init.c
19 else 
20  ifeq ($(TARGET),c6455)
21   CSRC= c6455.c c6455init.c
22  else
23   ifeq ($(TARGET),c6474)
24    CSRC= c6474.c c6474init.c
25   else
26    ifeq ($(TARGET),c6474l)
27     CSRC= c6474l.c
28    else
29     CSRC= c6472.c c6455.c c6474.c c6474l.c 
30    endif 
31   endif
32  endif
33 endif
35 .PHONY: device
38 include $(IBL_ROOT)/make/$(ARCH)/makeeco.mk
41 C6X_C_DIR=   $(IBL_ROOT)/device/$(TARGET)
42 C6X_C_DIR+= ;$(IBL_ROOT)/device
43 C6X_C_DIR+= ;$(IBL_ROOT)
44 C6X_C_DIR+= ;$(IBL_ROOT)/arch/$(ARCH)
45 C6X_C_DIR+= ;$(STDINC)
46 C6X_C_DIR+= ;$(IBL_ROOT)/hw/plls
47 C6X_C_DIR+= ;$(IBL_ROOT)/hw/pscs
48 C6X_C_DIR+= ;$(IBL_ROOT)/hw/gpio
49 C6X_C_DIR+= ;$(IBL_ROOT)/hw/ddrs/emif31
50 export C6X_C_DIR
52 vpath % $(IBL_ROOT)/device/$(TARGET)
55 device: gen_cdefdep makefile $(OBJS)
58 $(OBJS): cdefdep
61 gen_cdefdep:
62         @echo Checking command line dependencies
63         @echo $(TARGET) $(ARCH) $(CDEFS) $(DEBUG) > cdefdep.tmp
64         @sh -c 'if diff -q cdefdep.tmp cdefdep ; then echo same ; else $(CP) cdefdep.tmp cdefdep ; fi '