mirror of
https://github.com/ipxe/ipxe
synced 2025-12-17 10:01:03 +03:00
[build] Allow DEBUG=... to affect builds of assembler source files
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -204,7 +204,6 @@ REQUEST_EXPANDED ( CONFIG_SYMBOL );
|
||||
/** @defgroup dbg Debugging infrastructure
|
||||
* @{
|
||||
*/
|
||||
#ifndef ASSEMBLY
|
||||
|
||||
/** @def DBG
|
||||
*
|
||||
@@ -255,6 +254,12 @@ REQUEST_EXPANDED ( CONFIG_SYMBOL );
|
||||
*/
|
||||
#define DEBUG_SYMBOL PREFIX_OBJECT ( debug_ )
|
||||
|
||||
#if DEBUG_SYMBOL == 0
|
||||
#define NDEBUG
|
||||
#endif
|
||||
|
||||
#ifndef ASSEMBLY
|
||||
|
||||
/** printf() for debugging
|
||||
*
|
||||
* This function exists so that the DBG() macros can expand to
|
||||
@@ -544,11 +549,6 @@ int __debug_disable;
|
||||
#define DBGCIO_PAUSE( ... ) DBGC_PAUSE_IF ( IO, ##__VA_ARGS__ )
|
||||
#define DBGCIO_MORE( ... ) DBGC_MORE_IF ( IO, ##__VA_ARGS__ )
|
||||
|
||||
|
||||
#if DEBUG_SYMBOL == 0
|
||||
#define NDEBUG
|
||||
#endif
|
||||
|
||||
#endif /* ASSEMBLY */
|
||||
/** @} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user