]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/edma3_lld.git/blob - makerules/env.mk
67a87d75cec7a4d9ceeaef7b9291b379e37e7ed5
[keystone-rtos/edma3_lld.git] / makerules / env.mk
1 # File: env.mk. This file contains all the paths and other ENV variables
3 #
4 # Module paths
5 #
7 # Directory where all internal software packages are located; typically 
8 #  those that are checked into version controlled repository. In this case all
9 #  the OMX components and SDK/OMX demo.
10 INTERNAL_SW_ROOT ?= E:/EDMA/edma3_lld_02_11_07_01
12 # Directory where all external (imported) software packages are located; typically 
13 #  those that are NOT checked into version controlled repository. In this case,
14 #  compiler tool chains, BIOS, XDC, Syslink, IPC, FC, CE, drivers, codecs, etc.
15 EXTERNAL_SW_ROOT ?= C:/PROGRA~2/TEXASI~1
17 # Destination root directory.
18 #   - specify the directory where you want to place the object, archive/library,
19 #     binary and other generated files in a different location than source tree
20 #   - or leave it blank to place then in the same tree as the source
21 #DEST_ROOT = E:/Temp/edma3_lld_02_11_02_03
23 # Utilities directory. This is required only if the build machine is Windows.
24 #   - specify the installation directory of utility which supports POSIX commands
25 #     (eg: Cygwin installation or MSYS installation).
26 UTILS_INSTALL_DIR = $(EXTERNAL_SW_ROOT)/xdctools_3_25_05_94
28 # Set path separator, etc based on the OS
29 # On windows if sh.exe is installed (cygwin installs) make will execute
30 # commands on sh or it executes on windows cmd prompt. When executing on sh,
31 # unix style command seperator is used.
32 ifeq ($(OS),Windows_NT)
33   PATH_SEPARATOR = ;
34   UTILSPATH = $(UTILS_INSTALL_DIR)/bin/
35   ifeq (cygwin,$(findstring cygwin,$(PATH)))
36   COMMAND_SEPERATOR = ;
37   else
38   COMMAND_SEPERATOR = &
39   endif
40 else 
41   # else, assume it is linux
42   PATH_SEPARATOR = :
43   COMMAND_SEPERATOR = ;
44 endif
46 # BIOS
47 bios_PATH = $(EXTERNAL_SW_ROOT)/bios_6_37_01_24
48 bios_INCLUDE = $(bios_PATH)/packages
50 # XDC
51 xdc_PATH = $(EXTERNAL_SW_ROOT)/xdctools_3_25_05_94
52 xdc_INCLUDE = $(xdc_PATH)/packages
54 # EDMA3 LLD
55 edma3_lld_PATH = $(INTERNAL_SW_ROOT)
56 include $(edma3_lld_PATH)/packages/component.mk
58 #
59 # Tools paths
60 #
61 # Cortex-M3
62 CODEGEN_PATH_M3 = $(EXTERNAL_SW_ROOT)/TMS470_5.1.1
63 # Cortex-M4
64 CODEGEN_PATH_M4 = $(EXTERNAL_SW_ROOT)/TMS470_5.1.1
65 # Cortex-A8
66 CODEGEN_PATH_A8 = $(EXTERNAL_SW_ROOT)/TMS470_5.1.1
67 # Cortex-A8 GCC
68 CODEGEN_PATH_A8_GCC = $(EXTERNAL_SW_ROOT)/linaro_4.7.2012q4
70 # Cortex-A15
71 CODEGEN_PATH_A15 = $(EXTERNAL_SW_ROOT)/linaro_4.7.2012q4
72 # Cortex-A15_GCC
73 CODEGEN_PATH_A15_GCC = $(EXTERNAL_SW_ROOT)/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/
75 # ARM-9
76 CODEGEN_PATH_ARM9 = $(EXTERNAL_SW_ROOT)/TMS470_5.1.1
78 # DSP - Since same toolchain does not support COFF and ELF, there are two entries
79 #        This would go away when one version supports both formats
80 CODEGEN_PATH_DSP = $(EXTERNAL_SW_ROOT)/C6000_7.4.4
81 CODEGEN_PATH_DSPELF = $(EXTERNAL_SW_ROOT)/C6000_7.4.4
83 # ARP32
84 CODEGEN_PATH_ARP32 = $(EXTERNAL_SW_ROOT)/ARP32_1.0.2
86 # Commands commonly used within the make files
88 RM = $(UTILSPATH)rm
89 RMDIR = $(UTILSPATH)rm -rf
90 MKDIR = $(UTILSPATH)mkdir
91 ECHO = @$(UTILSPATH)echo
92 # MAKE = $(UTILSPATH)make
93 EGREP = $(UTILSPATH)egrep
94 CP = $(UTILSPATH)cp
96 # This is to avoid using full blown cygwin - chmod is really needed only linux
97 ifeq ($(OS),Windows_NT)
98 CHMOD = @echo
99 else
100 CHMOD = $(UTILSPATH)chmod
101 endif
104 # XDC specific ENV variables
107 # XDC Config.bld file (required for configuro) ; Derives from top-level omx_PATH
108 CONFIG_BLD_XDC_674 = $(edma3_lld_PATH)/packages/_config.bld
109 CONFIG_BLD_XDC_64p = $(edma3_lld_PATH)/packages/_config.bld
110 CONFIG_BLD_XDC_64t = $(edma3_lld_PATH)/packages/_config.bld
111 CONFIG_BLD_XDC_a8 = $(edma3_lld_PATH)/packages/_config.bld
112 CONFIG_BLD_XDC_arm9 = $(edma3_lld_PATH)/packages/_config.bld
113 CONFIG_BLD_XDC_66 = $(edma3_lld_PATH)/packages/_config.bld
114 CONFIG_BLD_XDC_m3 = $(edma3_lld_PATH)/packages/_config.bld
115 CONFIG_BLD_XDC_m4 = $(edma3_lld_PATH)/packages/_config.bld
116 CONFIG_BLD_XDC_a15 = $(edma3_lld_PATH)/packages/_config.bld
118 XDCPATH = $(bios_PATH)/packages;$(xdc_PATH)/packages;$(edma3_lld_PATH)/packages;
119 export XDCPATH
121 XDCROOT = $(xdc_PATH)
122 XDCTOOLS = $(xdc_PATH)
123 export XDCROOT
124 export XDCTOOLS
126 TMS470_CGTOOLS = $(CODEGEN_PATH_M3)
127 CGTOOLS = $(CODEGEN_PATH_DSP)
128 CGTOOLS_ELF = $(CODEGEN_PATH_DSPELF)
129 export TMS470_CGTOOLS
131 CODESOURCERYCGTOOLS = $(CODEGEN_PATH_A8)
132 export CODESOURCERYCGTOOLS
134 PATH += $(PATH_SEPARATOR)$(xdc_PATH)$(PATH_SEPARATOR)$(CODEGEN_PATH_M3)/bin
135 export PATH
137 # Nothing beyond this point