diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2011-03-15 13:50:56 +0100 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2011-03-15 13:50:56 +0100 |
commit | 773b6d3896fc34098c3145e2c504b53f0df6c033 (patch) | |
tree | cf5f776f05c84bf04e6cd93700a4642b949fbb5a | |
parent | 4f8a95e1cd3562e2d179420822b7db29d0c2a90e (diff) | |
download | ptxdist-773b6d3896fc34098c3145e2c504b53f0df6c033.tar.gz ptxdist-773b6d3896fc34098c3145e2c504b53f0df6c033.tar.xz |
net-snmp: fix debugging options
Debugging options are a bit unusual and have three states. Now we can have the
default case, too. Also, update the comment about the build-fix for 5.6.1.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
-rw-r--r-- | rules/net-snmp.in | 26 | ||||
-rw-r--r-- | rules/net-snmp.make | 6 |
2 files changed, 27 insertions, 5 deletions
diff --git a/rules/net-snmp.in b/rules/net-snmp.in index 9b33f92d6..964cec7ed 100644 --- a/rules/net-snmp.in +++ b/rules/net-snmp.in @@ -6,7 +6,7 @@ menuconfig NET_SNMP select GCCLIBS_GCC_S if NET_SNMP_AGENT select LIBC_DL if NET_SNMP_AGENT || NET_SNMP_APPLICATIONS select NET_SNMP_MD5 -# ^ build fix for 5.6.1 +# ^ build fix for 5.6.1 (see http://sourceforge.net/tracker/index.php?func=detail&aid=3184697&group_id=12694&atid=112694) if NET_SNMP @@ -59,9 +59,29 @@ config NET_SNMP_LOCAL_SMUX bool prompt "restrict SMUX connections to localhost (by default)" -config NET_SNMP_DEBUGGING - bool +choice prompt "debugging" + default NET_SNMP_DEFAULT_DEBUGGING + +config NET_SNMP_DEFAULT_DEBUGGING + bool + prompt "default" + help + Use default debugging, selectable via -D on the command-line. + +config NET_SNMP_FORCE_DEBUGGING + bool + prompt "enforce" + help + Always print all debugging even when not specified on command-line. + +config NET_SNMP_STRIP_DEBUGGING + bool + prompt "strip" + help + Strip debugging code entirely. + +endchoice config NET_SNMP_DEVELOPER bool diff --git a/rules/net-snmp.make b/rules/net-snmp.make index b1e150c3f..e4716d3a9 100644 --- a/rules/net-snmp.make +++ b/rules/net-snmp.make @@ -137,9 +137,11 @@ else NET_SNMP_AUTOCONF += --disable-local-smux endif -ifdef PTXCONF_NET_SNMP_DEBUGGING +ifdef PTXCONF_NET_SNMP_FORCE_DEBUGGING NET_SNMP_AUTOCONF += --enable-debugging -else +endif + +ifdef PTXCONF_NET_SNMP_STRIP_DEBUGGING NET_SNMP_AUTOCONF += --disable-debugging endif |