-
Notifications
You must be signed in to change notification settings - Fork 3
/
target.mak
77 lines (67 loc) · 2.58 KB
/
target.mak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Copyright (C) 2011 Texas Insruments, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
OVX_INC=$(HOST_ROOT)/include $(HOST_ROOT)/kernels/include $(CUSTOM_KERNEL_PATH)/include $(CUSTOM_APPLICATION_PATH)/kernels
ifeq ($(BUILD_DEBUG),1)
$(info TI_TOOLS_ROOT=$(TI_TOOLS_ROOT))
$(info TIARMCGT_LLVM_ROOT=$(TIARMCGT_LLVM_ROOT))
endif
# DEP_PROJECTS does not need to be set as the dependencies are contained in the build.
SYSIDIRS := $(OVX_INC)
SYSLDIRS :=
SYSDEFS :=
ifeq ($(TARGET_PLATFORM),PC)
SYSDEFS +=
SYSIDIRS += $(GCC_WINDOWS_ROOT)/include
SYSLDIRS += $(GCC_WINDOWS_ROOT)/lib
else
SYSDEFS +=
ifeq ($(TARGET_FAMILY),ARM)
ifeq ($(TARGET_CPU),$(filter $(TARGET_CPU), A72 A53))
ifeq ($(TARGET_OS),QNX)
SYSIDIRS += $(GCC_QNX_ARM_ROOT)/../usr/include
SYSLDIRS += $(GCC_QNX_ARM_ROOT)/../usr/lib
SYSDEFS += QNX_OS
SYSDEFS += BUILD_MPU1_0
SYSDEFS += $(TARGET_PLATFORM)
endif
else
SYSIDIRS += $(TIARMCGT_LLVM_ROOT)/include
SYSLDIRS += $(TIARMCGT_LLVM_ROOT)/lib
endif
else ifeq ($(TARGET_FAMILY),DSP)
ifeq ($(TARGET_CPU), $(filter $(TARGET_CPU), C71 C7120 C7504 C7524))
SYSIDIRS += $(CGT7X_ROOT)/include
SYSLDIRS += $(CGT7X_ROOT)/lib
SYSDEFS += C7X_FAMILY
else
SYSIDIRS += $(CGT6X_ROOT)/include
SYSLDIRS += $(CGT6X_ROOT)/lib
endif
else ifeq ($(TARGET_FAMILY),EVE)
SYSIDIRS += $(ARP32CGT_ROOT)/include
SYSLDIRS += $(ARP32CGT_ROOT)/lib
endif
ifeq ($(TARGET_OS), $(filter $(TARGET_OS), FREERTOS SAFERTOS))
ifeq ($(RTOS_SDK),pdk)
SYSIDIRS += $(PDK_PATH)/packages
SYSIDIRS += $(PDK_PATH)/packages/ti/osal
SYSIDIRS += $(PDK_PATH)/packages/ti/drv
else
SYSIDIRS += $(MCU_PLUS_SDK_PATH)/source
SYSIDIRS += $(MCU_PLUS_SDK_PATH)/source/drivers
SYSIDIRS += $(MCU_PLUS_SDK_PATH)/source/kernel/dpl
SYSDEFS += MCU_PLUS_SDK
endif
endif
endif