cmake: debug build support

Change DEBUG_BUILD define to use Kconfig's CONFIG_DEBUG

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
This commit is contained in:
Janusz Jankowski 2019-01-18 11:22:44 +01:00 committed by Liam Girdwood
parent 1526860228
commit 0682b6e923
5 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@ config DEBUG_HEAP
help
Select for enable heap alloc debugging
config DEBUG_BUILD
config DEBUG
bool "Debug build"
default n
help

View File

@ -48,7 +48,7 @@
#define DEBUG_GDB 0
#endif
#ifdef DEBUG_BUILD
#ifdef CONFIG_DEBUG
#define DEBUG_SET_FW_READY_FLAGS \
{ \

View File

@ -69,7 +69,7 @@ static const struct sof_ipc_fw_ready ready
.micro = SOF_MICRO,
.minor = SOF_MINOR,
.major = SOF_MAJOR,
#ifdef DEBUG_BUILD
#ifdef CONFIG_DEBUG
/* only added in debug for reproducability in releases */
.build = SOF_BUILD,
.date = __DATE__,

View File

@ -68,7 +68,7 @@ static const struct sof_ipc_fw_ready ready
.micro = SOF_MICRO,
.minor = SOF_MINOR,
.major = SOF_MAJOR,
#ifdef DEBUG_BUILD
#ifdef CONFIG_DEBUG
/* only added in debug for reproducability in releases */
.build = SOF_BUILD,
.date = __DATE__,

View File

@ -69,7 +69,7 @@ static const struct sof_ipc_fw_ready ready
.micro = SOF_MICRO,
.minor = SOF_MINOR,
.major = SOF_MAJOR,
#ifdef DEBUG_BUILD
#ifdef CONFIG_DEBUG
/* only added in debug for reproducability in releases */
.build = SOF_BUILD,
.date = __DATE__,