[processor-sdk/pdk.git] / packages / ti / drv / emac / test / EmacLoopbackTest / am65xx / cpsw / makefile
1 # Makefile for EMAC sample app
2 include $(PDK_INSTALL_PATH)/ti/build/Rules.make
4 ifeq ($(SMP), enable)
5 #Name of the directory created under packages/ti/binary/
6 APP_NAME = Emac_Cpsw_Smp_TestApp
8 # Name of the binary if different from the default (APP_NAME)_$(BOARD_$(CORE)_<build_profile>
9 LOCAL_APP_NAME = EMAC_Cpsw_$(BOARD)_$(CORE)_Smp_TestApp
10 else
11 #Name of the directory created under packages/ti/binary/
12 APP_NAME = Emac_Cpsw_TestApp
14 # Name of the binary if different from the default (APP_NAME)_$(BOARD_$(CORE)_<build_profile>
15 LOCAL_APP_NAME = EMAC_Cpsw_$(BOARD)_$(CORE)TestApp
16 endif
18 SRCDIR += $(PDK_INSTALL_PATH)/ti/build/unit-test/Unity/src $(PDK_INSTALL_PATH)/ti/build/unit-test/config
19 INCDIR += $(PDK_INSTALL_PATH)/ti/build/unit-test/Unity/src $(PDK_INSTALL_PATH)/ti/build/unit-test/config
21 SRCS_COMMON += main_am65xx.c test_utils_k3.c unity_config.c unity.c
23 # Enable copy of vectors
24 ifeq ($(ISA),$(filter $(ISA), r5f))
25 COMP_LIST_COMMON += copyvecs
26 endif
28 # List all the external components/interfaces, whose interface header files
29 # need to be included for this component
30 INCLUDE_EXTERNAL_INTERFACES = bios xdc pdk
32 # List all the components required by the application
33 COMP_LIST_COMMON = emac uart uart_console osal_tirtos csl board udma sciclient
36 ifeq ($(CORE),$(filter $(CORE), mpu1_0))
37 # Enable XDC build for application by providing XDC CFG File per core
38 ifeq ($(SMP), enable)
39 XDC_CFG_FILE_$(CORE) = $(PDK_INSTALL_PATH)/ti/build/am65xx/sysbios_smp_a53.cfg
40 else
41 XDC_CFG_FILE_$(CORE) = ./am65xx/emacUnitTest_a53.cfg
42 endif
43 EXTERNAL_LNKCMD_FILE_LOCAL = $(pdk_PATH)/ti/drv/emac/test/EmacLoopbackTest/am65xx/emac_linker_a53.lds
44 endif
46 ifeq ($(CORE),$(filter $(CORE), mcu1_0))
47 # Enable XDC build for application by providing XDC CFG File per core
48 XDC_CFG_FILE_$(CORE) = ./am65xx/emacUnitTest_r5.cfg
49 EXTERNAL_LNKCMD_FILE_LOCAL = $(pdk_PATH)/ti/drv/emac/test/EmacLoopbackTest/am65xx/emac_linker_r5.lds
50 SRCS_ASM_COMMON += dlfo_workaround.asm
51 endif
52 PACKAGE_SRCS_COMMON = .
53 CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS) -DEMAC_TEST_APP_CPSW -DUNITY_INCLUDE_CONFIG_H
55 # Include common make files
56 ifeq ($(MAKERULEDIR), )
57 #Makerule path not defined, define this and assume relative path from ROOTDIR
58 MAKERULEDIR := $(ROOTDIR)/ti/build/makerules
59 export MAKERULEDIR
60 endif
61 include $(MAKERULEDIR)/common.mk
63 # OBJs and libraries are built by using rule defined in rules_<target>.mk
64 # and need not be explicitly specified here
66 # Nothing beyond this point