summaryrefslogtreecommitdiffstats
path: root/Makefile
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
parent4296082b02630ac56697fc81b13465b49db2d7b1 (diff)
downloadblackbird-skiboot-b54745c0a81af6e2ecd86f50f2b66aa9d0f4409e.tar.gz
blackbird-skiboot-b54745c0a81af6e2ecd86f50f2b66aa9d0f4409e.zip
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')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 758bbb91..f13bf50f 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,11 @@ else
endif
#
+# Main debug switch
+#
+DEBUG ?= 0
+
+#
# Set to enable SLW bits
#
PORE ?= 1
@@ -30,7 +35,7 @@ KERNEL ?=
#
# Optional build with advanced stack checking
#
-STACK_CHECK ?= 0
+STACK_CHECK ?= $(DEBUG)
#
# Where is the source directory, must be a full path (no ~)
OpenPOWER on IntegriCloud