summaryrefslogtreecommitdiff
path: root/bl31/bl31.mk
diff options
context:
space:
mode:
authorAndrew Thoelke <andrew.thoelke@arm.com>2014-06-03 11:50:53 +0100
committerAndrew Thoelke <andrew.thoelke@arm.com>2014-06-11 21:26:01 +0100
commit9c22b32300320c40aa36f73f84a51cdc5218780e (patch)
tree059792312d750e072ae02235343acb1faf5d31e4 /bl31/bl31.mk
parent977fbcd4e0842e590a961d6f40c14653caa9301a (diff)
Make the BL3-1 crash reporting optional
This patch makes the console crash dump of processor register state optional based on the CRASH_REPORTING make variable. This defaults to only being enabled for DEBUG builds. This can be overridden by setting a different value in the platform makefile or on the make command line. Change-Id: Icfa1b2d7ff0145cf0a85e8ad732f9cee7e7e993f
Diffstat (limited to 'bl31/bl31.mk')
-rw-r--r--bl31/bl31.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/bl31/bl31.mk b/bl31/bl31.mk
index 8155f3dd..99fc357e 100644
--- a/bl31/bl31.mk
+++ b/bl31/bl31.mk
@@ -59,3 +59,11 @@ IMF_READ_INTERRUPT_ID := 0
$(eval $(call assert_boolean,IMF_READ_INTERRUPT_ID))
$(eval $(call add_define,IMF_READ_INTERRUPT_ID))
+# Flag used to inidicate if Crash reporting via console should be included
+# in BL3-1. This defaults to being present in DEBUG builds only
+ifndef CRASH_REPORTING
+CRASH_REPORTING := $(DEBUG)
+endif
+
+$(eval $(call assert_boolean,CRASH_REPORTING))
+$(eval $(call add_define,CRASH_REPORTING))