From: Carsten Schlote <c.schl...@konzeptpark.de>

This local build is required for other local build tools,
e.g. e2fstools or other host tools which need to
care about xattr on filesystems.

Signed-off-by: Carsten Schlote <c.schl...@konzeptpark.de>
---
 rules/host-attr.in   |    2 +
 rules/host-attr.make |   61 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+), 0 deletions(-)
 create mode 100644 rules/host-attr.make

diff --git a/rules/host-attr.in b/rules/host-attr.in
index 4cf5ed8..ced71aa 100644
--- a/rules/host-attr.in
+++ b/rules/host-attr.in
@@ -2,3 +2,5 @@
 
 config HOST_ATTR
        tristate
+       help
+         FIXME
diff --git a/rules/host-attr.make b/rules/host-attr.make
new file mode 100644
index 0000000..0227aa9
--- /dev/null
+++ b/rules/host-attr.make
@@ -0,0 +1,61 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2009 by Carsten Schlote <c.schl...@konzeptpark.de>
+#
+# 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_ATTR) += host-attr
+
+#
+# Paths and names
+#
+HOST_ATTR_DIR  = $(HOST_BUILDDIR)/$(ATTR)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-attr.get: $(STATEDIR)/attr.get
+       @$(call targetinfo)
+       @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-attr.extract:
+       @$(call targetinfo)
+       @$(call clean, $(HOST_ATTR_DIR))
+       @$(call extract, ATTR, $(HOST_BUILDDIR))
+       @$(call patchin, ATTR, $(HOST_ATTR_DIR))
+       @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_ATTR_PATH := PATH=$(HOST_PATH)
+HOST_ATTR_ENV  := $(HOST_ENV)
+
+#
+# autoconf
+#
+HOST_ATTR_AUTOCONF     := $(HOST_AUTOCONF)
+
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+host-attr_clean:
+       rm -rf $(STATEDIR)/host-attr.*
+       rm -rf $(HOST_ATTR_DIR)
+
+# vim: syntax=make
-- 
1.6.5.6.gb3118


--
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to