Add `ENABLE_ASSERTIONS` build option
Add the new build option `ENABLE_ASSERTIONS` that controls whether or
not assert functions are compiled out. It defaults to 1 for debug builds
and to 0 for release builds.

Additionally, a following patch will be done to allow this build option
to hide auxiliary code used for the checks done in an `assert()`. This
code is is currently under the DEBUG build flag.

Assert messages are now only printed if LOG_LEVEL >= LOG_LEVEL_INFO,
which is the default for debug builds.

This patch also updates the User Guide.

Change-Id: I1401530b56bab25561bb0f274529f1d12c5263bc
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
1 parent 239b085 commit cc8b56322bb04569a5adf944774b16862782c95b
@Antonio Nino Diaz Antonio Nino Diaz authored on 18 Apr 2017
Showing 6 changed files
View
Makefile
View
common/aarch32/debug.S
View
common/aarch64/debug.S
View
docs/user-guide.md
View
include/lib/stdlib/assert.h
View
lib/stdlib/assert.c