]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/drv/i2c/test/eeprom_read/makefile
i2c-lld: add to PDK
[processor-sdk/pdk.git] / packages / ti / drv / i2c / test / eeprom_read / makefile
1 # Makefile for I2C EEPROM unit test app
2 include $(PDK_INSTALL_PATH)/ti/build/Rules.make
4 ifeq ($(IS_BAREMETAL),yes)
5 BUILD_OS_TYPE = baremetal
6 CFLAGS_OS_DEFINES =
7 LNKFLAGS_LOCAL_mpu1_0  += --entry Entry
8 COMP_LIST_COMMON =  csl_init osal_nonos
9 EXTERNAL_INTERFACES =
10 XDC_CFG_FILE_mpu1_0 =
11 XDC_CFG_FILE_mcu1_0 =
12 else
13 BUILD_OS_TYPE = tirtos
14 CFLAGS_OS_DEFINES = -DUSE_BIOS
15 EXTERNAL_INTERFACES = bios xdc
16 COMP_LIST_COMMON    = osal_tirtos
17 ifeq ($(SOC),$(filter $(SOC), am65xx))
18 XDC_CFG_FILE_mpu1_0 = ./$(SOC)/i2cEepromTest_$(ISA).cfg
19 XDC_CFG_FILE_mcu1_0 = ./$(SOC)/i2cEepromTest_r5.cfg
20 endif
21 ifeq ($(SOC),$(filter $(SOC), j721e))
22 XDC_CFG_FILE_$(CORE) = $(PDK_INSTALL_PATH)/ti/build/$(SOC)/sysbios_$(ISA).cfg
23 endif
24 endif
26 ifeq ($(BUILD_OS_TYPE), tirtos)
27 I2C_OS_TESTPREFIX=
28 else
29 I2C_OS_TESTPREFIX=_Baremetal
30 endif
32 ifeq ($(SMP), enable)
33     #Name of the directory created under packages/ti/binary/
34     APP_NAME = I2C$(I2C_OS_TESTPREFIX)_Eeprom_SMP_TestApp
35     # Name of the binary if different from the default (APP_NAME)_$(BOARD_$(CORE)_<build_profile>
36     LOCAL_APP_NAME =  I2C$(I2C_OS_TESTPREFIX)_Eeprom_$(BOARD)_$(CORE)_SMP_TestApp
37 else
38     #Name of the directory created under packages/ti/binary/
39     APP_NAME = I2C$(I2C_OS_TESTPREFIX)_Eeprom_TestApp
40     # Name of the binary if different from the default (APP_NAME)_$(BOARD_$(CORE)_<build_profile>
41     LOCAL_APP_NAME =  I2C$(I2C_OS_TESTPREFIX)_Eeprom_$(BOARD)_$(CORE)TestApp
42 endif
44 SRCDIR = . src
45 INCDIR = . src
46 # Common source files across all platforms and cores
47 SRCS_COMMON += main_test.c
49 # List all the external components/interfaces, whose interface header files
50 # need to be included for this component
51 INCLUDE_EXTERNAL_INTERFACES = pdk $(EXTERNAL_INTERFACES)
53 # List all the components required by the application
54 #COMP_LIST_COMMON  = i2c_profile uart board csl profiling
55 COMP_LIST_COMMON  += i2c uart board csl
57 ifeq ($(SOC),$(filter $(SOC), am65xx j721e))
58 COMP_LIST_COMMON += sciclient
59 endif
61 CFLAGS_I2C_UT =
63 PACKAGE_SRCS_COMMON = src makefile $(SOC)
64 CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS) $(CFLAGS_I2C_UT) $(CFLAGS_OS_DEFINES)
66 # Core/SoC/platform specific source files and CFLAGS
67 # Example:
68 #   SRCS_<core/SoC/platform-name> =
69 #   CFLAGS_LOCAL_<core/SoC/platform-name> =
71 # Include common make files
72 ifeq ($(MAKERULEDIR), )
73 #Makerule path not defined, define this and assume relative path from ROOTDIR
74   MAKERULEDIR := $(ROOTDIR)/ti/build/makerules
75   export MAKERULEDIR
76 endif
77 include $(MAKERULEDIR)/common.mk
79 # OBJs and libraries are built by using rule defined in rules_<target>.mk
80 #     and need not be explicitly specified here
82 # Nothing beyond this point