]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/drv/mmcsd/test/MMCSD_EMMC_DMA_TestApp/makefile
SITSW-225: Make copyvecs as a library that the application can link to
[processor-sdk/pdk.git] / packages / ti / drv / mmcsd / test / MMCSD_EMMC_DMA_TestApp / makefile
1 # Makefile for EMMC DMA unit test app
2 ifeq ($(RULES_MAKE), )
3 include $(PDK_INSTALL_PATH)/ti/build/Rules.make
4 else
5 include $(RULES_MAKE)
6 endif
8 export DISABLE_RECURSE_DEPS
10 #Name of the directory created under packages/ti/binary/
11 APP_NAME = MMCSD_EMMC_DMA_TestApp
12 # Name of the binary if different from the default (APP_NAME)_$(BOARD_$(CORE)_<build_profile>
13 LOCAL_APP_NAME = MMCSD_$(BOARD)_EMMC_DMA_$(CORE)TestApp
15 ifeq ($(SOC),$(filter $(SOC), am65xx))
16 SRCDIR = ../src ../../
17 INCDIR = ../src ../include ../../
18 # Common source files across all platforms and cores
19 SRCS_COMMON += main_emmc.c profiling.c
21 ifeq ($(CORE),$(filter $(CORE), mpu1_0))
22 # Enable XDC build for application by providing XDC CFG File per core
23 XDC_CFG_FILE_$(CORE) = ../am65xx/a53/mmcsdUnitTest_a53.cfg
24 endif
26 ifeq ($(CORE),$(filter $(CORE), mcu1_0))
27 # Enable XDC build for application by providing XDC CFG File per core
28 XDC_CFG_FILE_$(CORE) = ../am65xx/r5/mmcsdUnitTest_r5.cfg
29 endif
31 endif
33 ifeq ($(SOC),$(filter $(SOC), j721e j7200))
34 SRCDIR = ../src ../../
35 INCDIR = ../src ../include ../../
36 # Common source files across all platforms and cores
37 SRCS_COMMON += main_emmc.c
39 XDC_CFG_FILE_$(CORE) = $(PDK_INSTALL_PATH)/ti/build/$(SOC)/sysbios_$(ISA).cfg
41 endif
43 # List all the external components/interfaces, whose interface header files
44 # need to be included for this component
45 INCLUDE_EXTERNAL_INTERFACES = bios xdc pdk
47 # List all the components required by the application
48 COMP_LIST_COMMON = csl osal_tirtos uart i2c board mmcsd
50 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200))
51 COMP_LIST_COMMON += sciclient
52 endif
54 CFLAGS_MMCSD_UT += -DMMCSD_ADMA_ENABLED
56 # CFLAGS_MMCSD_UT += -DIO_CONSOLE
57 # am65xx build
58 ifeq ($(BOARD),$(filter $(BOARD), am65xx-sim))
59 CFLAGS_MMCSD_UT    += -DsimAM65xx
60 endif
62 # EVM build
63 ifeq ($(BOARD),$(filter $(BOARD), am65xx-evm))
64 CFLAGS_MMCSD_UT += -DevmAM65xx
65 endif
67 # j7 build
68 ifeq ($(BOARD),$(filter $(BOARD), j721e-evm))
69 CFLAGS_MMCSD_UT += -Dj721e_sim
70 endif
72 PACKAGE_SRCS_COMMON = ../
73 CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS) $(CFLAGS_MMCSD_UT)
75 # Enable copy of vectors
76 ifeq ($(ISA),$(filter $(ISA), r5f))
77   COMP_LIST_COMMON += copyvecs
78 endif
80 # Core/SoC/platform specific source files and CFLAGS
81 # Example:
82 #   SRCS_<core/SoC/platform-name> =
83 #   CFLAGS_LOCAL_<core/SoC/platform-name> =
85 # Include common make files
86 ifeq ($(MAKERULEDIR), )
87 #Makerule path not defined, define this and assume relative path from ROOTDIR
88   MAKERULEDIR := $(ROOTDIR)/ti/build/makerules
89   export MAKERULEDIR
90 endif
91 include $(MAKERULEDIR)/common.mk
93 # OBJs and libraries are built by using rule defined in rules_<target>.mk
94 #     and need not be explicitly specified here
96 # Nothing beyond this point