+Mon Feb 9 13:17:43 1998 Martin Mares <mj@albireo.ucw.cz>
+
+ * Makefile, pciutils.h: Include local pci.h instead of <linux/pci.h>
+ if available. This should avoid all problems with official kernel
+ not synchronized to newer PCI code in CVS -- standard distribution
+ of pciutils now contains pci.h from current CVS kernel, pciutils
+ in CVS contain no pci.h and use the correct kernel include.
+
+ * Makefile: Fixed installation path for man pages.
+
Sat Feb 7 15:15:46 1998 Martin Mares <mj@albireo.ucw.cz>
* README: Updated.
-# $Id: Makefile,v 1.5 1998/02/08 10:58:52 mj Exp $
+# $Id: Makefile,v 1.6 1998/02/09 12:32:52 mj Exp $
# Makefile for Linux PCI Utilities
# (c) 1998 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
ARCH=$(shell uname -m | sed -e 's/i.86/i386/' -e 's/sun4u/sparc64/' | tr 'a-z' 'A-Z')
+KERN_H=$(shell if [ ! -f pci.h ] ; then echo '-DKERNEL_PCI_H' ; fi)
OPT=-O2 -fomit-frame-pointer
-CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wno-unused -Werror -DARCH_$(ARCH)
+CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wno-unused -Werror -DARCH_$(ARCH) $(KERN_H)
PREFIX=/
+MANPREFIX=/usr
all: lspci
clean:
rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core`
- rm -f lspci
+ rm -f lspci pci.h
install: all
install -o root -g root -m 755 -s lspci $(PREFIX)/sbin
install -o root -g root -m 644 pci.ids $(PREFIX)/etc
- install -o root -g root -m 644 lspci.8 $(PREFIX)/man/man8
+ install -o root -g root -m 644 lspci.8 $(MANPREFIX)/man/man8
dist: clean
+ cp /usr/src/linux/include/linux/pci.h .
sh -c 'X=`pwd` ; X=`basename $$X` ; cd .. ; tar czvvf /tmp/$$X.tar.gz $$X --exclude CVS --exclude tmp'
+ rm -f pci.h
-This package contains the Linux PCI Utilities, version 1.0.
+This package contains the Linux PCI Utilities, version 1.01.
Copyright (c) 1998 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
-.TH lspci 8 "7 February 98" "pciutils-0.92" "Linux PCI Utilities"
+.TH lspci 8 "9 February 98" "pciutils-1.01" "Linux PCI Utilities"
.IX lspci
.SH NAME
lspci \- list all PCI devices
/*
- * $Id: lspci.c,v 1.6 1998/02/08 10:58:54 mj Exp $
+ * $Id: lspci.c,v 1.7 1998/02/09 12:32:54 mj Exp $
*
* Linux PCI Utilities -- List All PCI Devices
*
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
-#include <linux/pci.h>
#include "pciutils.h"
/*
- * $Id: pciutils.h,v 1.2 1998/01/27 11:50:13 mj Exp $
+ * $Id: pciutils.h,v 1.3 1998/02/09 12:32:56 mj Exp $
*
* Linux PCI Utilities -- Declarations
*
#include <linux/types.h>
+#ifdef KERNEL_PCI_H
+#include <linux/pci.h>
+#else
+#include "pci.h"
+#endif
+
#define PROC_BUS_PCI "/proc/bus/pci"
#define ETC_PCI_IDS "/etc/pci.ids"
Begin3
Title: Linux PCI Utilities
-Version: 1.0
-Entered-date: 980207
+Version: 1.01
+Entered-date: 980209
Description: This package contains various utilities for inspecting and
setting of devices connected to the PCI bus. Requires
kernel version 2.1.82 or newer (supporting the /proc/bus/pci
Keywords: kernel, pci, proc, lspci
Author: mj@atrey.karlin.mff.cuni.cz (Martin Mares)
Maintained-by: mj@atrey.karlin.mff.cuni.cz (Martin Mares)
-Primary-site: atrey.karlin.mff.cuni.cz pub/local/mj/linux/pciutils-1.0.tar.gz
-Alternate-site: sunsite.unc.edu pub/Linux/system/hardware
+Primary-site: atrey.karlin.mff.cuni.cz pub/local/mj/linux/pciutils-1.01.tar.gz
+Alternate-site: sunsite.unc.edu pub/Linux/system/hardware/pciutils-1.01.tar.gz
Copying-policy: GPL
End