aboutsummaryrefslogtreecommitdiff
path: root/Makefile.main
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-07-24 09:26:59 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-08-18 16:04:26 +1000
commitb54745c0a81af6e2ecd86f50f2b66aa9d0f4409e (patch)
tree5ef40e0df885ea8517d7984875cbf27a63efd48c /Makefile.main
parent4296082b02630ac56697fc81b13465b49db2d7b1 (diff)
downloadskiboot-b54745c0a81af6e2ecd86f50f2b66aa9d0f4409e.zip
skiboot-b54745c0a81af6e2ecd86f50f2b66aa9d0f4409e.tar.gz
skiboot-b54745c0a81af6e2ecd86f50f2b66aa9d0f4409e.tar.bz2
Add global DEBUG make flag
And use it to control the stack checker, memory poisoning and CCAN's list debugging. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'Makefile.main')
-rw-r--r--Makefile.main4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.main b/Makefile.main
index 35d1609..179ed11 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -60,6 +60,10 @@ CPPFLAGS += -DBITS_PER_LONG=64 -DHAVE_BIG_ENDIAN
# causing all our printf's to warn
CPPFLAGS += -ffreestanding
+ifeq ($(DEBUG),1)
+CPPFLAGS += -DDEBUG -DCCAN_LIST_DEBUG
+endif
+
CFLAGS := -fno-strict-aliasing -fstack-protector-all -pie -mbig-endian -m64
CFLAGS += -Wl,--oformat,elf64-powerpc
CFLAGS += $(call try-cflag,$(CC),-mabi=elfv1)