Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jun 2003 18:51:38 +0100
From:      Mark Murray <mark@grondar.org>
To:        arch@freebsd.org
Subject:   change to config(8) to help with linting the kernel.
Message-ID:  <200306141751.h5EHpcHh027173@grimreaper.grondar.org>

next in thread | raw e-mail | index | archive | help
------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <27170.1055613077.1@grondar.org>

Hiya

The enclosed diff (a not very pretty hack) causes config(8) to
emit targets to enable .ln files to be built for linting. It is
not very pretty because
1) it can't use a "lint/nolint" flag in the conf/files.* flag
   because that would take a hectic redesign of config.
2) it therefore emits *.ln-building rules for _all_ targets.
   this is overkill for .s files, but it does not break things,
   as these files are never linted.

Comments?

M
--
Mark Murray
iumop ap!sdn w,I idlaH

------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <27170.1055613077.2@grondar.org>
Content-Description: diff

Index: mkmakefile.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/config/mkmakefile.c,v
retrieving revision 1.76
diff -u -d -r1.76 mkmakefile.c
--- mkmakefile.c	24 Apr 2003 00:52:58 -0000	1.76
+++ mkmakefile.c	30 Apr 2003 13:38:16 -0000
@@ -707,12 +707,20 @@
 					tail(np), np);
 				continue;
 			}
-			if (ftp->f_depends)
+			if (ftp->f_depends) {
+				fprintf(f, "%sln: $S/%s%c %s\n", tail(np),
+					np, och, ftp->f_depends);
+				fprintf(f, "\t${NORMAL_LINT}\n\n");
 				fprintf(f, "%so: $S/%s%c %s\n", tail(np),
 					np, och, ftp->f_depends);
-			else
+			}
+			else {
+				fprintf(f, "%sln: $S/%s%c\n", tail(np),
+					np, och);
+				fprintf(f, "\t${NORMAL_LINT}\n\n");
 				fprintf(f, "%so: $S/%s%c\n", tail(np),
 					np, och);
+			}
 		}
 		tp = tail(np);
 		compilewith = ftp->f_compilewith;

------- =_aaaaaaaaaa0--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306141751.h5EHpcHh027173>