Add `ENABLE_ASSERTIONS` build option
Antonio Nino Diaz authored
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: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
cc8b5632
Name Last commit Last update
bl1 Merge pull request #885 from antonio-nino-diaz-arm/an/console-flush
bl2 Merge pull request #885 from antonio-nino-diaz-arm/an/console-flush
bl2u Merge pull request #885 from antonio-nino-diaz-arm/an/console-flush
bl31 Merge pull request #885 from antonio-nino-diaz-arm/an/console-flush
bl32 Add support for GCC stack protection
common Add `ENABLE_ASSERTIONS` build option
docs Add `ENABLE_ASSERTIONS` build option
drivers TZC: rename included C file to a header
fdts Fix incorrect copyright notices
include Add `ENABLE_ASSERTIONS` build option
lib Add `ENABLE_ASSERTIONS` build option
make_helpers Add support for GCC stack protection
plat Merge pull request #899 from vwadekar/tegra186-platform-support-v6
services spd: trusty: support for AARCH64 mode
tools fiptool: Embed a pointer to an image within the image descriptor
.checkpatch.conf Mandate 'Signed-off-by' line in commit messages
.gitignore gitignore: ignore GNU GLOBAL tag files
Makefile Add `ENABLE_ASSERTIONS` build option
acknowledgements.md Add Xilinx to acknowledgements file
contributing.md Drop requirement for CLA in contribution.md
dco.txt Drop requirement for CLA in contribution.md
license.md Update year in copyright text to 2014
readme.md readme.md: Add tested Linaro release information for FVPs