summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2e5a341dd..8a5a2b65f 100644
--- a/Makefile
+++ b/Makefile
@@ -8,9 +8,11 @@ COMPARE ?= 0
# files, or use arm-none-eabi binaries on the system
# if dkP is not installed on tihs system
+ifneq (,$(TOOLCHAIN))
ifneq ($(wildcard $(TOOLCHAIN)/bin),)
export PATH := $(TOOLCHAIN)/bin:$(PATH)
endif
+endif
PREFIX := arm-none-eabi-
OBJCOPY := $(PREFIX)objcopy