make maxdebug
PATCH 1/1 make maxdebug
Andrew,
Here's a patch to have maximum debug reporting.If you find the idea
interesting, I could work on full "debug off" feature and improve it....
Regards,
FabF
Makefile +24 -0
@@ -1167,4 +1167,28 @@ endif # skip-makefile +# Maximum debug selection. +# All modules having #undef DEBUG_XXX will be #define DEBUG_XXX +# .config is synced as well. +# WARNING : Irreversible process +# (06/2004 - FabF) +maxdebug : + @path=""; \ + ls -R | while read line; do \ + entry=`echo $$line | awk '/:$$/'`; \ + if [ ! -z $$entry ]; then \ + path=`echo $$entry | sed s/://g`; \ + else \ + if [ ! -z `echo $$line | awk '/\.c$$/'` ] || [ ! -z `echo $$line | awk '/\.h$$/'` ]; then \ + if [ ! -z "$$line" ]; then \ + sed /DEBUG/s/undef/define/g $$path/$$line > $$path/$$line"tmp"; \ + mv $$path/$$line"tmp" $$path/$$line; \ + echo $$line ; \ + fi \ + fi \ + fi \ + done; \ + sed /DEBUG/s/'# '//g .config > .config.tmp; \ + sed /DEBUG/s/'is not set'/'=y'/g .config.tmp > .config + FORCE: