From 3cfb1b60993df080bffe10abd279e871d5f1b06b Mon Sep 17 00:00:00 2001 From: Joakim Gebart <joakim.gebart@eistec.se> Date: Mon, 13 Jul 2015 17:04:57 +0200 Subject: [PATCH] boards/Makefile.include.cortexm_common: Add TOOLCHAIN=gcc as an alias for TOOLCHAIN=gnu --- boards/Makefile.include.cortexm_common | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/boards/Makefile.include.cortexm_common b/boards/Makefile.include.cortexm_common index 1207989375..5d922dba1a 100644 --- a/boards/Makefile.include.cortexm_common +++ b/boards/Makefile.include.cortexm_common @@ -11,6 +11,12 @@ ifeq (clang,$(TOOLCHAIN)) # opposed to one set in the environment) override TOOLCHAIN := llvm endif +# TOOLCHAIN = gcc is an alias for TOOLCHAIN = gnu +ifeq (gcc,$(TOOLCHAIN)) +# use override so that we can redefine a variable set on the command line (as +# opposed to one set in the environment) +override TOOLCHAIN := gnu +endif export TOOLCHAIN -- GitLab