Date: Sat, 10 Jan 2015 23:43:40 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r276951 - head/sys/modules/aic7xxx/ahc Message-ID: <201501102343.t0ANheO1036404@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501102343.t0ANheO1036404>