# Version information:
# BUILD_TYPE = PROD  : production release
# BUILD_TYPE = DEBUG : temporary debug build
# BUILD_TYPE = DEVEL : development release
# Implements: PLF014
BUILD_TYPE			= 'DEBUG'
PROJ_NAME			= 'RTA-SK'
SW_VERSION_MSB		= 1
SW_VERSION_LSB		= 0

# General configuration:
# Implements: PLF012, PLF013
OUTPUT_DIR			= 'output'
LOG_DIR				= '../../log_TC264'
COMPILER_TOOL		= 'hightec'
COMPILER_ROOT 		= 'C:/HighTec/toolchains/tricore/v4.6.6.1/bin'

# Target as defined by the compiler
# Implements: PLF004
CPU_TARGET    		= 'tc26xx'

# Compiler configuration:
# Implements: PLF006
COMPILER_DEFINES  	= ['_GNU_C_TRICORE_=1'] 
COMPILER_FLAGS 		=	 '-g \
						  -O3 \
						  -fshort-double \
						  -gdwarf-2 \
						  -Wall \
						  -W \
						  -Werror-implicit-function-declaration \
						  -Wno-unused-variable \
						  -Wno-empty-body \
						  -Wbad-function-cast \
						  -Wstrict-prototypes \
						  -Wmissing-noreturn \
						  -Wnested-externs \
						  -fno-builtin \
						  -Wno-unused-parameter \
						  -Wno-pointer-to-int-cast \
						  -Wfloat-equal \
						  -nostartfiles \
						  -fno-common \
						  -maligned-data-sections \
						  -ffreestanding \
						  -fno-short-enums \
						  -fpeel-loops \
						  -falign-functions=4 \
						  -funsigned-bitfields \
						  -ffunction-sections \
						  -fno-ivopts \
						  -fno-peephole2'
				
#						  -msmall=0 \					   
# Assembler configuration:
# Implements: PLF007
ASSEMBLER_DEFINES  	= COMPILER_DEFINES
ASSEMBLER_FLAGS 	= COMPILER_FLAGS

# Libraries to include
# Implements: PLF009, PLF010
ADD_LIBRARIES		= ['..\..\Targets\TC264\RTOS\config\RTAOS.a'] 
LIBRARY_PATHS		= []

# Linker configuration:
# Implements: PLF008, PLF011
LINKER_FLAGS 		= 	'-g \
						-Wl,--relax \
						-nodefaultlibs \
						-nostdlib \
						-nostartfiles \
						-Wl,--cref \
						-Wl,--oformat=elf32-tricore \
						-Wl,--mem-holes \
						-Wl,--extmap=a'



LINKER_FILE  		= '..\..\Targets\TC264\Linker\linkscript_HighTec.ld'