summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-07-30 12:14:25 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-12-25 00:31:17 +0100
commitad252008f24d2ebce0e63240b980e8894159e4f1 (patch)
tree29203248f476e6ef4abab4d83da6e167ce453fdb /rules
parent77ad3136add67a773f50aa14ac13f437310ad641 (diff)
downloadptxdist-ad252008f24d2ebce0e63240b980e8894159e4f1.tar.gz
ptxdist-ad252008f24d2ebce0e63240b980e8894159e4f1.tar.xz
[host-gperf] added
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r--rules/host-gperf.in13
-rw-r--r--rules/host-gperf.make53
2 files changed, 66 insertions, 0 deletions
diff --git a/rules/host-gperf.in b/rules/host-gperf.in
new file mode 100644
index 000000000..7105958c3
--- /dev/null
+++ b/rules/host-gperf.in
@@ -0,0 +1,13 @@
+## SECTION=hosttools_noprompt
+
+config HOST_GPERF
+ tristate
+ help
+ Perfect hash function generator
+
+ gperf is a program that generates perfect hash functions for
+ sets of key words.
+
+ A perfect hash function is simply: A hash function and a
+ data structure that allows recognition of a key word in a
+ set of words using exactly 1 probe into the data structure.
diff --git a/rules/host-gperf.make b/rules/host-gperf.make
new file mode 100644
index 000000000..27bf10ef4
--- /dev/null
+++ b/rules/host-gperf.make
@@ -0,0 +1,53 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2009 by Marc Kleine-Budde <mkl@pengutronix.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_GPERF) += host-gperf
+
+#
+# Paths and names
+#
+HOST_GPERF_VERSION := 3.0.4
+HOST_GPERF := gperf-$(HOST_GPERF_VERSION)
+HOST_GPERF_SUFFIX := tar.gz
+HOST_GPERF_URL := $(PTXCONF_SETUP_GNUMIRROR)/gperf/$(HOST_GPERF).$(HOST_GPERF_SUFFIX)
+HOST_GPERF_SOURCE := $(SRCDIR)/$(HOST_GPERF).$(HOST_GPERF_SUFFIX)
+HOST_GPERF_DIR := $(HOST_BUILDDIR)/$(HOST_GPERF)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(HOST_GPERF_SOURCE):
+ @$(call targetinfo)
+ @$(call get, HOST_GPERF)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_GPERF_ENV := $(HOST_ENV)
+
+#
+# autoconf
+#
+HOST_GPERF_AUTOCONF := $(HOST_AUTOCONF)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+host-gperf_clean:
+ rm -rf $(STATEDIR)/host-gperf.*
+ rm -rf $(HOST_GPERF_DIR)
+
+# vim: syntax=make