1 #
2 # This file is the makefile for building timesync icss driver library.
3 #
4 include $(PDK_INSTALL_PATH)/ti/build/Rules.make
6 MODULE_NAME = timeSync
8 ifeq ($(SOC),$(filter $(SOC), am574x am572x am571x am335x am437x k2g))
9 SRCDIR = src
10 endif
11 INCDIR = . ../include ..
13 # List all the external components/interfaces, whose interface header files
14 # need to be included for this component
15 INCLUDE_EXTERNAL_INTERFACES = pdk bios xdc osal_tirtos edma
17 # Common source files and CFLAGS across all platforms and cores
18 SRCS_COMMON = icss_timeSync.c icss_timeSync_mem.c
19 SRCS_COMMON += icss_timeSync_init.c icss_timeSyncApi.c
20 SRCS_COMMON += icss_timeSync_tools.c
22 ifeq ($(SOC),$(filter $(SOC), am335x am437x))
23 SRCS_COMMON += icss_timeSync_ecap_edma.c
24 endif
26 TIMESYNC_ICSS_CFLAGS =
27 CFLAGS_LOCAL_a15_0 = -mno-unaligned-access
28 CFLAGS_LOCAL_a8host = -mno-unaligned-access
29 CFLAGS_LOCAL_a9host = -mno-unaligned-access
30 PACKAGE_SRCS_COMMON = icss_timeSyncApi.h icss_timeSync_component.mk makefile include docs $(SRCDIR) build
31 PACKAGE_SRCS_COMMON += config_mk.bld package.bld package.xdc package.xs Settings.xdc.xdt timeSync_ver.h timeSync_ver.h.xdt
32 CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS) $(TIMESYNC_ICSS_CFLAGS)
34 # Core/SoC/platform specific source files and CFLAGS
35 # Example:
36 # SRCS_<core/SoC/platform-name> =
37 # CFLAGS_LOCAL_<core/SoC/platform-name> =
39 # Include common make files
40 ifeq ($(MAKERULEDIR), )
41 #Makerule path not defined, define this and assume relative path from ROOTDIR
42 MAKERULEDIR := $(ROOTDIR)/ti/build/makerules
43 export MAKERULEDIR
44 endif
45 include $(MAKERULEDIR)/common.mk
47 # OBJs and libraries are built by using rule defined in rules_<target>.mk
48 # and need not be explicitly specified here
50 # Nothing beyond this point: