summaryrefslogtreecommitdiff
path: root/package/pciutils
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/pciutils
Initial import
Diffstat (limited to 'package/pciutils')
-rw-r--r--package/pciutils/Config.in8
-rw-r--r--package/pciutils/Makefile31
-rw-r--r--package/pciutils/ipkg/pciutils.control4
-rw-r--r--package/pciutils/patches/patch-lib_configure11
4 files changed, 54 insertions, 0 deletions
diff --git a/package/pciutils/Config.in b/package/pciutils/Config.in
new file mode 100644
index 000000000..e289b8bbf
--- /dev/null
+++ b/package/pciutils/Config.in
@@ -0,0 +1,8 @@
+config ADK_PACKAGE_PCIUTILS
+ prompt "pciutils.......................... Linux PCI Utilities"
+ tristate
+ select ADK_PACKAGE_ZLIB
+ default n
+ help
+ This package contains various utilities for inspecting and setting of
+ devices connected to the PCI bus.
diff --git a/package/pciutils/Makefile b/package/pciutils/Makefile
new file mode 100644
index 000000000..b4ccef18d
--- /dev/null
+++ b/package/pciutils/Makefile
@@ -0,0 +1,31 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= pciutils
+PKG_VERSION:= 3.0.3
+PKG_RELEASE:= 1
+PKG_MD5SUM:= d07da501bb11e6af40acd036536c2e9a
+MASTER_SITES:= http://www.kernel.org/pub/software/utils/pciutils/ \
+ ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,PCIUTILS,pciutils,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+BUILD_STYLE:= auto
+MAKE_FLAGS+= CC="${TARGET_CC}" \
+ CFLAGS="${TCFLAGS}" \
+ IDSDIR="/usr/share" \
+ HOST=${GNU_TARGET_NAME}
+ALL_TARGET:=
+
+do-install:
+ ${INSTALL_DIR} ${IDIR_PCIUTILS}/usr/{share,sbin}
+ ${INSTALL_BIN} ${WRKBUILD}/{lspci,setpci} ${IDIR_PCIUTILS}/usr/sbin/
+ ${INSTALL_DATA} ${WRKBUILD}/pci.ids ${IDIR_PCIUTILS}/usr/share/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/pciutils/ipkg/pciutils.control b/package/pciutils/ipkg/pciutils.control
new file mode 100644
index 000000000..b3f0c4eea
--- /dev/null
+++ b/package/pciutils/ipkg/pciutils.control
@@ -0,0 +1,4 @@
+Package: pciutils
+Priority: optional
+Section: sys
+Description: Linux PCI Utilities
diff --git a/package/pciutils/patches/patch-lib_configure b/package/pciutils/patches/patch-lib_configure
new file mode 100644
index 000000000..cde870cce
--- /dev/null
+++ b/package/pciutils/patches/patch-lib_configure
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- pciutils-3.0.3.orig/lib/configure 2008-11-09 20:50:26.000000000 +0100
++++ pciutils-3.0.3/lib/configure 2009-01-09 19:56:33.000000000 +0100
+@@ -60,7 +60,6 @@ case $sys in
+ echo_n " sysfs proc"
+ echo >>$c '#define PCI_HAVE_PM_LINUX_SYSFS'
+ echo >>$c '#define PCI_HAVE_PM_LINUX_PROC'
+- echo >>$c '#define PCI_HAVE_LINUX_BYTEORDER_H'
+ echo >>$c '#define PCI_PATH_PROC_BUS_PCI "/proc/bus/pci"'
+ echo >>$c '#define PCI_PATH_SYS_BUS_PCI "/sys/bus/pci"'
+ case $cpu in