Revert "Include rules.make file"
[keystone-rtos/edma3_lld.git] / packages / ti / sdo / edma3 / rm / sample / makefile
1 # Makefile for EDMA3 LLD RM Sample
3 MODULE_NAME = edma3_lld_rm_sample
5 SRCDIR = src src/platforms
6 INCDIR = . ../../../../.. src
8 # List all the external components/interfaces, whose interface header files
9 #  need to be included for this component
10 INCLUDE_EXTERNAL_INTERFACES = bios xdc
12 # Common source files and CFLAGS across all platforms and cores
13 ifeq ($(CORE),c6xdsp)
14 SRCS_COMMON = sample_cs.c sample_init.c
15 else
16 SRCS_COMMON = sample_arm_cs.c sample_arm_init.c
17 endif
18 ifeq ($(CORE),c6xdsp)
19 CFLAGS_LOCAL_COMMON = -mi10
20 endif
22 # Core/SoC/platform specific source files and CFLAGS
23 # Example:
24 #   SRCS_<core/SoC/platform-name> =
25 #   CFLAGS_LOCAL_<core/SoC/platform-name> =
26 ifeq ($(CORE),$(filter $(CORE), c6xdsp c66xdsp))
27 SRCS_c6472-evm = sample_c6472_cfg.c sample_c6472_int_reg.c
28 SRCS_tci6486-evm = sample_tci6486_cfg.c sample_tci6486_int_reg.c
29 SRCS_tci6608-sim = sample_tci6608_cfg.c sample_tci6608_int_reg.c
30 SRCS_tci6616-sim = sample_tci6616_cfg.c sample_tci6616_int_reg.c
31 SRCS_tci6614-sim = sample_tci6614_cfg.c sample_tci6614_int_reg.c
32 SRCS_c6657-sim   = sample_c6657_cfg.c sample_c6657_int_reg.c
33 SRCS_tci6638k2k-sim = sample_tci6638k2k_cfg.c sample_tci6638k2k_int_reg.c
34 SRCS_c6670-evm   = sample_c6670_cfg.c sample_c6670_int_reg.c
35 SRCS_c6678-evm   = sample_c6678_cfg.c sample_c6678_int_reg.c
36 SRCS_tci6614-evm = sample_tci6614_cfg.c sample_tci6614_int_reg.c
37 SRCS_c6657-evm   = sample_c6657_cfg.c sample_c6657_int_reg.c
38 SRCS_tci6638k2k-evm = sample_tci6638k2k_cfg.c sample_tci6638k2k_int_reg.c
39 SRCS_tci6636k2h-evm = sample_tci6636k2h_cfg.c sample_tci6636k2h_int_reg.c
40 SRCS_tci6630k2l-evm = sample_tci6630k2l_cfg.c sample_tci6630k2l_int_reg.c
41 SRCS_c66ak2e-evm   = sample_c66ak2e_cfg.c sample_c66ak2e_int_reg.c
42 SRCS_tci66ak2g02-evm   = sample_tci66ak2g02_cfg.c sample_tci66ak2g02_int_reg.c
43 SRCS_omapl138-evm = sample_omapl138_cfg.c sample_omapl138_int_reg.c
44 SRCS_ti814x-evm = sample_ti814x_cfg.c sample_ti814x_int_reg.c
45 SRCS_ti816x-evm = sample_ti816x_cfg.c sample_ti816x_int_reg.c
46 SRCS_ti816x-sim = sample_ti816x_cfg.c sample_ti816x_int_reg.c
47 CFLAGS_LOCAL_c6a811x-evm = -DBUILD_C6A811X_DSP
48 SRCS_c6a811x-evm = sample_c6a811x_cfg.c sample_c6a811x_int_reg.c
49 CFLAGS_LOCAL_tci6636k2h-evm = -DBUILD_K2H_DSP
50 CFLAGS_LOCAL_tci6638k2k-evm = -DBUILD_K2K_DSP
51 CFLAGS_LOCAL_c66ak2e-evm = -DBUILD_K2E_DSP
52 CFLAGS_LOCAL_tci6630k2l-evm = -DBUILD_K2L_DSP
53 CFLAGS_LOCAL_tci66ak2g02-evm = -DBUILD_K2G_DSP
54 else
55 SRCS_omapl138-evm = sample_omapl138_arm_cfg.c sample_omapl138_arm_int_reg.c
56 SRCS_tda2xx = sample_tda2xx_cfg.c sample_tda2xx_arm_int_reg.c
57 SRCS_tda3xx = sample_tda3xx_cfg.c sample_tda3xx_arm_int_reg.c
58 SRCS_tci6636k2h-evm = sample_tci6636k2h_cfg.c sample_tci6636k2h_arm_int_reg.c
59 SRCS_c66ak2e-evm = sample_c66ak2e_cfg.c sample_c66ak2e_arm_int_reg.c
60 SRCS_tci6630k2l-evm = sample_tci6630k2l_cfg.c sample_tci6630k2l_arm_int_reg.c
61 SRCS_tci66ak2g02-evm = sample_tci66ak2g02_cfg.c sample_tci66ak2g02_arm_int_reg.c
62 endif
63 ifeq ($(CORE),a8host)
64 CFLAGS_LOCAL_c6a811x-evm = -DBUILD_C6A811X_A8
65 SRCS_ti814x-evm = sample_ti814x_arm_cfg.c sample_ti814x_arm_int_reg.c
66 SRCS_ti816x-evm = sample_ti814x_arm_cfg.c sample_ti814x_arm_int_reg.c
67 SRCS_c6a811x-evm = sample_c6a811x_cfg.c sample_c6a811x_arm_int_reg.c
68 SRCS_am335x-evm = sample_am335x_cfg.c sample_am335x_arm_int_reg.c
69 endif
70 ifeq ($(CORE),arm9)
71 SRCS_am437x-evm = sample_am437x_cfg.c sample_am437x_arm_int_reg.c
72 endif
73 ifeq ($(CORE),m3video)
74 CFLAGS_LOCAL_c6a811x-evm = -DBUILD_C6A811X_M3VIDEO
75 SRCS_ti816x-evm = sample_ti816x_m3video_cfg.c sample_ti816x_m3video_int_reg.c
76 SRCS_ti816x-sim = sample_ti816x_m3video_cfg.c sample_ti816x_m3video_int_reg.c
77 SRCS_ti814x-evm = sample_ti814x_m3video_cfg.c sample_ti814x_m3video_int_reg.c
78 SRCS_c6a811x-evm = sample_c6a811x_cfg.c sample_c6a811x_arm_int_reg.c
79 endif
80 ifeq ($(CORE),m3vpss)
81 CFLAGS_LOCAL_c6a811x-evm = -DBUILD_C6A811X_M3VPSS
82 SRCS_ti816x-evm = sample_ti816x_m3vpss_cfg.c sample_ti816x_m3vpss_int_reg.c
83 SRCS_ti816x-sim = sample_ti816x_m3vpss_cfg.c sample_ti816x_m3vpss_int_reg.c
84 SRCS_ti814x-evm = sample_ti814x_m3video_cfg.c sample_ti814x_m3video_int_reg.c
85 SRCS_c6a811x-evm = sample_c6a811x_cfg.c sample_c6a811x_arm_int_reg.c
86 endif
87 ifeq ($(CORE),a15host)
88 CFLAGS_LOCAL_tda2xx = -DBUILD_TDA2XX_MPU
89 CFLAGS_LOCAL_tci6636k2h-evm =  -DBUILD_K2H_MPU
90 CFLAGS_LOCAL_tci6638k2k-evm =  -DBUILD_K2K_MPU
91 CFLAGS_LOCAL_c66ak2e-evm =  -DBUILD_K2E_MPU
92 CFLAGS_LOCAL_tci6630k2l-evm =  -DBUILD_K2L_MPU
93 CFLAGS_LOCAL_tci66ak2g02-evm =  -DBUILD_K2G_MPU
94 endif
95 SRCS_c6748-evm = sample_c6748_cfg.c sample_c6748_int_reg.c
96 SRCS_da830-evm = sample_da830_cfg.c sample_da830_int_reg.c
98 CFLAGS_LOCAL_ti814x-evm += -DDMA_XBAR_AVAILABLE
99 CFLAGS_LOCAL_c6a811x-evm += -DDMA_XBAR_AVAILABLE
100 CFLAGS_LOCAL_tda2xx += -DDMA_XBAR_AVAILABLE
101 CFLAGS_LOCAL_tda3xx += -DDMA_XBAR_AVAILABLE
102 # Include common make files
103 ifeq ($(MAKERULEDIR), )
104 #Makerule path not defined, define this and assume relative path from ROOTDIR
105   MAKERULEDIR := $(ROOTDIR)/makerules
106   export MAKERULEDIR
107 endif
108 include $(MAKERULEDIR)/common.mk
110 # OBJs and libraries are built by using rule defined in rules_<target>.mk
111 #     and need not be explicitly specified here
113 # Nothing beyond this point