From 047ae4033c19c035eca357ed003da33f1ce12e65 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Mon, 13 Feb 2017 08:32:17 -0600 Subject: [PATCH] toolchain.gccarmemb: set DTC for building targets that use devicetrees We default DTC to /usr/bin/dtc so we can build targets that are using devicetree and not using the zephyr SDK (which provides a version of dtc). Change-Id: I84c3e3181eda75b4da715e16bbde2e67f28785e7 Signed-off-by: Kumar Gala --- scripts/Makefile.toolchain.gccarmemb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/Makefile.toolchain.gccarmemb b/scripts/Makefile.toolchain.gccarmemb index 028a04b9131..4e7db43f1fa 100644 --- a/scripts/Makefile.toolchain.gccarmemb +++ b/scripts/Makefile.toolchain.gccarmemb @@ -10,4 +10,6 @@ LIBGCC_DIR = $(shell dirname `$(CROSS_COMPILE)gcc ${KBUILD_CFLAGS} -print-libgcc 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 +DTC ?= /usr/bin/dtc + +export CROSS_COMPILE TOOLCHAIN_LIBS TOOLCHAIN_CFLAGS LIB_INCLUDE_DIR DTC