8a54f257ddd795a6c9c319e7ff1b344a62ec4bf9
[processor-sdk/pdk.git] / packages / ti / build / pdk_tools_path.mk
1 ################################################################################
2 # Configure toolchain paths
3 ################################################################################
4   # This section applies to all broader set of boards with SOCs beyond TDA class
5   # in Processor SDK RTOS release
6   PDK_VERSION_STR=_$(PDK_SOC)_$(PDK_VERSION)
7 ifeq ($(PDK_VERSION),)
8   PDK_VERSION_STR=
9 endif
11   #Tool versions for non-TDA builds
12   GCC_CROSS_TOOL_PREFIX=arm-none-eabi-
13   GCC_CROSS_TOOL_TAG=9-2019-q4-major
14   GCC_ARCH64_VERSION=9.2-2019.12
15   GCC_ARCH64_BIN_PREFIX_STR=aarch64-none-elf
16   CGT_VERSION=8.3.7
17   BIOS_VERSION=6_83_00_18
18   XDC_VERSION=3_61_03_29_core
20   CGT_C7X_VERSION=1.4.0.LTS
21   CGT_ARM_VERSION=20.2.0.LTS
22   GCC_VERSION_HARDLIB=9.2.1
24   CGT_ARP32_VERSION=1.0.8
25   CG_XML_VERSION=2.61.00
27 ifeq ($(BOARD),$(filter $(BOARD), tpr12_evm tpr12_qt awr294x_evm))
28   CGT_ARM_VERSION=20.2.2.LTS
29 endif
31   EDMA_VERSION=2_12_05_30E
32   SECDEV_VERSION=01_06_00_05
33   CGT_PRU_VERSION=2.3.3
35   #Hardcode IPC version if it is not set already
36   IPC_VERSION=3_50_04_08
37   NDK_VERSION=3_61_01_01
38   NS_VERSION=2_60_01_06
40 ifeq ($(BOARD),$(filter $(BOARD), am65xx_evm am65xx_idk j721e_evm j7200_evm am64x_evm am64x_svb tpr12_qt tpr12_evm awr294x_evm))
41   NDK_VERSION=3_80_00_19
42   NS_VERSION=2_80_00_17
43 endif
45   UIA_VERSION=2_30_01_02
46   XDAIS_VERSION=7_24_00_04
47   AER_VERSION=17_0_0_0
49   # C674x DSP libraries sould be used for OMAPL13x platform
50 ifeq ($(SOC),$(filter $(SOC), omapl137 omapl138))
51   DSPLIB_VERSION ?= c674x_3_4_0_4
52   IMGLIB_VERSION ?= c674x_3_1_1_0
53   MATHLIB_VERSION ?= c674x_3_1_2_4
54 else
55   DSPLIB_VERSION ?= c66x_3_4_0_4
56   IMGLIB_VERSION ?= c66x_3_1_1_0
57   MATHLIB_VERSION ?= c66x_3_1_2_4
58 endif
60   export GCC_FLOAT_PATH ?= HARD
62 ################################################################################
63 # Dependent toolchain paths variables
64 ################################################################################
65 # Version of GCC
66 GCC_VERSION=$(GCC_CROSS_TOOL_PREFIX)$(GCC_CROSS_TOOL_TAG)
67 GCC_VERSION_ARM_A15=$(GCC_CROSS_TOOL_PREFIX)$(GCC_CROSS_TOOL_TAG)
68   export GCC_VERSION_ARM_A8=$(GCC_CROSS_TOOL_PREFIX)$(GCC_CROSS_TOOL_TAG)
69   export GCC_VERSION_ARM_A9=$(GCC_CROSS_TOOL_PREFIX)$(GCC_CROSS_TOOL_TAG)
70   export CROSS_TOOL_PRFX           ?= $(GCC_CROSS_TOOL_PREFIX)
71   export C6X_GEN_INSTALL_PATH      ?= $(TOOLS_INSTALL_PATH)/ti-cgt-c6000_$(CGT_VERSION)
72   export C7X_GEN_INSTALL_PATH      ?= $(TOOLS_INSTALL_PATH)/ti-cgt-c7000_$(CGT_C7X_VERSION)
73   export CL_PRU_INSTALL_PATH       ?= $(TOOLS_INSTALL_PATH)/ti-cgt-pru_$(CGT_PRU_VERSION)
74   export TOOLCHAIN_PATH_A8         ?= $(TOOLS_INSTALL_PATH)/gcc-$(GCC_VERSION_ARM_A8)
75   export TOOLCHAIN_PATH_A9         ?= $(TOOLS_INSTALL_PATH)/gcc-$(GCC_VERSION_ARM_A9)
76   export TOOLCHAIN_PATH_Arm9       ?= $(TOOLS_INSTALL_PATH)/ti-cgt-arm_$(CGT_ARM_VERSION)
77   export TOOLCHAIN_PATH_A15        ?= $(TOOLS_INSTALL_PATH)/gcc-$(GCC_VERSION_ARM_A15)
79 ifeq ($(OS),Windows_NT)
80   #Paths for windows machine
81   export TOOLCHAIN_PATH_GCC_ARCH64 ?= $(TOOLS_INSTALL_PATH)/gcc-arm-$(GCC_ARCH64_VERSION)-mingw-w64-i686-aarch64-none-elf
82 else
83   #Paths for linux machine
84   export TOOLCHAIN_PATH_GCC_ARCH64 ?= $(TOOLS_INSTALL_PATH)/gcc-arm-$(GCC_ARCH64_VERSION)-x86_64-aarch64-none-elf
85 endif
87   export GCC_ARCH64_BIN_PREFIX     ?= $(GCC_ARCH64_BIN_PREFIX_STR)
89   export TOOLCHAIN_PATH_QNX_A72    ?= $(QNX_HOST)/usr/bin
90   export TOOLCHAIN_PATH_A53        ?= $(TOOLCHAIN_PATH_GCC_ARCH64)
91   export TOOLCHAIN_PATH_A72        ?= $(TOOLCHAIN_PATH_GCC_ARCH64)
92   export TOOLCHAIN_PATH_EVE        ?= $(TOOLS_INSTALL_PATH)/arp32_$(CGT_ARP32_VERSION)
93   export TOOLCHAIN_PATH_M4         ?= $(TOOLS_INSTALL_PATH)/ti-cgt-arm_$(CGT_ARM_VERSION)
94   export TOOLCHAIN_PATH_R5         ?= $(TOOLS_INSTALL_PATH)/ti-cgt-arm_$(CGT_ARM_VERSION)
95   export BIOS_INSTALL_PATH         ?= $(SDK_INSTALL_PATH)/bios_$(BIOS_VERSION)
96   export DSPLIB_INSTALL_PATH       ?= $(SDK_INSTALL_PATH)/dsplib_$(DSPLIB_VERSION)
97   export EDMA3LLD_BIOS6_INSTALLDIR ?= $(SDK_INSTALL_PATH)/edma3_lld_$(EDMA_VERSION)
98   export IMGLIB_INSTALL_PATH       ?= $(SDK_INSTALL_PATH)/imglib_$(IMGLIB_VERSION)
99   export IPC_INSTALL_PATH          ?= $(SDK_INSTALL_PATH)/ipc_$(IPC_VERSION)
100   export MATHLIB_INSTALL_PATH      ?= $(SDK_INSTALL_PATH)/mathlib_$(MATHLIB_VERSION)
101   export NDK_INSTALL_PATH          ?= $(SDK_INSTALL_PATH)/ndk_$(NDK_VERSION)
102   export NS_INSTALL_PATH           ?= $(SDK_INSTALL_PATH)/ns_$(NS_VERSION)
103   export PDK_INSTALL_PATH          ?= $(SDK_INSTALL_PATH)/pdk$(PDK_VERSION_STR)/packages
104   export UIA_INSTALL_PATH          ?= $(SDK_INSTALL_PATH)/uia_$(UIA_VERSION)
105   export XDC_INSTALL_PATH          ?= $(SDK_INSTALL_PATH)/xdctools_$(XDC_VERSION)
106   export UTILS_INSTALL_DIR         ?= $(XDC_INSTALL_PATH)/bin
107   export RADARLINK_INSTALL_PATH    ?= $(SDK_INSTALL_PATH)/$(mmwavelink_version)
108   export CG_XML_BIN_INSTALL_PATH   ?= $(SDK_INSTALL_PATH)/cg_xml_$(CG_XML_VERSION)/bin
109   export TI_SECURE_DEV_PKG         ?= $(SDK_INSTALL_PATH)/proc-sdk-secdev_$(SECDEV_VERSION)
110   export XDAIS_INSTALL_PATH        ?= $(SDK_INSTALL_PATH)/xdais_$(XDAIS_VERSION)
111   export AER_INSTALL_PATH          ?= $(SDK_INSTALL_PATH)/aer_c64Px_obj_$(AER_VERSION)
112   export GCC_ARM_NONE_TOOLCHAIN    ?= $(SDK_INSTALL_PATH)/gcc-$(GCC_CROSS_TOOL_PREFIX)$(GCC_CROSS_TOOL_TAG)
113   export TI_CGT6x_INSTALL_DIR      ?= $(SDK_INSTALL_PATH)/c6000_7.4.16
114   export M4_TOOLCHAIN_INSTALL_DIR  ?= $(TOOLCHAIN_PATH_M4)
116 ifeq ($(SOC),$(filter $(SOC), am335x))
117   export HARDLIB_PATH ?= $(TOOLCHAIN_PATH_A8)/lib/gcc/arm-none-eabi/$(GCC_VERSION_HARDLIB)
118   export FPULIB_PATH ?= $(TOOLCHAIN_PATH_A8)/lib/gcc/arm-none-eabi/$(GCC_VERSION_FPULIB)/fpu
119 else ifeq  ($(SOC),$(filter $(SOC), am437x))
120   export HARDLIB_PATH ?= $(TOOLCHAIN_PATH_A9)/lib/gcc/arm-none-eabi/$(GCC_VERSION_HARDLIB)
121   export FPULIB_PATH ?= $(TOOLCHAIN_PATH_A9)/lib/gcc/arm-none-eabi/$(GCC_VERSION_FPULIB)/fpu
122 else
123   export HARDLIB_PATH ?= $(TOOLCHAIN_PATH_A15)/lib/gcc/arm-none-eabi/$(GCC_VERSION_HARDLIB)
124   export FPULIB_PATH ?= $(TOOLCHAIN_PATH_A15)/lib/gcc/arm-none-eabi/$(GCC_VERSION_FPULIB)/fpu
125 endif
127 # Utilities directory. This is required only if the build machine is Windows.
128 #   - specify the installation directory of utility which supports POSIX commands
129 #     (eg: Cygwin installation or MSYS installation).
130 # This could be in CCS install directory as in c:/ti/ccsv<ver>/utils/cygwin or
131 # the XDC install bin folder represented by  $(UTILS_INSTALL_DIR)
132 ifeq ($(OS),Windows_NT)
133   export utils_PATH ?= $(UTILS_INSTALL_DIR)
134 endif