summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErwin Rol <erwin@erwinrol.com>2006-04-10 10:19:16 +0000
committerErwin Rol <erwin@erwinrol.com>2006-04-10 10:19:16 +0000
commit9a0067a554e14a2b1f445f6e40fd1a7df674f04d (patch)
tree8564040e09818a44424df98cd4eaab87e8dd84ce
parent24679b3a7f2eddfb6d62daea2aa00b8bf3b806e4 (diff)
downloadptxdist-9a0067a554e14a2b1f445f6e40fd1a7df674f04d.tar.gz
ptxdist-9a0067a554e14a2b1f445f6e40fd1a7df674f04d.tar.xz
Added pciutils
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.10-trunk@5382 33e552b5-05e3-0310-8538-816dae2090ed
-rw-r--r--rules/Kconfig1
-rw-r--r--rules/pciutils.in6
-rw-r--r--rules/pciutils.make135
3 files changed, 142 insertions, 0 deletions
diff --git a/rules/Kconfig b/rules/Kconfig
index 544d321c9..094d9d060 100644
--- a/rules/Kconfig
+++ b/rules/Kconfig
@@ -71,6 +71,7 @@ source "rules/sysutils.in"
source "rules/util-linux.in"
source "rules/udev.in"
source "rules/xmlstarlet.in"
+source "rules/pciutils.in"
endmenu
menu "Scripting Languages "
diff --git a/rules/pciutils.in b/rules/pciutils.in
new file mode 100644
index 000000000..5ee6d208f
--- /dev/null
+++ b/rules/pciutils.in
@@ -0,0 +1,6 @@
+config PCIUTILS
+ bool
+ prompt "pciutils"
+ help
+ FIXME: This item needs to be documented
+
diff --git a/rules/pciutils.make b/rules/pciutils.make
new file mode 100644
index 000000000..e1e09d953
--- /dev/null
+++ b/rules/pciutils.make
@@ -0,0 +1,135 @@
+# -*-makefile-*-
+# $Id: template 5041 2006-03-09 08:45:49Z mkl $
+#
+# Copyright (C) 2006 by Erwin Rol
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PCIUTILS) += pciutils
+
+#
+# Paths and names
+#
+PCIUTILS_VERSION := 2.2.1
+PCIUTILS := pciutils-$(PCIUTILS_VERSION)
+PCIUTILS_SUFFIX := tar.bz2
+PCIUTILS_URL := ftp://ftp.kernel.org/pub/software/utils/pciutils/$(PCIUTILS).$(PCIUTILS_SUFFIX)
+PCIUTILS_SOURCE := $(SRCDIR)/$(PCIUTILS).$(PCIUTILS_SUFFIX)
+PCIUTILS_DIR := $(BUILDDIR)/$(PCIUTILS)
+
+-include $(call package_depfile)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+pciutils_get: $(STATEDIR)/pciutils.get
+
+$(STATEDIR)/pciutils.get: $(pciutils_get_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+$(PCIUTILS_SOURCE):
+ @$(call targetinfo, $@)
+ @$(call get, $(PCIUTILS_URL))
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+pciutils_extract: $(STATEDIR)/pciutils.extract
+
+$(STATEDIR)/pciutils.extract: $(pciutils_extract_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(PCIUTILS_DIR))
+ @$(call extract, $(PCIUTILS_SOURCE))
+ @$(call patchin, $(PCIUTILS))
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+pciutils_prepare: $(STATEDIR)/pciutils.prepare
+
+PCIUTILS_PATH := PATH=$(CROSS_PATH)
+PCIUTILS_ENV := $(CROSS_ENV)
+
+PCIUTILS_ENV += PREFIX=/usr
+PCIUTILS_ENV += HOST=i686--linux
+PCIUTILS_ENV += RELEASE=2.6.15
+
+#
+# autoconf
+#
+PCIUTILS_AUTOCONF := $(CROSS_AUTOCONF_USR)
+
+$(STATEDIR)/pciutils.prepare: $(pciutils_prepare_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+pciutils_compile: $(STATEDIR)/pciutils.compile
+
+$(STATEDIR)/pciutils.compile: $(pciutils_compile_deps_default)
+ @$(call targetinfo, $@)
+ cd $(PCIUTILS_DIR) && $(PCIUTILS_PATH) make $(PCIUTILS_ENV)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+pciutils_install: $(STATEDIR)/pciutils.install
+
+$(STATEDIR)/pciutils.install: $(pciutils_install_deps_default)
+ @$(call targetinfo, $@)
+ cd $(PCIUTILS_DIR) && $(PCIUTILS_PATH) make install PREFIX=$(SYSROOT)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+pciutils_targetinstall: $(STATEDIR)/pciutils.targetinstall
+
+$(STATEDIR)/pciutils.targetinstall: $(pciutils_targetinstall_deps_default)
+ @$(call targetinfo, $@)
+
+ @$(call install_init, pciutils)
+ @$(call install_fixup,pciutils,PACKAGE,pciutils)
+ @$(call install_fixup,pciutils,PRIORITY,optional)
+ @$(call install_fixup,pciutils,VERSION,$(PCIUTILS_VERSION))
+ @$(call install_fixup,pciutils,SECTION,base)
+ @$(call install_fixup,pciutils,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
+ @$(call install_fixup,pciutils,DEPENDS,)
+ @$(call install_fixup,pciutils,DESCRIPTION,missing)
+
+ @$(call install_copy, pciutils, 0, 0, 0755, $(PCIUTILS_DIR)/lspci, /usr/sbin/lspci)
+ @$(call install_copy, pciutils, 0, 0, 0755, $(PCIUTILS_DIR)/setpci, /usr/sbin/setpci)
+ @$(call install_copy, pciutils, 0, 0, 0755, $(PCIUTILS_DIR)/pci.ids, /usr/share/pci.ids, n)
+
+ @$(call install_finish,pciutils)
+
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+pciutils_clean:
+ rm -rf $(STATEDIR)/pciutils.*
+ rm -rf $(IMAGEDIR)/pciutils_*
+ rm -rf $(PCIUTILS_DIR)
+
+# vim: syntax=make