2016-04-12 02:21:13 +08:00
|
|
|
ifndef GCCARMEMB_TOOLCHAIN_PATH
|
|
|
|
$(error GCCARMEMB_TOOLCHAIN_PATH is not set)
|
|
|
|
endif
|
|
|
|
|
2016-06-30 03:48:24 +08:00
|
|
|
CROSS_COMPILE = ${GCCARMEMB_TOOLCHAIN_PATH}/bin/arm-none-eabi-
|
2016-04-12 02:21:13 +08:00
|
|
|
|
|
|
|
TOOLCHAIN_LIBS = gcc
|
2016-06-30 03:48:24 +08:00
|
|
|
LIBGCC_DIR = $(shell dirname `$(CROSS_COMPILE)gcc ${KBUILD_CFLAGS} -print-libgcc-file-name`)
|
2016-04-12 02:21:13 +08:00
|
|
|
|
2016-06-30 03:47:21 +08:00
|
|
|
LIB_INCLUDE_DIR += -L ${LIBGCC_DIR}
|
2016-06-07 01:00:59 +08:00
|
|
|
TOOLCHAIN_CFLAGS = -I${GCCARMEMB_TOOLCHAIN_PATH}/arm-none-eabi/include
|
2016-04-12 02:21:13 +08:00
|
|
|
|
2017-05-31 00:28:55 +08:00
|
|
|
DTC ?= dtc
|
2017-02-13 22:32:17 +08:00
|
|
|
|
|
|
|
export CROSS_COMPILE TOOLCHAIN_LIBS TOOLCHAIN_CFLAGS LIB_INCLUDE_DIR DTC
|