dedd963f5a35c0965d8e3ff301e9762bf5442235
1 #
2 # This file is common makefile for building UDMA memcpy test app for both TI-RTOS/baremetal
3 #
4 SRCDIR = .
5 INCDIR =
7 # List all the external components/interfaces, whose interface header files
8 # need to be included for this component
9 INCLUDE_EXTERNAL_INTERFACES = pdk
11 # List all the components required by the application
12 COMP_LIST_COMMON = csl udma sciclient udma_apputils
13 COMP_LIST_COMMON += board uart i2c
14 ifeq ($(BUILD_OS_TYPE), baremetal)
15 COMP_LIST_COMMON += osal_nonos
16 ifeq ($(ARCH),c66x)
17 COMP_LIST_COMMON += csl_intc
18 else
19 ifneq ($(ARCH),c71)
20 COMP_LIST_COMMON += csl_init
21 endif
22 endif
23 SRCS_COMMON = main_baremetal.c
24 ifeq ($(ISA),$(filter $(ISA), a53 a72))
25 LNKFLAGS_LOCAL_$(CORE) += --entry Entry
26 endif
27 else
28 INCLUDE_EXTERNAL_INTERFACES += xdc bios
29 COMP_LIST_COMMON += osal_tirtos
30 SRCS_COMMON = main_tirtos.c
31 XDC_CFG_FILE_$(CORE) = $(PDK_INSTALL_PATH)/ti/build/$(SOC)/sysbios_$(ISA).cfg
33 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200))
34 ifeq ($(ISA),$(filter $(ISA), r5f))
35 COMP_LIST_COMMON += copyvecs
36 endif
37 endif
39 endif
41 # Common source files and CFLAGS across all platforms and cores
42 PACKAGE_SRCS_COMMON = .
43 SRCS_COMMON += udma_memcpy_test.c
45 CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS)
47 # Core/SoC/platform specific source files and CFLAGS
48 # Example:
49 # SRCS_<core/SoC/platform-name> =
50 # CFLAGS_LOCAL_<core/SoC/platform-name> =
52 # Include common make files
53 ifeq ($(MAKERULEDIR), )
54 #Makerule path not defined, define this and assume relative path from ROOTDIR
55 MAKERULEDIR := $(ROOTDIR)/ti/build/makerules
56 export MAKERULEDIR
57 endif
58 include $(MAKERULEDIR)/common.mk
60 # OBJs and libraries are built by using rule defined in rules_<target>.mk
61 # and need not be explicitly specified here
63 # Nothing beyond this point