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 = $(PDK_COMMON_TIRTOS_COMP)
49 COMP_LIST_COMMON += mmcsd
51 CFLAGS_MMCSD_UT += -DMMCSD_ADMA_ENABLED
53 # CFLAGS_MMCSD_UT += -DIO_CONSOLE
54 # am65xx build
55 ifeq ($(BOARD),$(filter $(BOARD), am65xx-sim))
56 CFLAGS_MMCSD_UT += -DsimAM65xx
57 endif
59 # EVM build
60 ifeq ($(BOARD),$(filter $(BOARD), am65xx-evm))
61 CFLAGS_MMCSD_UT += -DevmAM65xx
62 endif
64 # j7 build
65 ifeq ($(BOARD),$(filter $(BOARD), j721e-evm))
66 CFLAGS_MMCSD_UT += -Dj721e_sim
67 endif
69 PACKAGE_SRCS_COMMON = ../
70 CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS) $(CFLAGS_MMCSD_UT)
72 # Core/SoC/platform specific source files and CFLAGS
73 # Example:
74 # SRCS_<core/SoC/platform-name> =
75 # CFLAGS_LOCAL_<core/SoC/platform-name> =
77 # Include common make files
78 ifeq ($(MAKERULEDIR), )
79 #Makerule path not defined, define this and assume relative path from ROOTDIR
80 MAKERULEDIR := $(ROOTDIR)/ti/build/makerules
81 export MAKERULEDIR
82 endif
83 include $(MAKERULEDIR)/common.mk
85 # OBJs and libraries are built by using rule defined in rules_<target>.mk
86 # and need not be explicitly specified here
88 # Nothing beyond this point