svn commit: r339926 - head/sys/conf

John Baldwin jhb at FreeBSD.org
Tue Oct 30 18:20:35 UTC 2018


Author: jhb
Date: Tue Oct 30 18:20:34 2018
New Revision: 339926
URL: https://svnweb.freebsd.org/changeset/base/339926

Log:
  Only invoke 'ls' if the local modules directory exists.
  
  This avoids a spurious make warning if /usr/local/sys/modules doesn't
  exist.
  
  Submitted by:	rgrimes
  Reported by:	markj

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

Modified: head/sys/conf/kern.post.mk
==============================================================================
--- head/sys/conf/kern.post.mk	Tue Oct 30 17:57:40 2018	(r339925)
+++ head/sys/conf/kern.post.mk	Tue Oct 30 18:20:34 2018	(r339926)
@@ -43,7 +43,7 @@ LOCAL_MODULES_DIR?= ${LOCALBASE}/sys/modules
 
 # Default to installing all modules installed by ports unless overridden
 # by the user.
-.if !defined(LOCAL_MODULES)
+.if !defined(LOCAL_MODULES) && exists($LOCAL_MODULES_DIR)
 LOCAL_MODULES!= ls ${LOCAL_MODULES_DIR}
 .endif
 .endif


More information about the svn-src-head mailing list