2015-05-14 19:09:10 +08:00
|
|
|
ifndef XTOOLS_TOOLCHAIN_PATH
|
|
|
|
$(error XTOOLS_TOOLCHAIN_PATH is not set)
|
|
|
|
endif
|
2015-05-13 12:44:22 +08:00
|
|
|
|
|
|
|
CROSS_COMPILE_TARGET_arm = arm-none-eabi
|
|
|
|
CROSS_COMPILE_arm=${XTOOLS_TOOLCHAIN_PATH}/${CROSS_COMPILE_TARGET_arm}/bin/${CROSS_COMPILE_TARGET_arm}-
|
2016-01-07 00:48:30 +08:00
|
|
|
CROSS_COMPILE_arm_version ?= $(shell $(CROSS_COMPILE_arm)gcc -dumpversion)
|
2015-05-13 12:44:22 +08:00
|
|
|
|
|
|
|
|
|
|
|
CROSS_COMPILE_TARGET_x86 = i586-pc-elf
|
|
|
|
CROSS_COMPILE_x86=${XTOOLS_TOOLCHAIN_PATH}/${CROSS_COMPILE_TARGET_x86}/bin/${CROSS_COMPILE_TARGET_x86}-
|
2016-01-07 00:48:30 +08:00
|
|
|
CROSS_COMPILE_x86_version ?= $(shell $(CROSS_COMPILE_x86)gcc -dumpversion)
|
2015-05-13 12:44:22 +08:00
|
|
|
|
|
|
|
CROSS_COMPILE= $(CROSS_COMPILE_$(ARCH))
|
2015-06-02 22:40:34 +08:00
|
|
|
CROSS_COMPILE_TARGET = ${CROSS_COMPILE_TARGET_${ARCH}}
|
|
|
|
CROSS_COMPILE_version = ${CROSS_COMPILE_${ARCH}_version}
|
2015-05-13 12:44:22 +08:00
|
|
|
|
2015-05-19 07:55:02 +08:00
|
|
|
TOOLCHAIN_LIBS = gcc
|
2015-05-17 20:55:21 +08:00
|
|
|
|
2015-06-02 22:40:34 +08:00
|
|
|
LIB_INCLUDE_DIR += -L ${XTOOLS_TOOLCHAIN_PATH}/${CROSS_COMPILE_TARGET}/lib/gcc/${CROSS_COMPILE_TARGET}/${CROSS_COMPILE_version}/
|
|
|
|
|
|
|
|
export CROSS_COMPILE TOOLCHAIN_LIBS LIB_INCLUDE_DIR
|