zephyr/scripts/Makefile.toolchain.gccarmemb
Kumar Gala 0bf30b0b9d toolchain.gccarmemb: Cleanup Makefile
Simplify setting of CROSS_COMPILE to just a single line.

Change-Id: I6bb00b404b23011e93897c7cb4a882f2f043c973
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-07-28 14:08:49 +00:00

14 lines
440 B
Makefile

ifndef GCCARMEMB_TOOLCHAIN_PATH
$(error GCCARMEMB_TOOLCHAIN_PATH is not set)
endif
CROSS_COMPILE = ${GCCARMEMB_TOOLCHAIN_PATH}/bin/arm-none-eabi-
TOOLCHAIN_LIBS = gcc
LIBGCC_DIR = $(shell dirname `$(CROSS_COMPILE)gcc ${KBUILD_CFLAGS} -print-libgcc-file-name`)
LIB_INCLUDE_DIR += -L ${LIBGCC_DIR}
TOOLCHAIN_CFLAGS = -I${GCCARMEMB_TOOLCHAIN_PATH}/arm-none-eabi/include
export CROSS_COMPILE TOOLCHAIN_LIBS TOOLCHAIN_CFLAGS LIB_INCLUDE_DIR