svn commit: r276951 - head/sys/modules/aic7xxx/ahc

Warner Losh imp at FreeBSD.org
Sat Jan 10 23:43:41 UTC 2015


Author: imp
Date: Sat Jan 10 23:43:39 2015
New Revision: 276951
URL: https://svnweb.freebsd.org/changeset/base/276951

Log:
  Use .MAKE.LEVEL being defined as a bootstrap aid when providing
  fallback targets to build the aic generated files. fmake doesn't like
  the current construct, and since it doesn't have .MAKE.LEVEL, just
  don't provide the fallback targets for fmake. This gives a little
  extra compatibility to old systems trying to build new kernels at
  almost no cost to the current code.

Modified:
  head/sys/modules/aic7xxx/ahc/Makefile

Modified: head/sys/modules/aic7xxx/ahc/Makefile
==============================================================================
--- head/sys/modules/aic7xxx/ahc/Makefile	Sat Jan 10 23:43:37 2015	(r276950)
+++ head/sys/modules/aic7xxx/ahc/Makefile	Sat Jan 10 23:43:39 2015	(r276951)
@@ -35,7 +35,11 @@ ${GENSRCS}:								 \
 			${REG_PRINT_OPT}				 \
 			-i ${SYSDIR}/dev/aic7xxx/aic7xxx_osm.h \
 			${SYSDIR}/dev/aic7xxx/aic7xxx.seq
-.else
+.elif defined(.MAKE.LEVEL)
+# This target interfers with fmake's world view and causes this message
+# to appear when building the tree from 8.x worlds where fmake is the
+# default. fmake doens't define .MAKE.LEVEL so key off that to omit it,
+# while still allowing more-modern makes to theoretically update things.
 ${GENSRCS}:
 	@echo "Error: ${.TARGET} is missing.  Run 'make ahcfirmware'"
 .endif


More information about the svn-src-head mailing list