From cad5f08b56a0aa8bf0a59da3ec6ba036caefc7ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Mon, 21 Mar 2016 09:03:20 +0100 Subject: [PATCH] Makefile.include: Set PREFIX if not set --- Makefile.include | 4 ++++ cpu/Makefile.include.cortexm_common | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.include b/Makefile.include index 4decf6ed66..2955ef44f6 100644 --- a/Makefile.include +++ b/Makefile.include @@ -159,6 +159,10 @@ endif export TOOLCHAIN +# default toolchain prefix, defaults to target triple followed by a dash, you +# will most likely not need to touch this. +export PREFIX ?= $(if $(TARGET_ARCH),$(TARGET_ARCH)-) + # Import all toolchain settings include $(RIOTCPU)/Makefile.include.$(TOOLCHAIN) diff --git a/cpu/Makefile.include.cortexm_common b/cpu/Makefile.include.cortexm_common index 6537e465ca..4eac243493 100644 --- a/cpu/Makefile.include.cortexm_common +++ b/cpu/Makefile.include.cortexm_common @@ -1,10 +1,6 @@ # Target triple for the build. Use arm-none-eabi if you are unsure. export TARGET_ARCH ?= arm-none-eabi -# default toolchain prefix, defaults to target triple followed by a dash, you -# will most likely not need to touch this. -export PREFIX ?= $(if $(TARGET_ARCH),$(TARGET_ARCH)-) - # define build specific options export CFLAGS_CPU = -mcpu=$(MCPU) -mlittle-endian -mthumb $(CFLAGS_FPU) ifneq (llvm,$(TOOLCHAIN))