add support for ARM
This commit is contained in:
parent
51c9b68b48
commit
c4c6b78a87
21
pciutils-3.1.2-arm.patch
Normal file
21
pciutils-3.1.2-arm.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
diff -up pciutils-3.0.2/lib/configure.arm pciutils-3.0.2/lib/configure
|
||||||
|
--- pciutils-3.0.2/lib/configure.arm 2009-04-29 16:58:54.097763684 +0200
|
||||||
|
+++ pciutils-3.0.2/lib/configure 2009-04-29 17:16:50.442420669 +0200
|
||||||
|
@@ -26,7 +26,7 @@ if [ -z "$HOST" ] ; then
|
||||||
|
proc=`/usr/sbin/lsdev -C -c processor -S available -F name | head -1`
|
||||||
|
cpu=`/usr/sbin/lsattr -F value -l $proc -a type | sed 's/_.*//'`
|
||||||
|
else
|
||||||
|
- cpu=`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/'`
|
||||||
|
+ cpu=`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^arm.*$/arm/'`
|
||||||
|
fi
|
||||||
|
if [ "$sys" = "GNU/kFreeBSD" -o "$sys" = "DragonFly" ]
|
||||||
|
then
|
||||||
|
@@ -73,6 +73,8 @@ cat >$c <<EOF
|
||||||
|
#define PCI_ARCH_SPARC
|
||||||
|
#elif defined(__sh__)
|
||||||
|
#define PCI_ARCH_SH
|
||||||
|
+#elif defined(__arm__)
|
||||||
|
+#define PCI_ARCH_ARM
|
||||||
|
#else
|
||||||
|
#error Unknown Arch
|
||||||
|
#endif
|
@ -1,6 +1,6 @@
|
|||||||
Name: pciutils
|
Name: pciutils
|
||||||
Version: 3.1.2
|
Version: 3.1.2
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Source: ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/%{name}-%{version}.tar.gz
|
Source: ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/%{name}-%{version}.tar.gz
|
||||||
Patch1: pciutils-2.2.4-buf.patch
|
Patch1: pciutils-2.2.4-buf.patch
|
||||||
Patch2: pciutils-2.1.10-scan.patch
|
Patch2: pciutils-2.1.10-scan.patch
|
||||||
@ -10,6 +10,7 @@ Patch8: pciutils-3.0.2-multilib.patch
|
|||||||
Patch9: pciutils-dir-d.patch
|
Patch9: pciutils-dir-d.patch
|
||||||
Patch10: pciutils-2.2.10-sparc-support.patch
|
Patch10: pciutils-2.2.10-sparc-support.patch
|
||||||
Patch11: pciutils-3.0.1-superh-support.patch
|
Patch11: pciutils-3.0.1-superh-support.patch
|
||||||
|
Patch12: pciutils-3.1.2-arm.patch
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml
|
URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@ -52,6 +53,7 @@ devices connected to the PCI bus.
|
|||||||
%patch9 -p1 -b .dird
|
%patch9 -p1 -b .dird
|
||||||
%patch10 -p1 -b .sparc
|
%patch10 -p1 -b .sparc
|
||||||
%patch11 -p1 -b .superh
|
%patch11 -p1 -b .superh
|
||||||
|
%patch12 -p1 -b .arm
|
||||||
|
|
||||||
sed -i -e 's/^SRC=.*/SRC="http:\/\/pciids.sourceforge.net\/pci.ids"/' update-pciids.sh
|
sed -i -e 's/^SRC=.*/SRC="http:\/\/pciids.sourceforge.net\/pci.ids"/' update-pciids.sh
|
||||||
|
|
||||||
@ -112,6 +114,9 @@ install -p lib/libpci.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 29 2009 Michal Hlavinka <mhlavink@redhat.com> - 3.1.2-5
|
||||||
|
- add support for ARM
|
||||||
|
|
||||||
* Fri Feb 27 2009 Michal Hlavinka <mhlaivnk@redhat.com> - 3.1.2-4
|
* Fri Feb 27 2009 Michal Hlavinka <mhlaivnk@redhat.com> - 3.1.2-4
|
||||||
- fix typo & rebuild
|
- fix typo & rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user