]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/drv/sciclient/src/sciclient_direct_makefile
Fix for MC flood to work on Port1
[processor-sdk/pdk.git] / packages / ti / drv / sciclient / src / sciclient_direct_makefile
1 #
2 # This file is the makefile for building sciclient .
3 #
4 ifeq ($(RULES_MAKE), )
5 include $(PDK_INSTALL_PATH)/ti/build/Rules.make
6 else
7 include $(RULES_MAKE)
8 endif
10 HS_SUFFIX=
11 ifeq ($(BUILD_HS),yes)
12 HS_SUFFIX=_hs
13 endif
15 MODULE_NAME = sciclient_direct$(HS_SUFFIX)
17 SRCDIR = src/sciclient
18 INCDIR = soc/sysfw/include src/sciclient
20 # SoC Specific source files
21 ifeq ($(SOC),$(filter $(SOC), am65xx))
22   SCICLIENT_SOCVER = V0
23 endif
24 ifeq ($(SOC),$(filter $(SOC), j721e))
25   SCICLIENT_SOCVER = V1
26 endif
27 ifeq ($(SOC),$(filter $(SOC), j7200))
28   SCICLIENT_SOCVER = V2
29 endif
30 ifeq ($(SOC),$(filter $(SOC), am64x))
31   SCICLIENT_SOCVER = V3
32 endif
34 SRCDIR += soc/$(SCICLIENT_SOCVER)
35 INCDIR += soc/$(SCICLIENT_SOCVER)
37 # List all the external components/interfaces, whose interface header files
38 # need to be included for this component
39 INCLUDE_EXTERNAL_INTERFACES = pdk osal
41 # Common source files and CFLAGS across all platforms and cores
42 ifeq ($(SOC),$(filter $(SOC), am65xx j721e j7200 am64x))
43 # Keep the sciclient.c the first file in this list. This is used to trigger
44 # the generation of the header files from the firware binary file.
45 SRCS_COMMON  = sciclient.c
46 SRCS_COMMON += sciclient_direct.c
47 SRCS_COMMON += sciclient_fmwSecureProxyMap.c
48 SRCS_COMMON += sciclient_pm.c
49 SRCS_COMMON += sciclient_rm.c
50 SRCS_COMMON += sciclient_firewall.c
51 SRCS_COMMON += sciclient_dkek.c
52 SRCS_COMMON += sciclient_irq_rm.c
53 SRCS_COMMON += sciclient_rm_irq.c
54 SRCS_COMMON += sciclient_boardcfg.c
55 SRCS_COMMON += sciclient_procboot.c
56 SRCS_COMMON += sciclient_genericMsgs.c
57 SRCS_COMMON += sciclient_rom.c
58 SRCS_COMMON += sciclient_secureProxyCfg.c
59 SRCS_COMMON += sciclient_secureproxy.c
60 endif
62 #Use CSL implementation to bypass DMSC
63 # ifeq ($(SOC),$(filter $(SOC), j721e j7200))
64 # SRCS_COMMON = sciclient_rm_csl.c sciclient_dummy.c
65 # endif
67 #Bypass DMSC for host emulation and Loki build
68 ifeq ($(BOARD),$(filter $(BOARD), j721e_hostemu j721e_loki))
69  SRCS_COMMON = sciclient_rm_csl.c sciclient_dummy.c
70 endif
72 CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS) $(SCICLIENT_CFLAGS)
74 ifeq ($(BUILD_HS),yes)
75 CFLAGS_LOCAL_COMMON += -DBUILD_HS
76 endif
78 include $(PDK_INSTALL_PATH)/ti/drv/sciclient/src/rm_pm_hal_build.mk
80 # Core/SoC/platform specific source files and CFLAGS
81 # Example:
82 #   SRCS_<core/SoC/platform-name> =
83 #   CFLAGS_LOCAL_<core/SoC/platform-name> =
85 # Include common make files
86 ifeq ($(MAKERULEDIR), )
87 #Makerule path not defined, define this and assume relative path from ROOTDIR
88   MAKERULEDIR := $(ROOTDIR)/ti/build/makerules
89   export MAKERULEDIR
90 endif
91 include $(MAKERULEDIR)/common.mk
93 # OBJs and libraries are built by using rule defined in rules_<target>.mk
94 #     and need not be explicitly specified here
96 # Nothing beyond this point