From owner-freebsd-arch@FreeBSD.ORG Sat Jun 14 10:54:55 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85AE237B401 for ; Sat, 14 Jun 2003 10:54:55 -0700 (PDT) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B38E43FB1 for ; Sat, 14 Jun 2003 10:54:54 -0700 (PDT) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.9/8.12.9) with ESMTP id h5EHsr1f051990 for ; Sat, 14 Jun 2003 18:54:53 +0100 (BST) (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost)h5EHsrGL051989 for arch@freebsd.org; Sat, 14 Jun 2003 18:54:53 +0100 (BST) X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.9/8.12.9) with ESMTP id h5EHpcHh027173 for ; Sat, 14 Jun 2003 18:51:38 +0100 (BST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200306141751.h5EHpcHh027173@grimreaper.grondar.org> To: arch@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" Content-ID: <27170.1055613077.0@grondar.org> Date: Sat, 14 Jun 2003 18:51:38 +0100 Sender: mark@grondar.org X-Spam-Status: No, hits=1.7 required=5.0 tests=FROM_NO_LOWER,PATCH_UNIFIED_DIFF version=2.55 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: change to config(8) to help with linting the kernel. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jun 2003 17:54:55 -0000 ------- =_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--