summaryrefslogtreecommitdiffstats
path: root/rules/host-pelts.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2006-06-14 08:46:34 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2006-06-14 08:46:34 +0000
commit05310c8665ff2c8fc4359535fa8c15944777c917 (patch)
tree349a601f4a096a196fcce97cc46e7e175478a429 /rules/host-pelts.make
parent2f1f615824cf559dc064c4230c8b83177c37d681 (diff)
downloadptxdist-05310c8665ff2c8fc4359535fa8c15944777c917.tar.gz
ptxdist-05310c8665ff2c8fc4359535fa8c15944777c917.tar.xz
* added pelts-1.0.0
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.10-trunk@5777 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/host-pelts.make')
-rw-r--r--rules/host-pelts.make35
1 files changed, 12 insertions, 23 deletions
diff --git a/rules/host-pelts.make b/rules/host-pelts.make
index 18e3c0e52..2df85d7b5 100644
--- a/rules/host-pelts.make
+++ b/rules/host-pelts.make
@@ -12,6 +12,8 @@
#
# We provide this package
#
+
+#
HOST_PACKAGES-$(PTXCONF_HOST_PELTS) += host-pelts
#
@@ -19,12 +21,11 @@ HOST_PACKAGES-$(PTXCONF_HOST_PELTS) += host-pelts
#
HOST_PELTS_VERSION := 1.0.0
HOST_PELTS := pelts-$(HOST_PELTS_VERSION)
-HOST_PELTS_SUFFIX := tar.gz
-HOST_PELTS_URL := http://www.pengutronix.de/software/pelts/download/v1.0/$(HOST_PELTS).$(HOST_PELTS_SUFFIX)
+HOST_PELTS_SUFFIX := tar.bz2
+HOST_PELTS_URL := http://www.pengutronix.de/software/pelts/download/v1/$(HOST_PELTS).$(HOST_PELTS_SUFFIX)
HOST_PELTS_SOURCE := $(SRCDIR)/$(HOST_PELTS).$(HOST_PELTS_SUFFIX)
HOST_PELTS_DIR := $(HOST_BUILDDIR)/$(HOST_PELTS)
-
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
@@ -59,16 +60,19 @@ $(STATEDIR)/host-pelts.extract: $(host-pelts_extract_deps_default)
host-pelts_prepare: $(STATEDIR)/host-pelts.prepare
HOST_PELTS_PATH := PATH=$(HOST_PATH)
-HOST_PELTS_ENV := $(HOSTCC_ENV)
+HOST_PELTS_ENV := $(HOST_ENV)
#
# autoconf
#
-HOST_PELTS_AUTOCONF := $(HOST_AUTOCONF)
+HOST_PELTS_AUTOCONF := $(HOST_AUTOCONF)
$(STATEDIR)/host-pelts.prepare: $(host-pelts_prepare_deps_default)
@$(call targetinfo, $@)
@$(call clean, $(HOST_PELTS_DIR)/config.cache)
+ cd $(HOST_PELTS_DIR) && \
+ $(HOST_PELTS_PATH) $(HOST_PELTS_ENV) \
+ ./configure $(HOST_PELTS_AUTOCONF)
@$(call touch, $@)
# ----------------------------------------------------------------------------
@@ -77,8 +81,10 @@ $(STATEDIR)/host-pelts.prepare: $(host-pelts_prepare_deps_default)
host-pelts_compile: $(STATEDIR)/host-pelts.compile
+
$(STATEDIR)/host-pelts.compile: $(host-pelts_compile_deps_default)
@$(call targetinfo, $@)
+ cd $(HOST_PELTS_DIR) && $(HOST_PELTS_ENV) $(HOST_PELTS_PATH) make
@$(call touch, $@)
# ----------------------------------------------------------------------------
@@ -89,23 +95,7 @@ host-pelts_install: $(STATEDIR)/host-pelts.install
$(STATEDIR)/host-pelts.install: $(host-pelts_install_deps_default)
@$(call targetinfo, $@)
- # first install the test library
- rm -fr $(PTXCONF_PREFIX)/lib/pelts-*
- cp -a $(HOST_PELTS_DIR) $(PTXCONF_PREFIX)/lib/
- @echo
- @echo "Looking up tests in pelts library:"
- @echo
- @if [ -d "$(PTXDIST_WORKSPACE)/testsuite" ]; then \
- for tool in `find $(PTXCONF_PREFIX)/lib/$(HOST_PELTS)/testsuite -maxdepth 1 -mindepth 1 -type d`; do \
- if [ ! -e "$(PTXDIST_WORKSPACE)/testsuite/`basename $$tool`" ]; then \
- echo "`basename $$tool`"; \
- ln -sf $$tool $(PTXDIST_WORKSPACE)/testsuite/; \
- else \
- echo "`basename $$tool` (omitted)"; \
- fi; \
- done; \
- fi
- @echo
+ @$(call install, HOST_PELTS,,h)
@$(call touch, $@)
# ----------------------------------------------------------------------------
@@ -115,6 +105,5 @@ $(STATEDIR)/host-pelts.install: $(host-pelts_install_deps_default)
host-pelts_clean:
rm -rf $(STATEDIR)/host-pelts.*
rm -rf $(HOST_PELTS_DIR)
- find $(PTXDIST_WORKSPACE)/testsuite -type l | xargs rm -fr
# vim: syntax=make