6c54e2283861231bae10c6e57c4fcb6a5261adcf
[processor-sdk/pdk.git] / packages / ti / drv / mmcsd / test / MMCSD_Baremetal_EMMC_DMA_TestApp / makefile
1 # Makefile for MMCSD Baremetal 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_Baremetal_EMMC_DMA_TestApp
12 # Name of the binary if different from the default (APP_NAME)_$(BOARD_$(CORE)_<build_profile>
13 LOCAL_APP_NAME = MMCSD_Baremetal_EMMC_DMA_$(BOARD)_$(CORE)TestApp
15 BUILD_OS_TYPE = baremetal
17 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200))
18 SRCDIR = ../src ../../
19 INCDIR = ../src ../include ../../
20 # Common source files across all platforms and cores
21 SRCS_COMMON += main_emmc.c
22 endif
24 # List all the external components/interfaces, whose interface header files
25 # need to be included for this component
26 INCLUDE_EXTERNAL_INTERFACES = pdk csl_arch
28 # List all the components required by the application
29 COMP_LIST_COMMON += uart osal_nonos mmcsd i2c board
30 COMP_LIST_c66x = csl_intc
31 COMP_LIST_COMMON += csl
32 COMP_LIST_a15_0 = csl_init
33 COMP_LIST_mpu1_0 = csl_init
34 COMP_LIST_mpu1_1 = csl_init
35 COMP_LIST_mcu1_0 = csl_init
36 COMP_LIST_mcu1_1 = csl_init
38 ifeq ($(SOC),$(filter $(SOC), j721e j7200))
39 COMP_LIST_mcu2_0 = csl_init
40 COMP_LIST_mcu2_1 = csl_init
41 ifeq ($(SOC),$(filter $(SOC), j721e))
42 COMP_LIST_mcu3_0 = csl_init
43 COMP_LIST_mcu3_1 = csl_init
44 endif
45 endif
47 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200))
48 COMP_LIST_COMMON += sciclient
49 endif
51 # Common source files and CFLAGS across all platforms and cores
52 PACKAGE_SRCS_COMMON = .
53 CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS) -DBARE_METAL -DMMCSD_ADMA_ENABLED
55 LNKFLAGS_LOCAL_a15_0 += --entry Entry
56 LNKFLAGS_LOCAL_a8host += --entry Entry
57 LNKFLAGS_LOCAL_a9host += --entry Entry
58 LNKFLAGS_LOCAL_mpu1_0 += --entry Entry
60 # Core/SoC/platform specific source files and CFLAGS
61 # Example:
62 # SRCS_<core/SoC/platform-name> =
63 # CFLAGS_LOCAL_<core/SoC/platform-name> =
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