# $NetBSD: opt-debug-file.mk,v 1.8 2022/01/11 19:47:34 rillig Exp $ # # Tests for the -dF command line option, which redirects the debug log # to a file instead of writing it to stderr. # Enable debug logging for variable assignments and evaluation (-dv) # and redirect the debug logging to the given file. .MAKEFLAGS: -dvFopt-debug-file.debuglog # This output goes to the debug log file. VAR= value ${:Uexpanded} # Hide the logging output for the remaining actions. # Before main.c 1.362 from 2020-10-03, it was not possible to disable debug # logging again. Since then, an easier way is the undocumented option '-d0'. .MAKEFLAGS: -dF/dev/null # Make sure that the debug logging file contains some logging. DEBUG_OUTPUT:= ${:!cat opt-debug-file.debuglog!} # Grmbl. Because of the := operator in the above line, the variable # value contains ${:Uexpanded}. This variable expression is expanded # when it is used in the condition below. Therefore, be careful when storing # untrusted input in variables. #.MAKEFLAGS: -dc -dFstderr .if !${DEBUG_OUTPUT:tW:M*VAR = value expanded*} . error ${DEBUG_OUTPUT} .endif # To get the unexpanded text that was actually written to the debug log # file, the content of that log file must not be stored in a variable. # # XXX: In the :M modifier, a dollar is escaped using '$$', not '\$'. This # escaping scheme unnecessarily differs from all other modifiers. .if !${:!cat opt-debug-file.debuglog!:tW:M*VAR = value $${:Uexpanded}*} . error .endif .MAKEFLAGS: -d0 # See Parse_Error. .MAKEFLAGS: -dFstdout . info This goes to stderr only, once. .MAKEFLAGS: -dFstderr . info This goes to stderr only, once. .MAKEFLAGS: -dFopt-debug-file.debuglog . info This goes to stderr, and in addition to the debug log. .MAKEFLAGS: -dFstderr -d0c .if ${:!cat opt-debug-file.debuglog!:Maddition:[#]} != 1 . error .endif # See ApplyModifier_Subst, which calls Error. .MAKEFLAGS: -dFstdout : This goes to stderr only, once. ${:U:S .MAKEFLAGS: -dFstderr : This goes to stderr only, once. ${:U:S .MAKEFLAGS: -dFopt-debug-file.debuglog : This goes to stderr, and in addition to the debug log. ${:U:S .MAKEFLAGS: -dFstderr -d0c .if ${:!cat opt-debug-file.debuglog!:Mdelimiter:[#]} != 1 . error .endif # If the debug log file cannot be opened, make prints an error message and # exits immediately since the debug log file is usually selected from the # command line. _:= ${:!rm opt-debug-file.debuglog!} .MAKEFLAGS: -dF/nonexistent-6f21c672-a22d-4ef7/opt-debug-file.debuglog /microcode?id=db94de78562805cd0256c37d0dfe6c6ff4b12fb0'>microcode/isp/asm_sbus.h
AgeCommit message (Expand)Author
2008-03-11Checkpoint of some fairly major isp(4) rototilling.mjacob
2007-05-24Major update to isp(4) driver to bring it in line with external sources.mjacob
2005-12-11merge ktrace-lwp.christos
2005-05-31remove bogus cast.christos
2005-02-27nuke trailing whitespaceperry
2002-03-22Cast for now non-const in ispdv structure.mjacob
2000-10-16roll SBus f/w to latest released level (1.37)mjacob
1999-12-03add back firmware with BSD style copyright as approved by Qlogicmjacob
1999-11-16Re-add stub Qlogic F/W files so that life is easier when/if the newmjacob
1999-10-28Remove f/w from tree. The licences are not acceptable to TNF.mjacob
1999-03-25roll internal tag levelmjacob
1999-03-17roll internal tagmjacob
1999-01-31darn- 7.55 seems to be a little unstable- go back to 1.31mjacob
1999-01-30Grrr.. Do the *correct* and *usable* 1.31 firmware. You have to powermjacob
1998-12-28clean up headermjacob
1998-12-05Add in and enable latest SBus ISP Firmware (1.31)mjacob
1998-09-08Adjust copyright to reflect that this is really still owned by Qlogicmjacob
1997-08-16Addition of PCI Qlogic ISP2100 (Fibre Channel) support meant a slightmjacob
1997-03-13change microcode array definitions from "unsigned short" to the morecgd
1997-03-13Make the microcode table const.mycroft
1997-03-12NetBSD RCS ID tweaks, a few comment block tweaks. Also, make copyrightcgd
1997-03-12ISP 10x0 driver from Matthew Jacob of NASA Ames Research Center.cgd