summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2016-11-28 16:28:49 -0500
committerAnas Nashif <nashif@linux.intel.com>2016-11-30 15:23:52 +0000
commitce9cb26a2ee159049b9375a8fcf4095ba25a80ff (patch)
tree64aeb3f73337d44eae98437c3b20dae65f1561bc /Makefile
parent7fee3fdb13dd0844f79834e2b7127272de4fffea (diff)
build: add more security related compiler flags
Add the following: * -Wformat * -Wformat-security * -D_FORTIFY_SOURCE=2 Change-Id: I4768713126637f851489d13fc1d803a18986f4c0 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ead82b21c..fee20104f 100644
--- a/Makefile
+++ b/Makefile
@@ -382,6 +382,9 @@ KBUILD_CPPFLAGS := -DKERNEL -D__ZEPHYR__=1
KBUILD_CFLAGS := -c -g -std=c99 \
-fno-asynchronous-unwind-tables \
-Wall \
+ -Wformat \
+ -Wformat-security \
+ -D_FORTIFY_SOURCE=2 \
-Wno-format-zero-length \
-Wno-main -ffreestanding