summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlavio Santes <flavio.santes@intel.com>2016-11-21 16:51:08 -0600
committerAnas Nashif <nashif@linux.intel.com>2016-11-22 17:10:49 +0000
commitbe1dd33053f7fa731b4950d0113d9eb8a72926ac (patch)
tree054a9c74a399b93f09e2e97bc374b327d48a40e3 /Makefile
parent22f438b5ef1da2c86b6f9629d220ff49880d7390 (diff)
build: Add __ZEPHYR__ to Makefile
This commit adds the __ZEPHYR__ define to the main Makefile. This new define may help to drive conditional compilation when writing multi-platform applications. Change-Id: I81a37f9c86fa7f85bbac7cd0c0cd4150cbff1911 Signed-off-by: Flavio Santes <flavio.santes@intel.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dead7c03e..ead82b21c 100644
--- a/Makefile
+++ b/Makefile
@@ -377,7 +377,7 @@ ZEPHYRINCLUDE = \
$(USERINCLUDE) \
$(STDINCLUDE)
-KBUILD_CPPFLAGS := -DKERNEL
+KBUILD_CPPFLAGS := -DKERNEL -D__ZEPHYR__=1
KBUILD_CFLAGS := -c -g -std=c99 \
-fno-asynchronous-unwind-tables \