From 714178afd2dc6a5319d2b3cd59548f8df91e2540 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Thu, 19 Dec 2013 15:24:31 +0100 Subject: [PATCH] introduce CPU name macro via CFLAG --- Makefile.include | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.include b/Makefile.include index 6de19126ac..c2b7e5768e 100644 --- a/Makefile.include +++ b/Makefile.include @@ -13,7 +13,8 @@ endif # if you want to publish the board into the sources as an uppercase #define BB = $(shell echo $(BOARD)|tr 'a-z' 'A-Z') -CFLAGS += -DBOARD=$(BB) +CPUDEF = $(shell echo $(CPU)|tr 'a-z' 'A-Z') +CFLAGS += -DBOARD=$(BB) -DCPU_$(CPUDEF) export CFLAGS # mandatory includes!