]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/ibl.git/blob - src/driver/c64x/make/makefile
Debugged the IBL two stage load process
[keystone-rtos/ibl.git] / src / driver / c64x / make / makefile
1 #*******************************************************************
2 #* FILE NAME: makefile
3 #*
4 #* DESCRIPTION: Makes the peripheral driver modules
5 #*
6 #*******************************************************************
8 ifndef IBL_ROOT
9         export IBL_ROOT=../../..
10 endif
12 ECODIR= $(IBL_ROOT)/driver
15 # The ethernet driver
16 ETHDIR= eth
17 ETHSRC= net.c arp.c ip.c udp.c bootp.c tftp.c
19 # The stream driver
20 STRMDIR= stream
21 STRMSRC= stream.c
23 # The timer driver
24 TIMDIR= timer
25 TIMSRC= timer.c
27 # The nand driver
28 NANDDIR= nand
29 NANDSRC= nand.c
31 CSRC= $(ETHSRC) $(STRMSRC) $(TIMSRC) $(NANDSRC)
34 .PHONY: driver
37 include $(IBL_ROOT)/make/$(ARCH)/makeeco.mk
40 C6X_C_DIR=   $(IBL_ROOT)
41 C6X_C_DIR+= ;$(IBL_ROOT)/arch/$(ARCH)
42 C6X_C_DIR+= ;$(ECODIR)
43 C6X_C_DIR+= ;$(STDINC)
44 C6X_C_DIR+= ;$(IBL_ROOT)/driver/timer
45 C6X_C_DIR+= ;$(IBL_ROOT)/driver/stream
46 C6X_C_DIR+= ;$(IBL_ROOT)/driver/nand
47 C6X_C_DIR+= ;$(IBL_ROOT)/cfg/$(TARGET)
48 C6X_C_DIR+= ;$(IBL_ROOT)/hw/timer
49 C6X_C_DIR+= ;$(IBL_ROOT)/hw/nands
50 export C6X_C_DIR
52 vpath % $(subst ;,$(PATHSEP), $(ECODIR)/$(ETHDIR); $(ECODIR)/$(STRMDIR); $(ECODIR)/$(TIMDIR); $(ECODIR)/$(NANDDIR) )
55 driver: gen_cdefdep makefile $(OBJS)
57 $(OBJS): cdefdep
60 gen_cdefdep:
61         @echo Checking command line dependencies
62         @echo $(TARGET) $(CDEFS) $(DEBUG) > cdefdep.tmp
63         @sh -c 'if diff -q cdefdep.tmp cdefdep ; then echo same ; else $(CP) cdefdep.tmp cdefdep ; fi '