pci-database: Makefile - rules to extract id-s from kernel modules...
glen
glen at pld-linux.org
Thu Dec 21 18:25:48 CET 2006
Author: glen Date: Thu Dec 21 17:25:48 2006 GMT
Module: pci-database Tag: HEAD
---- Log message:
- rules to extract id-s from kernel modules.pcimap
---- Files affected:
pci-database:
Makefile (1.21 -> 1.22)
---- Diffs:
================================================================
Index: pci-database/Makefile
diff -u pci-database/Makefile:1.21 pci-database/Makefile:1.22
--- pci-database/Makefile:1.21 Sun Jun 11 12:45:55 2006
+++ pci-database/Makefile Thu Dec 21 18:25:43 2006
@@ -4,6 +4,9 @@
datadir=/usr/share/pci-database
bindir=/usr/bin
+KERNEL_VERSION := 2.6.17.11-0.5smp
+KERNELSRCDIR := /lib/modules/$(KERNEL_VERSION)
+
all: $(DATABASES)
install:
@@ -27,6 +30,24 @@
$(DATABASES): pci.ids
if test "$@" != "snd.pci" ; then ./addname $@.in | sort > $@; else ./addname $@.in > $@; fi
+
+pcimap: pcimap-snd pcimap-scsi pcimap-net
+
+pcimap-snd: FORCE
+ s=snd.pci.in; grep '^snd-' $(KERNELSRCDIR)/modules.pcimap | \
+ ./pcimap | sort -u > $$s.tmp && mv $$s.tmp $$s
+
+pcimap-scsi:
+ s=scsi.pci.in; find $(KERNELSRCDIR)/kernel/drivers/scsi | awk -F/ '{a = $$NF; sub("\.ko\.gz$$", "", a); printf("^%s \n", a)}' | \
+ grep -f - $(KERNELSRCDIR)/modules.pcimap | \
+ ./pcimap | sort -u > $$s.tmp && mv $$s.tmp $$s
+
+pcimap-net:
+ s=net.pci.in; find $(KERNELSRCDIR)/kernel/drivers/net | awk -F/ '{a = $$NF; sub("\.ko\.gz$$", "", a); printf("^%s \n", a)}' | \
+ grep -f - $(KERNELSRCDIR)/modules.pcimap | \
+ ./pcimap | sort -u > $$s.tmp && mv $$s.tmp $$s
+
+FORCE:
clean:
rm -f *.pci *.bz2 pci.ids *~
================================================================
---- CVS-web:
http://cvs.pld-linux.org/pci-database/Makefile?r1=1.21&r2=1.22&f=u
More information about the pld-cvs-commit
mailing list