samba: add option for built-in debug messages
PATCH 1/1 samba: add option for built-in debug messages
This option allows users to specify the maximum level for compiled-in debug messages with -1 being none.
In a typical scenario of nmbd+smbd+smbpasswd this can save a full megabyte of target space.
Signed-off-by Gustavo Zacarias <[email protected]>
--- package/samba/Config.in | 8 ++++++++ package/samba/samba.mk | 3 +++ 2 files changed, 11 insertions(+)
package/samba/Config.in +8 -0
@@ -13,6 +13,14 @@ config BR2_PACKAGE_SAMBA if BR2_PACKAGE_SAMBA +config BR2_PACKAGE_SAMBA_MAX_DEBUGLEVEL + int "Maximum level of compiled-in debug messages" + range -1 10000 + default -1 + help + Define the level of compiled-in debug messages. + This allows for big space savings, -1 being the lowest (none). + config BR2_PACKAGE_SAMBA_LIBICONV bool "extended encodings (libiconv)" depends on !BR2_ENABLE_LOCALE
package/samba/samba.mk +3 -0
@@ -158,6 +158,9 @@ else SAMBA_CONF_OPT += --with-libiconv="" endif +# Compiled debug messages by level +SAMBA_CONF_OPT += CFLAGS="$(TARGET_CFLAGS) -DMAX_DEBUG_LEVEL=$(BR2_PACKAGE_SAMBA_MAX_DEBUGLEVEL)" + ifeq ($(BR2_PACKAGE_SAMBA_SWAT),y) ifneq ($(BR2_HAVE_DOCUMENTATION),y) SAMBA_POST_INSTALL_TARGET_HOOKS += SAMBA_REMOVE_SWAT_DOCUMENTATION
Signature · 1 line
1.8.1.5
PATCH 1/1 samba: add option for built-in debug messages
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> This option allows users to specify the maximum level for compiled-in Gustavo> debug messages with -1 being none.
Gustavo> In a typical scenario of nmbd+smbd+smbpasswd this can save a full Gustavo> megabyte of target space.
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard