Merged from master, added a15 support for k2l, c66ak2e
[keystone-rtos/edma3_lld.git] / packages / ti / sdo / edma3 / drv / sample / makefile
1 # Makefile for EDMA3 LLD DRV Sample
3 MODULE_NAME = edma3_lld_drv_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_EXERNAL_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),c6xdsp)
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_omapl138-evm = sample_omapl138_cfg.c sample_omapl138_int_reg.c
43 SRCS_ti814x-evm = sample_ti814x_cfg.c sample_ti814x_int_reg.c
44 SRCS_omap4-evm   = sample_omap4_cfg.c sample_omap4_int_reg.c
45 CFLAGS_LOCAL_ti816x-evm = -DBUILD_NETRA_DSP
46 CFLAGS_LOCAL_ti814x-evm = -DBUILD_CENTAURUS_DSP
47 SRCS_ti816x-evm = sample_ti816x_cfg.c sample_ti816x_int_reg.c
48 CFLAGS_LOCAL_c6a811x-evm = -DBUILD_C6A811X_DSP
49 SRCS_c6a811x-evm = sample_c6a811x_cfg.c sample_c6a811x_int_reg.c
50 SRCS_tda2xx-evm = sample_tda2xx_cfg.c sample_tda2xx_int_reg.c
51 CFLAGS_LOCAL_tda2xx-evm = -DBUILD_TDA2XX_DSP
52 else
53 SRCS_omapl138-evm = sample_omapl138_arm_cfg.c sample_omapl138_arm_int_reg.c
54 SRCS_tda2xx-evm = sample_tda2xx_cfg.c sample_tda2xx_arm_int_reg.c
55 endif
57 ifeq ($(CORE),a8host)
58 CFLAGS_LOCAL_ti816x-evm = -DBUILD_NETRA_A8
59 CFLAGS_LOCAL_ti814x-evm = -DBUILD_CENTAURUS_A8
60 CFLAGS_LOCAL_c6a811x-evm = -DBUILD_C6A811X_A8
61 SRCS_ti814x-evm = sample_ti814x_cfg.c sample_ti814x_arm_int_reg.c
62 SRCS_ti816x-evm = sample_ti816x_cfg.c sample_ti816x_arm_int_reg.c
63 SRCS_c6a811x-evm = sample_c6a811x_cfg.c sample_c6a811x_arm_int_reg.c
64 endif
66 ifeq ($(CORE),m3video)
67 CFLAGS_LOCAL_ti816x-evm = -DBUILD_NETRA_M3VIDEO
68 CFLAGS_LOCAL_ti814x-evm = -DBUILD_CENTAURUS_M3VIDEO
69 CFLAGS_LOCAL_c6a811x-evm = -DBUILD_C6A811X_M3VIDEO
70 SRCS_ti816x-evm = sample_ti816x_cfg.c sample_ti816x_arm_int_reg.c
71 SRCS_ti814x-evm = sample_ti814x_cfg.c sample_ti814x_arm_int_reg.c
72 SRCS_c6a811x-evm = sample_c6a811x_cfg.c sample_c6a811x_arm_int_reg.c
73 endif
75 ifeq ($(CORE),m3vpss)
76 CFLAGS_LOCAL_ti816x-evm = -DBUILD_NETRA_M3VPSS
77 CFLAGS_LOCAL_ti814x-evm = -DBUILD_CENTAURUS_M3VPSS
78 CFLAGS_LOCAL_c6a811x-evm = -DBUILD_C6A811X_M3VPSS
79 SRCS_ti816x-evm = sample_ti816x_cfg.c sample_ti816x_arm_int_reg.c
80 SRCS_ti814x-evm = sample_ti814x_cfg.c sample_ti814x_arm_int_reg.c
81 SRCS_c6a811x-evm = sample_c6a811x_cfg.c sample_c6a811x_arm_int_reg.c
82 endif
84 ifeq ($(CORE),m4)
85 CFLAGS_LOCAL_tda2xx-evm = -DBUILD_TDA2XX_IPU
86 endif
88 ifeq ($(CORE),a15host)
89 CFLAGS_LOCAL_tda2xx-evm = -DBUILD_TDA2XX_MPU
90 endif
92 ifeq ($(CORE),eve)
93 CFLAGS_LOCAL_tda2xx-evm = -DBUILD_TDA2XX_EVE
94 endif
96 SRCS_c6748-evm = sample_c6748_cfg.c sample_c6748_int_reg.c
97 SRCS_da830-evm = sample_da830_cfg.c sample_da830_int_reg.c
99 CFLAGS_LOCAL_ti814x-evm += -DCHIP_TI814X
100 CFLAGS_LOCAL_c6a811x-evm += -DCHIP_C6A811X
102 # Include common make files
103 include $(ROOTDIR)/makerules/common.mk
105 # OBJs and libraries are built by using rule defined in rules_<target>.mk 
106 #     and need not be explicitly specified here
108 # Nothing beyond this point