From: Carsten Schlote <[email protected]>

This local build is required for other local build tools.
See follow up patches.

Signed-off-by: Carsten Schlote <[email protected]>
---
 rules/host-pciutils.in   |    7 ++++
 rules/host-pciutils.make |   87 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 94 insertions(+), 0 deletions(-)
 create mode 100644 rules/host-pciutils.in
 create mode 100644 rules/host-pciutils.make

diff --git a/rules/host-pciutils.in b/rules/host-pciutils.in
new file mode 100644
index 0000000..22e7d82
--- /dev/null
+++ b/rules/host-pciutils.in
@@ -0,0 +1,7 @@
+## SECTION=hosttools_noprompt
+
+config HOST_PCIUTILS
+       tristate
+       prompt "pciutils"
+       help
+         FIXME
diff --git a/rules/host-pciutils.make b/rules/host-pciutils.make
new file mode 100644
index 0000000..3e65d7b
--- /dev/null
+++ b/rules/host-pciutils.make
@@ -0,0 +1,87 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2009 by Carsten Schlote <[email protected]>
+#
+# 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
+#
+HOST_PACKAGES-$(PTXCONF_HOST_PCIUTILS) += host-pciutils
+
+#
+# Paths and names
+#
+HOST_PCIUTILS_DIR      = $(HOST_BUILDDIR)/$(PCIUTILS)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-pciutils.get: $(STATEDIR)/pciutils.get
+       @$(call targetinfo)
+       @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-pciutils.extract:
+       @$(call targetinfo)
+       @$(call clean, $(HOST_PCIUTILS_DIR))
+       @$(call extract, PCIUTILS, $(HOST_BUILDDIR))
+       @$(call patchin, PCIUTILS, $(HOST_PCIUTILS_DIR))
+       @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_PCIUTILS_PATH     := PATH=$(HOST_PATH)
+HOST_PCIUTILS_ENV      := $(HOST_ENV)
+
+#
+# autoconf
+#
+HOST_PCIUTILS_AUTOCONF := $(HOST_AUTOCONF)
+
+$(STATEDIR)/host-pciutils.prepare:
+       @$(call targetinfo)
+#      @$(call clean, $(HOST_PCIUTILS_DIR)/config.cache)
+#      cd $(HOST_PCIUTILS_DIR) && \
+#              $(HOST_PCIUTILS_PATH) $(HOST_PCIUTILS_ENV) \
+#              ./configure $(HOST_PCIUTILS_AUTOCONF)
+       @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/host-pciutils.compile:
+#      @$(call targetinfo)
+#      cd $(HOST_PCIUTILS_DIR) && $(HOST_PCIUTILS_PATH) $(MAKE) 
$(PARALLELMFLAGS)
+#      @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-pciutils.install:
+       @$(call targetinfo)
+       #$(call install, HOST_PCIUTILS)
+       cd $(HOST_PCIUTILS_DIR) && $(HOST_PCIUTILS_PATH) $(MAKE) 
DESTDIR=$(SYSROOT) install $(PARALLELMFLAGS)
+       @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+host-pciutils_clean:
+       rm -rf $(STATEDIR)/host-pciutils.*
+       rm -rf $(HOST_PCIUTILS_DIR)
+
+# vim: syntax=make
-- 
1.6.5.6.gb3118


--
ptxdist mailing list
[email protected]

Reply via email to