[Midnightbsd-cvs] src [10152] trunk/sys/conf: update lint scripts

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed May 30 17:17:15 EDT 2018


Revision: 10152
          http://svnweb.midnightbsd.org/src/?rev=10152
Author:   laffer1
Date:     2018-05-30 17:17:15 -0400 (Wed, 30 May 2018)
Log Message:
-----------
update lint scripts

Modified Paths:
--------------
    trunk/sys/conf/makeLINT.mk
    trunk/sys/conf/makeLINT.sed

Modified: trunk/sys/conf/makeLINT.mk
===================================================================
--- trunk/sys/conf/makeLINT.mk	2018-05-30 21:15:36 UTC (rev 10151)
+++ trunk/sys/conf/makeLINT.mk	2018-05-30 21:17:15 UTC (rev 10152)
@@ -1,5 +1,8 @@
 # $MidnightBSD$
 
+# The LINT files need to end up in the kernel source directory.
+.OBJDIR: ${.CURDIR}
+
 all:
 	@echo "make LINT only"
 
@@ -9,9 +12,10 @@
 	rm -f LINT-VIMAGE LINT-NOINET LINT-NOINET6 LINT-NOIP
 .endif
 
-NOTES=	../../conf/NOTES NOTES
-LINT: ${NOTES} ../../conf/makeLINT.sed
-	cat ${NOTES} | sed -E -n -f ../../conf/makeLINT.sed > ${.TARGET}
+NOTES=	${.CURDIR}/../../conf/NOTES ${.CURDIR}/NOTES
+MAKELINT_SED= ${.CURDIR}/../../conf/makeLINT.sed
+LINT: ${NOTES} ${MAKELINT_SED}
+	cat ${NOTES} | sed -E -n -f ${MAKELINT_SED} > ${.TARGET}
 .if ${TARGET} == "amd64" || ${TARGET} == "i386"
 	echo "include ${.TARGET}"	>  ${.TARGET}-VIMAGE
 	echo "ident ${.TARGET}-VIMAGE"	>> ${.TARGET}-VIMAGE
@@ -46,6 +50,12 @@
 	echo "nodevice txp"		>> ${.TARGET}-NOIP
 	echo "nodevice vxge"		>> ${.TARGET}-NOIP
 .endif
-.if ${TARGET} == "powerpc" || ${TARGET} == "mips"
+.if ${TARGET} == "mips"
 	echo "machine	${TARGET} ${TARGET_ARCH}" >> ${.TARGET}
 .endif
+.if ${TARGET} == "powerpc"
+	# cat is available, not sure if cp is?
+	cat ${.TARGET} > ${.TARGET}64
+	echo "machine	${TARGET} powerpc" >> ${.TARGET}
+	echo "machine	${TARGET} powerpc64" >> ${.TARGET}64
+.endif

Modified: trunk/sys/conf/makeLINT.sed
===================================================================
--- trunk/sys/conf/makeLINT.sed	2018-05-30 21:15:36 UTC (rev 10151)
+++ trunk/sys/conf/makeLINT.sed	2018-05-30 21:17:15 UTC (rev 10152)
@@ -1,7 +1,8 @@
 #!/usr/bin/sed -E -n -f
-# $FreeBSD$
+# $FreeBSD: stable/10/sys/conf/makeLINT.sed 226013 2011-10-04 17:11:38Z marcel $
+# $MidnightBSD$
 
-/^(machine|ident|device|nodevice|makeoptions|nomakeoption|options|option|nooption|profile|cpu|maxusers)[[:space:]]/ {
+/^(machine|files|ident|(no)?device|(no)?makeoption(s)?|(no)?option(s)?|profile|cpu|maxusers)[[:space:]]/ {
     s/[[:space:]]*#.*$//
     p
 }



More information about the Midnightbsd-cvs mailing list