aboutsummaryrefslogtreecommitdiff
path: root/tools/build_system
diff options
context:
space:
mode:
authorNicola Mazzucato <nicola.mazzucato@arm.com>2018-08-16 11:32:34 +0100
committerdavidcunado-arm <david.cunado@arm.com>2018-08-22 11:54:40 +0100
commit79275af346fafbcd4301dbbf49207b81a64e43d3 (patch)
tree613378fd7b32f6e3b2b77aa357094090d3d3bbcd /tools/build_system
parent2b0f081b2c8320dbee92341d87620b13ed755d46 (diff)
bs: Rename MODE_DEBUG to BUILD_MODE_DEBUG
Renamed as all symbols/define exposed by the build system should have the prefix BUILD_ in their names. Change-Id: I8893121b32c31584a163a991547925cc028ee1c9 Signed-off-by: Nicola Mazzucato <nicola.mazzucato@arm.com>
Diffstat (limited to 'tools/build_system')
-rw-r--r--tools/build_system/doc.md2
-rw-r--r--tools/build_system/rules.mk2
-rw-r--r--tools/build_system/test.mk2
3 files changed, 3 insertions, 3 deletions
diff --git a/tools/build_system/doc.md b/tools/build_system/doc.md
index b6f6165c..2eee57f1 100644
--- a/tools/build_system/doc.md
+++ b/tools/build_system/doc.md
@@ -189,7 +189,7 @@ and assembly units:
* __BUILD_STRING__ - A string containing build information (date, time and git
commit). The string is assembled using the tool build_string.py.
* __BUILD_TESTS__ - Set when building the framework unit tests.
-* __MODE_DEBUG__ - Set when building in debug mode.
+* __BUILD_MODE_DEBUG__ - Set when building in debug mode.
* __NDEBUG__ - Set when building in release mode. This definition is used by the
standard C library to disable the assert() support.
* __BUILD_VERSION_MAJOR__ - Major version number.
diff --git a/tools/build_system/rules.mk b/tools/build_system/rules.mk
index 2b74d777..86274f7c 100644
--- a/tools/build_system/rules.mk
+++ b/tools/build_system/rules.mk
@@ -104,7 +104,7 @@ ifeq ($(MODE),release)
else
O ?= $(DEFAULT_OPT_GCC_DEBUG)
- DEFINES += MODE_DEBUG
+ DEFINES += BUILD_MODE_DEBUG
endif
#
diff --git a/tools/build_system/test.mk b/tools/build_system/test.mk
index df6c82aa..c248e0be 100644
--- a/tools/build_system/test.mk
+++ b/tools/build_system/test.mk
@@ -23,7 +23,7 @@ CFLAGS += -Wno-strict-aliasing
CFLAGS += -std=c11
CFLAGS += $(addprefix -I,$(INCLUDES))
-DEFINES += MODE_DEBUG
+DEFINES += BUILD_MODE_DEBUG
DEFINES += BUILD_TESTS
# Search path for C sources