Tidying src/release/*/{dokern.sh,drivers.conf}
Ruslan Ermilov
ru at FreeBSD.org
Sun May 18 01:31:45 PDT 2003
Perhaps somebody will find this script useful too.
It finds missing GENERIC entries and cross-checks
dokern.sh and drivers.conf for redundant entries.
It edits out the "SMALL" part of pc98/dokern.sh
so as to not give false matches.
It should be run with cwd=/usr/src/release.
The patch that it "generates" is also attached.
Cheers,
--
Ruslan Ermilov Sysadmin and DBA,
ru at sunbay.com Sunbay Software AG,
ru at FreeBSD.org FreeBSD committer,
+380.652.512.251 Simferopol, Ukraine
http://www.FreeBSD.org The Power To Serve
http://www.oracle.com Enabling The Information Age
-------------- next part --------------
#!/bin/sh
echo Checking */drivers.conf ...
for f in */drivers.conf; do
arch=`dirname $f`
grep -v '^#' $f | grep -v '^$' | awk '{ print $1 }' |
while read x; do
egrep -qw "^(device|options)[[:space:]]+$x" ../sys/${arch}/conf/GENERIC || \
echo $x not found in $arch/GENERIC
sed -e'/"SMALL"/,/^else$/d' ${arch}/dokern.sh | \
grep -qw $x && \
echo "duplicate $x found in ${arch}/dokern.sh"
done
done
echo Checking */dokern.sh ...
for f in */dokern.sh; do
arch=`dirname $f`
sed -e'/"SMALL"/,/^else$/d' $f | \
grep -w -- -e | sed -e's,^[^/]*/,,' -e's,/.*$,,' |
grep -v '^ident\.\*GENERIC$' |
while read x; do
egrep -q "^(device|options|makeoptions)[[:space:]]+$x" \
../sys/${arch}/conf/GENERIC || \
echo $x not found in $arch/GENERIC
grep -qw ^$x ${arch}/drivers.conf && \
echo "duplicate $x found in ${arch}/drivers.conf"
done
done
-------------- next part --------------
Index: release/alpha/dokern.sh
===================================================================
RCS file: /home/ncvs/src/release/alpha/dokern.sh,v
retrieving revision 1.72
diff -u -r1.72 dokern.sh
--- release/alpha/dokern.sh 18 May 2003 03:52:22 -0000 1.72
+++ release/alpha/dokern.sh 18 May 2003 08:26:42 -0000
@@ -23,7 +23,6 @@
-e '/DDB/d' \
-e '/INVARIANTS/d' \
-e '/INVARIANT_SUPPORT/d' \
- -e '/WITNESS/d' \
-e '/SMP/d' \
-e '/ atapifd /d' \
-e '/ atapist /d' \
@@ -52,7 +51,6 @@
-e '/ umass /d' \
-e '/ ums /d' \
-e '/ aue /d' \
- -e '/ axe /d' \
-e '/ cue /d' \
-e '/ kue /d' \
-e '/ firewire /d' \
Index: release/pc98/dokern.sh
===================================================================
RCS file: /home/ncvs/src/release/pc98/dokern.sh,v
retrieving revision 1.76
diff -u -r1.76 dokern.sh
--- release/pc98/dokern.sh 18 May 2003 03:52:22 -0000 1.76
+++ release/pc98/dokern.sh 18 May 2003 08:27:24 -0000
@@ -33,8 +33,6 @@
-e '/ pass /d' \
-e '/ ses /d' \
-e '/ splash /d' \
- -e '/ apm$/d' \
- -e '/ pmtimer$/d' \
-e '/ ppc$/d' \
-e '/ ppbus /d' \
-e '/ lpt /d' \
@@ -98,8 +96,6 @@
-e '/ pass /d' \
-e '/ ses /d' \
-e '/ splash /d' \
- -e '/ apm$/d' \
- -e '/ pmtimer$/d' \
-e '/ ppc$/d' \
-e '/ ppbus /d' \
-e '/ lpt /d' \
Index: sys/alpha/conf/GENERIC
===================================================================
RCS file: /home/ncvs/src/sys/alpha/conf/GENERIC,v
retrieving revision 1.159
diff -u -r1.159 GENERIC
--- sys/alpha/conf/GENERIC 21 Apr 2003 16:44:04 -0000 1.159
+++ sys/alpha/conf/GENERIC 18 May 2003 08:26:10 -0000
@@ -95,6 +95,7 @@
# SCSI Controllers
device ahc # AHA2940 and onboard AIC7xxx devices
device isp # Qlogic family
+device ispfw # Firmware module for Qlogic host adapters
device mpt # LSI-Logic MPT-Fusion
#device ncr # NCR/Symbios Logic
device sym # NCR/Symbios Logic (newer chipsets + those of `ncr')
Index: sys/i386/conf/GENERIC
===================================================================
RCS file: /home/ncvs/src/sys/i386/conf/GENERIC,v
retrieving revision 1.383
diff -u -r1.383 GENERIC
--- sys/i386/conf/GENERIC 11 May 2003 06:39:05 -0000 1.383
+++ sys/i386/conf/GENERIC 18 May 2003 08:26:00 -0000
@@ -192,7 +192,9 @@
device rl # RealTek 8129/8139
device sf # Adaptec AIC-6915 (``Starfire'')
device sis # Silicon Integrated Systems SiS 900/SiS 7016
+device sk # SysKonnect SK-984x and SK-982x gigabit ethernet
device ste # Sundance ST201 (D-Link DFE-550TX)
+device ti # Alteon Networks Tigon I/II gigabit ethernet
device tl # Texas Instruments ThunderLAN
device tx # SMC EtherPower II (83c170 ``EPIC'')
device vr # VIA Rhine, Rhine II
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030518/2764ff39/attachment.bin
More information about the freebsd-current
mailing list