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 ifeq ($(BUILD_OS_TYPE), baremetal)
12 COMP_LIST_COMMON = $(PDK_COMMON_BAREMETAL_COMP)
13 SRCS_COMMON = main_baremetal.c
14 ifeq ($(ISA),$(filter $(ISA), a53 a72))
15 LNKFLAGS_LOCAL_$(CORE) += --entry Entry
16 endif
17 else
18 COMP_LIST_COMMON = $(PDK_COMMON_TIRTOS_COMP)
19 INCLUDE_EXTERNAL_INTERFACES += xdc bios
20 SRCS_COMMON = main_tirtos.c
21 XDC_CFG_FILE_$(CORE) = $(PDK_INSTALL_PATH)/ti/build/$(SOC)/sysbios_$(ISA).cfg
22 endif
24 # List all the specific components required by the application
25 COMP_LIST_COMMON += udma_apputils
27 # Common source files and CFLAGS across all platforms and cores
28 PACKAGE_SRCS_COMMON = .
29 SRCS_COMMON += udma_memcpy_test.c
31 CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS)
33 # Core/SoC/platform specific source files and CFLAGS
34 # Example:
35 # SRCS_<core/SoC/platform-name> =
36 # CFLAGS_LOCAL_<core/SoC/platform-name> =
38 # Include common make files
39 ifeq ($(MAKERULEDIR), )
40 #Makerule path not defined, define this and assume relative path from ROOTDIR
41 MAKERULEDIR := $(ROOTDIR)/ti/build/makerules
42 export MAKERULEDIR
43 endif
44 include $(MAKERULEDIR)/common.mk
46 # OBJs and libraries are built by using rule defined in rules_<target>.mk
47 # and need not be explicitly specified here
49 # Nothing beyond this point