]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/ibl.git/blob - src/make/Makefile
Reset the data and clock rate values for initial i2c boot
[keystone-rtos/ibl.git] / src / make / Makefile
1 #*******************************************************************************************
2 #* FILE PURPOSE: Top level make for the IBL
3 #*******************************************************************************************
4 #* FILE NAME: Makefile
5 #*
6 #* DESCRIPTION: Builds the Intermediate Boot Loader (IBL)
7 #*
8 #*******************************************************************************************
10 IBLS_C6X= c6455 c6472 c6474
13 all:
14         @echo must specify a target [ $(IBLS_C6X) ]
17 # Default options that can be overridden on the command line
18 ifndef ENDIAN
19  ENDIAN=little
20 endif
21 export ENDIAN
23 # The debug flag changes compiler options
24 ifndef DEBUG
25  DEBUG=no
26 endif
27 export DEBUG
29 # The value of I2C_PARAM_BUS_ADDR determines the I2C bus address used
30 # to read the ibl configuration table from. The default values are
31 # 0x50 for little endian and 0x51 for big endian.
33 ifndef I2C_PARAM_BUS_ADDR
34  ifeq ($(ENDIAN),little)
35    I2C_PARAM_BUS_ADDR=0x50
36  else
37    I2C_PARAM_BUS_ADDR=0x51
38  endif
39 endif
41 export I2C_PARAM_BUS_ADDR
44 $(IBLS_C6X):
45         make -f makestg2 ARCH=c64x TARGET=$@ $@ 
48 # will need to add a line for each additional ARCH type added
49 clean:
50         make -f makestg2 clean   ARCH=c64x
51         make -f makestg2 cleant  ARCH=c64x TARGET=c6472
52         make -f makestg2 cleant  ARCH=c64x TARGET=c6474
53         make -C ../util/bconvert       clean
54         make -C ../util/btoccs         clean
55         make -C ../util/i2cConfig      clean
56         make -C ../util/nandWriter     clean
57         make -C ../util/romparse       clean
58         make -C ../test/test1              clean
59         make -C ../test/test2              clean