]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/ibl.git/blob - src/device/c64x/make/makefile
cc437e863f18822a11e5e256ae8d404be5136439
[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 ifeq ($(TARGET),c6472)
17  CSRC= c6472.c
18 endif
20 ifeq ($(TARGET),c6455)
21  CSRC= c6455.c
22 endif
24 .PHONY: device
27 include $(IBL_ROOT)/make/$(ARCH)/makeeco.mk
30 C6X_C_DIR=   $(IBL_ROOT)/device/$(TARGET)
31 C6X_C_DIR+= ;$(IBL_ROOT)/device
32 C6X_C_DIR+= ;$(IBL_ROOT)
33 C6X_C_DIR+= ;$(IBL_ROOT)/arch/$(ARCH)
34 C6X_C_DIR+= ;$(STDINC)
35 C6X_C_DIR+= ;$(IBL_ROOT)/hw/plls
36 C6X_C_DIR+= ;$(IBL_ROOT)/hw/pscs
37 C6X_C_DIR+= ;$(IBL_ROOT)/hw/gpio
38 C6X_C_DIR+= ;$(IBL_ROOT)/hw/ddrs/emif31
39 export C6X_C_DIR
41 vpath % $(IBL_ROOT)/device/$(TARGET)
44 device: gen_cdefdep makefile $(OBJS)
47 $(OBJS): cdefdep
50 gen_cdefdep:
51         @echo CSRC= $(CSRC)
52         @echo Checking command line dependencies
53         @echo $(ENDIAN) $(TARGET) $(ARCH) > cdefdep.tmp
54         @sh -c 'if diff -q cdefdep.tmp cdefdep ; then echo same ; else $(CP) cdefdep.tmp cdefdep ; fi '