From 07380846577b72009889ea0f42da42fd61a33267 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Tue, 5 Mar 2019 14:00:41 +0100 Subject: [PATCH] Makefile: add APPLICATION to macro defines This allows the application code to know what application it is running --- Makefile.include | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.include b/Makefile.include index 9c45a7440f..eb2dad6f9c 100644 --- a/Makefile.include +++ b/Makefile.include @@ -312,6 +312,7 @@ endif BOARDDEF := $(shell echo $(BOARD) | tr 'a-z' 'A-Z' | tr '-' '_') CPUDEF := $(shell echo $(CPU) | tr 'a-z' 'A-Z' | tr '-' '_') MCUDEF := $(shell echo $(MCU) | tr 'a-z' 'A-Z' | tr '-' '_') +CFLAGS += -DRIOT_APPLICATION=\"$(APPLICATION)\" CFLAGS += -DBOARD_$(BOARDDEF)=\"$(BOARD)\" -DRIOT_BOARD=BOARD_$(BOARDDEF) CFLAGS += -DCPU_$(CPUDEF)=\"$(CPU)\" -DRIOT_CPU=CPU_$(CPUDEF) CFLAGS += -DMCU_$(MCUDEF)=\"$(MCU)\" -DRIOT_MCU=MCU_$(MCUDEF)