# File: env.mk. This file contains all the paths and other ENV variables

#
# Module paths
#

# Directory where all internal software packages are located; typically 
#  those that are checked into version controlled repository. In this case all
#  the OMX components and SDK/OMX demo.
INTERNAL_SW_ROOT = C:/ti/biospsp_03_00_01_00
##INTERNAL_SW_ROOT = H:/FREON_~1/biospsp

# Directory where all external (imported) software packages are located; typically 
#  those that are NOT checked into version controlled repository. In this case,
#  compiler tool chains, BIOS, XDC, Syslink, IPC, FC, CE, drivers, codecs, etc.
## (Raghav)EXTERNAL_SW_ROOT = E:/PROGRA~1/TEXASI~1
EXTERNAL_SW_ROOT = C:/ti

# Destination root directory.
#   - specify the directory where you want to place the object, archive/library,
#     binary and other generated files in a different location than source tree
#   - or leave it blank to place then in the same tree as the source
#DEST_ROOT = E:/Temp/edma3_lld_02_11_02_03

# Utilities directory. This is required only if the build machine is Windows.
#   - specify the installation directory of utility which supports POSIX commands
#     (eg: Cygwin installation or MSYS installation).
#UTILS_INSTALL_DIR = C:/PROGRA~1/TEXASI~1/xdctools_3_20_07_86
UTILS_INSTALL_DIR = C:/ti/xdctools_3_23_00_32


# Set path separator, etc based on the OS
ifeq ($(OS),Windows_NT)
  PATH_SEPARATOR = ;
  UTILSPATH = $(UTILS_INSTALL_DIR)/bin/
else 
  # else, assume it is linux
  PATH_SEPARATOR = :
endif

# BIOS
bios_PATH = $(EXTERNAL_SW_ROOT)/bios_6_33_01_25
bios_INCLUDE = $(bios_PATH)/packages

# XDC
xdc_PATH = $(EXTERNAL_SW_ROOT)/xdctools_3_23_00_32
xdc_INCLUDE = $(xdc_PATH)/packages

# XDC
ipc_PATH = $(EXTERNAL_SW_ROOT)/ipc_1_23_05_40
ipc_INCLUDE = $(ipc_PATH)/packages

# EDMA
edma_PATH = $(EXTERNAL_SW_ROOT)/edma3_lld_02_11_04_01
edma_INCLUDE = $(edma_PATH)/packages

edma_DRV_PATH = $(edma_PATH)/packages/ti/sdo/edma3/drv
edma_RM_PATH  = $(edma_PATH)/packages/ti/sdo/edma3/rm

# BIOS PSP
bios_psp_PATH = $(INTERNAL_SW_ROOT)
include $(bios_psp_PATH)/makerules/component.mk

# DSP - Since same toolchain does not support COFF and ELF, there are two entries
#        This would go away when one version supports both formats
CODEGEN_PATH_DSP = C:/ti/ccsv5/tools/compiler/c6000
CODEGEN_PATH_DSPELF = C:/ti/ccsv5/tools/compiler/c6000

# Commands commonly used within the make files
RM = $(UTILSPATH)rm
RMDIR = $(UTILSPATH)rm -rf
MKDIR = $(UTILSPATH)mkdir
ECHO = @$(UTILSPATH)echo
# MAKE = $(UTILSPATH)make
EGREP = $(UTILSPATH)egrep
CP = $(UTILSPATH)cp

# This is to avoid using full blown cygwin - chmod is really needed only linux
ifeq ($(OS),Windows_NT)
CHMOD = @echo
else
CHMOD = $(UTILSPATH)chmod
endif

#
# XDC specific ENV variables
#

# XDC Config.bld file (required for configuro) ; Derives from top-level omx_PATH
# This is required while building the sample application
CONFIG_BLD_XDC_674 = $(bios_psp_PATH)/config.bld

XDCPATH = $(bios_PATH)/packages;$(xdc_PATH)/packages;$(bios_psp_PATH);$(edma_PATH)/packages;$(ipc_PATH)/packages
export XDCPATH

XDCROOT = $(xdc_PATH)
XDCTOOLS = $(xdc_PATH)
export XDCROOT
export XDCTOOLS

CGTOOLS = $(CODEGEN_PATH_DSP)
CGTOOLS_ELF = $(CODEGEN_PATH_DSPELF)

PATH += $(PATH_SEPARATOR)$(xdc_PATH)$(PATH_SEPARATOR)$(CODEGEN_PATH_M3)/bin
export PATH

# Nothing beyond this point
