TDA2ex and other core support needed for PDK
[keystone-rtos/edma3_lld.git] / packages / ti / sdo / edma3 / drv / sample / makefile
1 # Makefile for EDMA3 LLD DRV Sample
2 -include $(MAKERULEDIR)/../Rules.make
4 MODULE_NAME = edma3_lld_drv_sample
6 SRCDIR = src src/platforms
7 INCDIR = . ../../../../.. src
9 # List all the external components/interfaces, whose interface header files
10 #  need to be included for this component
11 INCLUDE_EXTERNAL_INTERFACES = bios xdc
13 # Common source files and CFLAGS across all platforms and cores
14 ifeq ($(CORE),c6xdsp)
15 SRCS_COMMON = sample_cs.c sample_init.c
16 else
17 SRCS_COMMON = sample_arm_cs.c sample_arm_init.c
18 endif
19 ifeq ($(CORE),c6xdsp)
20 CFLAGS_LOCAL_COMMON = -mi10
21 endif
23 # Core/SoC/platform specific source files and CFLAGS
24 # Example:
25 #   SRCS_<core/SoC/platform-name> =
26 #   CFLAGS_LOCAL_<core/SoC/platform-name> =
27 ifeq ($(CORE),$(filter $(CORE), c66x c66xdsp_1 c66xdsp_2 c6xdsp c66xdsp))
28 SRCS_c6472-evm = sample_c6472_cfg.c sample_c6472_int_reg.c
29 SRCS_tci6486-evm = sample_tci6486_cfg.c sample_tci6486_int_reg.c
30 SRCS_tci6608-sim = sample_tci6608_cfg.c sample_tci6608_int_reg.c
31 SRCS_tci6616-sim = sample_tci6616_cfg.c sample_tci6616_int_reg.c
32 SRCS_tci6614-sim = sample_tci6614_cfg.c sample_tci6614_int_reg.c
33 SRCS_c6657-sim   = sample_c6657_cfg.c sample_c6657_int_reg.c
34 SRCS_tci6638k2k-sim = sample_tci6638k2k_cfg.c sample_tci6638k2k_int_reg.c
35 SRCS_c6670-evm   = sample_c6670_cfg.c sample_c6670_int_reg.c
36 SRCS_c6678-evm   = sample_c6678_cfg.c sample_c6678_int_reg.c
37 SRCS_tci6614-evm = sample_tci6614_cfg.c sample_tci6614_int_reg.c
38 SRCS_c6657-evm   = sample_c6657_cfg.c sample_c6657_int_reg.c
39 SRCS_tci6638k2k-evm = sample_tci6638k2k_cfg.c sample_tci6638k2k_int_reg.c
40 SRCS_tci6636k2h-evm = sample_tci6636k2h_cfg.c sample_tci6636k2h_int_reg.c
41 SRCS_tci6630k2l-evm = sample_tci6630k2l_cfg.c sample_tci6630k2l_int_reg.c
42 SRCS_c66ak2e-evm = sample_c66ak2e_cfg.c sample_c66ak2e_int_reg.c
43 SRCS_tci66ak2g02-evm = sample_tci66ak2g02_cfg.c sample_tci66ak2g02_int_reg.c
44 SRCS_omapl138-evm = sample_omapl138_cfg.c sample_omapl138_int_reg.c
45 SRCS_ti814x-evm = sample_ti814x_cfg.c sample_ti814x_int_reg.c
46 SRCS_omap4-evm   = sample_omap4_cfg.c sample_omap4_int_reg.c
47 CFLAGS_LOCAL_ti816x-evm = -DBUILD_NETRA_DSP
48 CFLAGS_LOCAL_ti814x-evm = -DBUILD_CENTAURUS_DSP
49 SRCS_ti816x-evm = sample_ti816x_cfg.c sample_ti816x_int_reg.c
50 CFLAGS_LOCAL_c6a811x-evm = -DBUILD_C6A811X_DSP
51 SRCS_c6a811x-evm = sample_c6a811x_cfg.c sample_c6a811x_int_reg.c
52 ifeq ($(SOC),$(filter $(SOC), tda2xx tda2ex))
53 SRCS_COMMON += sample_tda2xx_cfg.c sample_tda2xx_int_reg.c
54 CFLAGS_LOCAL_COMMON += -DBUILD_TDA2XX_DSP
55 endif
56 SRCS_tda3xx = sample_tda3xx_cfg.c sample_tda3xx_int_reg.c
57 CFLAGS_LOCAL_tda3xx = -DBUILD_TDA3XX_DSP
58 CFLAGS_LOCAL_tci6636k2h-evm = -DBUILD_K2H_DSP
59 CFLAGS_LOCAL_tci6638k2k-evm = -DBUILD_K2K_DSP
60 CFLAGS_LOCAL_c66ak2e-evm = -DBUILD_K2E_DSP
61 CFLAGS_LOCAL_tci6630k2l-evm = -DBUILD_K2L_DSP
62 CFLAGS_LOCAL_tci66ak2g02-evm = -DBUILD_K2G_DSP
63 else
64 SRCS_omapl138-evm = sample_omapl138_arm_cfg.c sample_omapl138_arm_int_reg.c
65 ifeq ($(SOC),$(filter $(SOC), tda2xx tda2ex))
66 SRCS_COMMON += sample_tda2xx_cfg.c sample_tda2xx_arm_int_reg.c
67 endif
68 SRCS_tda3xx = sample_tda3xx_cfg.c sample_tda3xx_arm_int_reg.c
69 SRCS_tci6636k2h-evm = sample_tci6636k2h_cfg.c sample_tci6636k2h_arm_int_reg.c
70 SRCS_c66ak2e-evm = sample_c66ak2e_cfg.c sample_c66ak2e_arm_int_reg.c
71 SRCS_tci6630k2l-evm = sample_tci6630k2l_cfg.c sample_tci6630k2l_arm_int_reg.c
72 SRCS_tci66ak2g02-evm = sample_tci66ak2g02_cfg.c sample_tci66ak2g02_arm_int_reg.c
73 endif
75 ifeq ($(CORE),a8host)
76 CFLAGS_LOCAL_ti816x-evm = -DBUILD_NETRA_A8
77 CFLAGS_LOCAL_ti814x-evm = -DBUILD_CENTAURUS_A8
78 CFLAGS_LOCAL_c6a811x-evm = -DBUILD_C6A811X_A8
79 SRCS_ti814x-evm = sample_ti814x_cfg.c sample_ti814x_arm_int_reg.c
80 SRCS_ti816x-evm = sample_ti816x_cfg.c sample_ti816x_arm_int_reg.c
81 SRCS_c6a811x-evm = sample_c6a811x_cfg.c sample_c6a811x_arm_int_reg.c
82 SRCS_am335x-evm = sample_am335x_cfg.c sample_am335x_arm_int_reg.c
83 CFLAGS_LOCAL_am335x = -DBUILD_AM335X_A8
84 endif
86 ifeq ($(CORE),arm9)
87 SRCS_am437x-evm = sample_am437x_cfg.c sample_am437x_arm_int_reg.c
88 CFLAGS_LOCAL_am437x = -DBUILD_AM437X_A9
89 endif
91 ifeq ($(CORE),m3video)
92 CFLAGS_LOCAL_ti816x-evm = -DBUILD_NETRA_M3VIDEO
93 CFLAGS_LOCAL_ti814x-evm = -DBUILD_CENTAURUS_M3VIDEO
94 CFLAGS_LOCAL_c6a811x-evm = -DBUILD_C6A811X_M3VIDEO
95 SRCS_ti816x-evm = sample_ti816x_cfg.c sample_ti816x_arm_int_reg.c
96 SRCS_ti814x-evm = sample_ti814x_cfg.c sample_ti814x_arm_int_reg.c
97 SRCS_c6a811x-evm = sample_c6a811x_cfg.c sample_c6a811x_arm_int_reg.c
98 endif
100 ifeq ($(CORE),m3vpss)
101 CFLAGS_LOCAL_ti816x-evm = -DBUILD_NETRA_M3VPSS
102 CFLAGS_LOCAL_ti814x-evm = -DBUILD_CENTAURUS_M3VPSS
103 CFLAGS_LOCAL_c6a811x-evm = -DBUILD_C6A811X_M3VPSS
104 SRCS_ti816x-evm = sample_ti816x_cfg.c sample_ti816x_arm_int_reg.c
105 SRCS_ti814x-evm = sample_ti814x_cfg.c sample_ti814x_arm_int_reg.c
106 SRCS_c6a811x-evm = sample_c6a811x_cfg.c sample_c6a811x_arm_int_reg.c
107 endif
109 ifeq ($(CORE),$(filter $(CORE), ipu1_0 ipu1_1 ipu2_0 ipu2_1 m4 m4vpss))
110 ifeq ($(SOC),$(filter $(SOC), tda2xx tda2ex))
111 CFLAGS_LOCAL_COMMON += -DBUILD_TDA2XX_IPU
112 endif
113 CFLAGS_LOCAL_tda3xx = -DBUILD_TDA3XX_IPU
114 endif
116 ifeq ($(CORE),$(filter $(CORE), a15_0 a15host))
117 ifeq ($(SOC),$(filter $(SOC), tda2xx tda2ex))
118 CFLAGS_LOCAL_COMMON += -DBUILD_TDA2XX_MPU
119 endif
120 CFLAGS_LOCAL_tci6636k2h-evm =  -DBUILD_K2H_MPU
121 CFLAGS_LOCAL_tci6638k2k-evm =  -DBUILD_K2K_MPU
122 CFLAGS_LOCAL_c66ak2e-evm =  -DBUILD_K2E_MPU
123 CFLAGS_LOCAL_tci6630k2l-evm =  -DBUILD_K2L_MPU
124 CFLAGS_LOCAL_tci66ak2g02-evm =  -DBUILD_K2G_MPU
125 endif
127 ifeq ($(CORE),$(filter $(CORE), arp32_1 arp32_2 arp32_3 arp32_4 eve))
128 ifeq ($(SOC),$(filter $(SOC), tda2xx tda2ex))
129 CFLAGS_LOCAL_COMMON += -DBUILD_TDA2XX_EVE
130 endif
131 CFLAGS_LOCAL_tda3xx = -DBUILD_TDA3XX_EVE
132 endif
134 SRCS_c6748-evm = sample_c6748_cfg.c sample_c6748_int_reg.c
135 SRCS_da830-evm = sample_da830_cfg.c sample_da830_int_reg.c
138 CFLAGS_LOCAL_ti814x-evm += -DDMA_XBAR_AVAILABLE
139 CFLAGS_LOCAL_c6a811x-evm += -DDMA_XBAR_AVAILABLE
140 ifeq ($(SOC),$(filter $(SOC), tda2xx tda2ex))
141 CFLAGS_LOCAL_COMMON += -DDMA_XBAR_AVAILABLE
142 endif
143 CFLAGS_LOCAL_tda3xx += -DDMA_XBAR_AVAILABLE
145 # Include common make files
146 ifeq ($(MAKERULEDIR), )
147 #Makerule path not defined, define this and assume relative path from ROOTDIR
148   MAKERULEDIR := $(ROOTDIR)/makerules
149   export MAKERULEDIR
150 endif
151 include $(MAKERULEDIR)/common.mk
153 # OBJs and libraries are built by using rule defined in rules_<target>.mk
154 #     and need not be explicitly specified here
156 # Nothing beyond this point