72aeef1f007b5d522d7b3a9174d1c84473a57c62
[processor-sdk/pdk.git] / packages / ti / osal / src / src_common_nonos.mk
2 SRCDIR = . src/nonos arch/core
3 INCDIR = . src/nonos arch/core
5 SRCS_COMMON += HwiP_nonos.c SwiP_nonos.c Utils_nonos.c SemaphoreP_nonos.c DebugP_nonos.c RegisterIntr_nonos.c Core_utils.c MutexP_nonos.c
7 PACKAGE_SRCS_COMMON = makefile HwiP.h SwiP.h MuxIntcP.h osal.h osal_component.mk SemaphoreP.h \
8                       TimerP.h RegisterIntr.h EventCombinerP.h CycleprofilerP.h CacheP.h DebugP.h soc/osal_soc.h soc/$(SOC) \
9                       src/nonos/Nonos_config.h src/nonos/HwiP_nonos.c src/nonos/SwiP_nonos.c src/nonos/CycleprofilerP_nonos.c \
10                       src/nonos/RegisterIntr_nonos.c src/nonos/SemaphoreP_nonos.c src/nonos/Utils_nonos.c src/nonos/DebugP_nonos.c \
11                       src/nonos/MutexP_nonos.c src/src_common_nonos.mk src/Module.xs \
12                       arch/core/Core_utils.c docs/OSAL_SoftwareManifest.html docs/ReleaseNotes_OSAL.pdf \
13                       build \
14                       config_mk.bld osalver.h
17 ifeq ($(SOC),$(filter $(SOC),am571x am572x am574x am335x am437x k2h k2k k2e k2l k2g c6678 c6657 omapl137 omapl138 am65xx j721e am64x j721s2 j784s4))
18   SRCDIR      += soc/$(SOC)
19   SRCS_COMMON += TimerP_default.c CycleprofilerP_nonos.c
20 endif
22 ifeq ($(SOC),$(filter $(SOC), j7200))
23   SRCDIR      += soc/$(SOC)
24   SRCS_COMMON += TimerP_default_$(ISA).c CycleprofilerP_nonos.c
25 endif
27 ifeq ($(SOC),$(filter $(SOC), tpr12 awr294x))
28   SRCDIR      += soc/$(SOC)
29   SRCS_COMMON += TimerP_default.c CycleprofilerP_nonos.c
30 endif
32 ifeq ($(CORE),mpu1_0)
33   SRCDIR += arch/core/a53
34   SRCS_COMMON += CacheP_nonos.c Arch_util.c
35   PACKAGE_SRCS_COMMON += arch/core/a53
36 endif
38 ifeq ($(CORE),$(filter $(CORE), mcu1_0 mcu2_0 mcu2_1 mcu1_1 mcu3_0 mcu3_1 mcu4_0 mcu4_1))
39   SRCDIR += arch/core/r5
40   SRCS_COMMON += CacheP_nonos.c Arch_util.c
41   SRCS_ASM_COMMON += TimestampProvider_asm.asm
42   PACKAGE_SRCS_COMMON += arch/core/r5
43 endif
45 ifeq ($(CORE),a15_0)
46   SRCDIR += arch/core/a15
47   SRCS_COMMON += CacheP_nonos.c Arch_util.c
48   SRCS_ASM_COMMON += TimestampProvider_asm.asm
49   PACKAGE_SRCS_COMMON += arch/core/a15
50 endif
52 ifeq ($(CORE),arm9_0)
53   SRCDIR += arch/core/arm9
54   SRCS_COMMON += CacheP_nonos.c Arch_util.c
55   PACKAGE_SRCS_COMMON += arch/core/arm9
56 endif
58 ifeq ($(CORE),$(filter $(CORE), c66x c66xdsp_1 c66xdsp_2 c674x))
59   SRCDIR += arch/core/c6x
60   SRCS_COMMON += CacheP_nonos.c Arch_util.c EventCombinerP_nonos.c
61   PACKAGE_SRCS_COMMON += arch/core/c6x src/nonos/EventCombinerP_nonos.c
62 endif
64 ifeq ($(CORE),$(filter $(CORE), c7x_1 c7x_2 c7x_3 c7x_4 c7x-hostemu))
65   SRCDIR += arch/core/c7x
66   SRCS_COMMON += CacheP_nonos.c Arch_util.c
67   PACKAGE_SRCS_COMMON += arch/core/c7x
68 endif
70 ifeq ($(CORE),$(filter $(CORE), ipu1_0 m4f_0))
71   ifeq ($(SOC),$(filter $(SOC),am571x am572x am574x dra72x dra75x dra78x am64x))
72     SRCDIR += arch/core/m4
73     SRCS_COMMON += CacheP_nonos.c Arch_util.c
74     PACKAGE_SRCS_COMMON += arch/core/m4
75   endif
77   ifeq ($(SOC),$(filter $(SOC),am571x am572x am574x dra72x dra75x dra78x))
78     CFLAGS_LOCAL_COMMON += -DUNICACHE_ENABLED
79   endif
80 endif
82 ifeq ($(SOC),$(filter $(SOC),am437x am335x))
83 SRCS_COMMON += cache_arm.c \
84                                 cpu.c
86 SRCS_ASM_COMMON += cp15.asm
87 SRCDIR+=$(PDK_INSTALL_PATH)/ti/starterware/soc \
88         $(PDK_INSTALL_PATH)/ti/starterware/soc/armv7a \
89         $(PDK_INSTALL_PATH)/ti/starterware/soc/armv7a/gcc
91 INCDIR +=   $(PDK_INSTALL_PATH)/ti/starterware/include \
92             $(PDK_INSTALL_PATH)/ti/starterware/include/hw \
93             $(PDK_INSTALL_PATH)/ti/starterware/board \
94             $(PDK_INSTALL_PATH)/ti/starterware/device \
95             $(PDK_INSTALL_PATH)/ti/starterware/include/utils \
96             $(PDK_INSTALL_PATH)/ti/starterware/utils \
97             $(PDK_INSTALL_PATH)/ti/starterware/soc \
98             $(PDK_INSTALL_PATH)/ti/starterware/include/armv7a \
99             $(PDK_INSTALL_PATH)/ti/starterware/soc/armv7a \
100             $(PDK_INSTALL_PATH)/ti/starterware/soc/armv7a/gcc
104 ifeq ($(SOC),$(filter $(SOC),am437x))
105   SRCS_COMMON += pl310.c CacheP_nonos.c osalgic.c Arch_util.c
106   SRCDIR += arch/core/a9
107   SRCS_ASM_COMMON += pub2mon.asm
108   SRCS_ASM_COMMON += TimestampProvider_asm.asm
109   CFLAGS_LOCAL_COMMON += -DOUTER_CACHE_ENABLE
110   INCDIR += $(PDK_INSTALL_PATH)/ti/starterware/soc/am43xx/am437x \
111                 $(PDK_INSTALL_PATH)/ti/starterware/board/am43xx \
112         $(PDK_INSTALL_PATH)/ti/starterware/soc/am43xx \
113         $(PDK_INSTALL_PATH)/ti/starterware/include/am43xx \
114         $(PDK_INSTALL_PATH)/ti/starterware/include/am43xx/am437x
115   PACKAGE_SRCS_COMMON += arch/core/a9
116 endif
119 ifeq ($(SOC),$(filter $(SOC),am335x))
120   SRCS_COMMON += pl310.c CacheP_nonos.c osalintc.c Arch_util.c
121   SRCDIR += arch/core/a8
122   SRCS_ASM_COMMON += TimestampProvider_asm.asm
123   INCDIR += $(PDK_INSTALL_PATH)/ti/starterware/soc/am33xx/am335x \
124                 $(PDK_INSTALL_PATH)/ti/starterware/board/am33xx \
125         $(PDK_INSTALL_PATH)/ti/starterware/soc/am33xx \
126         $(PDK_INSTALL_PATH)/ti/starterware/include/am33xx \
127         $(PDK_INSTALL_PATH)/ti/starterware/include/am33xx/am335x
128   PACKAGE_SRCS_COMMON += arch/core/a8
129 endif
132 endif