summaryrefslogtreecommitdiffstats
path: root/rules/host-attr.make
diff options
context:
space:
mode:
authorCarsten Schlote <c.schlote@konzeptpark.de>2010-01-08 16:08:28 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2010-01-08 16:46:54 +0100
commit118668e381a6fef32348db52976b664bc6e72cdf (patch)
treeed3c96bf136e9fb17bdf87cce61f8525d2173eca /rules/host-attr.make
parent30557de89c1eb502f294a3d88e9e1f99e104dbfc (diff)
downloadptxdist-118668e381a6fef32348db52976b664bc6e72cdf.tar.gz
ptxdist-118668e381a6fef32348db52976b664bc6e72cdf.tar.xz
[host-attr] Added host compile for libattr.so and headers
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.schlote@konzeptpark.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules/host-attr.make')
-rw-r--r--rules/host-attr.make60
1 files changed, 60 insertions, 0 deletions
diff --git a/rules/host-attr.make b/rules/host-attr.make
new file mode 100644
index 000000000..abc7efda9
--- /dev/null
+++ b/rules/host-attr.make
@@ -0,0 +1,60 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2009 by Carsten Schlote <c.schlote@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