svn commit: r351799 - head/sys/conf

Kyle Evans kevans at FreeBSD.org
Tue Sep 3 22:01:13 UTC 2019


Author: kevans
Date: Tue Sep  3 22:01:12 2019
New Revision: 351799
URL: https://svnweb.freebsd.org/changeset/base/351799

Log:
  LOCAL_MODULES: Allow LOCAL_MODULES="" in src.conf to work
  
  Currently LOCAL_MODULES= works, but LOCAL_MODULES="" causes build errors as
  .for still has the empty string to loop over. An .if empty prior to the loop
  was considered, but LOCAL_MODULES has empty quotes at that point and thus,
  isn't empty. A better solution likely exists, but this floats us by for
  now...

Modified:
  head/sys/conf/kern.post.mk

Modified: head/sys/conf/kern.post.mk
==============================================================================
--- head/sys/conf/kern.post.mk	Tue Sep  3 21:11:04 2019	(r351798)
+++ head/sys/conf/kern.post.mk	Tue Sep  3 22:01:12 2019	(r351799)
@@ -77,10 +77,12 @@ modules-${target}:
 	    ${target:S/^reinstall$/install/:S/^clobber$/cleandir/}
 .endif
 .for module in ${LOCAL_MODULES}
+.if !empty(module)
 	@${ECHODIR} "===> ${module} (${target:S/^reinstall$/install/:S/^clobber$/cleandir/})"
 	@cd ${LOCAL_MODULES_DIR}/${module}; ${MKMODULESENV} ${MAKE} \
 	    DIRPRFX="${module}/" \
 	    ${target:S/^reinstall$/install/:S/^clobber$/cleandir/}
+.endif
 .endfor
 .endif
 .endfor


More information about the svn-src-all mailing list