d7b6f25fe00f189336002bba9fe4a1561534ae7a
1 # Makefile for MMCSD EMMC 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_TestApp
12 # Name of the binary if different from the default (APP_NAME)_$(BOARD_$(CORE)_<build_profile>
13 LOCAL_APP_NAME = MMCSD_$(BOARD)_EMMC_$(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 += -DIO_CONSOLE
55 # am65xx build
56 ifeq ($(BOARD),$(filter $(BOARD), am65xx-sim))
57 CFLAGS_MMCSD_UT += -DsimAM65xx
58 endif
60 # EVM build
61 ifeq ($(BOARD),$(filter $(BOARD), am65xx-evm))
62 CFLAGS_MMCSD_UT += -DevmAM65xx
63 endif
65 # j7 build
66 ifeq ($(BOARD),$(filter $(BOARD), j721e-evm))
67 CFLAGS_MMCSD_UT += -Dj721e_sim
68 endif
70 PACKAGE_SRCS_COMMON = ../
71 CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS) $(CFLAGS_MMCSD_UT)
73 # Enable copy of vectors
74 ifeq ($(ISA),$(filter $(ISA), r5f))
75 COMP_LIST_COMMON += copyvecs
76 endif
78 # Core/SoC/platform specific source files and CFLAGS
79 # Example:
80 # SRCS_<core/SoC/platform-name> =
81 # CFLAGS_LOCAL_<core/SoC/platform-name> =
83 # Include common make files
84 ifeq ($(MAKERULEDIR), )
85 #Makerule path not defined, define this and assume relative path from ROOTDIR
86 MAKERULEDIR := $(ROOTDIR)/ti/build/makerules
87 export MAKERULEDIR
88 endif
89 include $(MAKERULEDIR)/common.mk
91 # OBJs and libraries are built by using rule defined in rules_<target>.mk
92 # and need not be explicitly specified here
94 # Nothing beyond this point