svn commit: r357332 - stable/11/sys/conf

Takahashi Yoshihiro nyan at FreeBSD.org
Fri Jan 31 12:39:52 UTC 2020


Author: nyan
Date: Fri Jan 31 12:39:51 2020
New Revision: 357332
URL: https://svnweb.freebsd.org/changeset/base/357332

Log:
  MFC r357043: Fix kernel-tags target.
  
  >  - A depend-file is broken up into .depend.*.o files. [1]
  >  - Fix an assembly file support.
  >
  >  PR:           241746
  >  Submitted by: leres [1]

Modified:
  stable/11/sys/conf/kern.post.mk
  stable/11/sys/conf/systags.sh
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/conf/kern.post.mk
==============================================================================
--- stable/11/sys/conf/kern.post.mk	Fri Jan 31 12:38:53 2020	(r357331)
+++ stable/11/sys/conf/kern.post.mk	Fri Jan 31 12:39:51 2020	(r357332)
@@ -312,7 +312,8 @@ kernel-cleandepend: .PHONY
 	rm -f ${DEPENDFILES} ${_ILINKS}
 
 kernel-tags:
-	@[ -f .depend ] || { echo "you must make depend first"; exit 1; }
+	@ls .depend.* > /dev/null 2>&1 || \
+	    { echo "you must make depend first"; exit 1; }
 	sh $S/conf/systags.sh
 
 kernel-install: .PHONY

Modified: stable/11/sys/conf/systags.sh
==============================================================================
--- stable/11/sys/conf/systags.sh	Fri Jan 31 12:38:53 2020	(r357331)
+++ stable/11/sys/conf/systags.sh	Fri Jan 31 12:39:51 2020	(r357332)
@@ -37,14 +37,14 @@
 
 rm -f tags tags.tmp tags.cfiles tags.sfiles tags.hfiles
 sed -e "s, machine/, ../../include/,g" \
-	-e 's,[a-z][^/    ]*/\.\./,,g' .depend | awk '{
+	-e 's,[a-z][^/    ]*/\.\./,,g' .depend.* | awk '{
 		for (i = 1; i <= NF; ++i) {
 			t = substr($i, length($i) - 1)
 			if (t == ".c")
 				cfiles[$i] = 1;
 			else if (t == ".h")
 				hfiles[$i] = 1;
-			else if (t == ".s")
+			else if (t == ".s" || t == ".S")
 				sfiles[$i] = 1;
 		}
 	};


More information about the svn-src-all mailing list