summaryrefslogtreecommitdiffstats
path: root/rules/host-genext2fs.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2005-07-16 15:30:17 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2005-07-16 15:30:17 +0000
commit7329881cc11d20106c2333a73ee319a1b59d5e65 (patch)
treee3bc3b0741d7ea1a7ddace48f6166508a8de12f2 /rules/host-genext2fs.make
parenteb7322cc2ae8f09edc8bf1bc5955cdfde48224df (diff)
downloadptxdist-7329881cc11d20106c2333a73ee319a1b59d5e65.tar.gz
ptxdist-7329881cc11d20106c2333a73ee319a1b59d5e65.tar.xz
moved hosttool-s to host-s
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.7-trunk@2962 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/host-genext2fs.make')
-rw-r--r--rules/host-genext2fs.make122
1 files changed, 122 insertions, 0 deletions
diff --git a/rules/host-genext2fs.make b/rules/host-genext2fs.make
new file mode 100644
index 000000000..e32ffad57
--- /dev/null
+++ b/rules/host-genext2fs.make
@@ -0,0 +1,122 @@
+# -*-makefile-*-
+# $Id$
+#
+# Copyright (C) 2003 by Ixia Corporation (www.ixiacom.com)
+#
+# 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
+#
+ifdef PTXCONF_HOSTTOOL_GENEXT2FS
+HOST_PACKAGES += hosttool-genext2fs
+endif
+
+#
+# Paths and names
+#
+HOSTTOOL_GENEXT2FS_VERSION = 1.3.orig
+HOSTTOOL_GENEXT2FS = genext2fs-$(HOSTTOOL_GENEXT2FS_VERSION)
+HOSTTOOL_GENEXT2FS_TARBALL = genext2fs_$(HOSTTOOL_GENEXT2FS_VERSION).$(HOSTTOOL_GENEXT2FS_SUFFIX)
+HOSTTOOL_GENEXT2FS_SUFFIX = tar.gz
+HOSTTOOL_GENEXT2FS_URL = $(PTXCONF_SETUP_DEBMIRROR)/pool/main/g/genext2fs/$(HOSTTOOL_GENEXT2FS_TARBALL)
+HOSTTOOL_GENEXT2FS_SOURCE = $(SRCDIR)/$(HOSTTOOL_GENEXT2FS_TARBALL)
+HOSTTOOL_GENEXT2FS_DIR = $(HOST_BUILDDIR)/$(HOSTTOOL_GENEXT2FS)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+hosttool-genext2fs_get: $(STATEDIR)/hosttool-genext2fs.get
+
+hosttool-genext2fs_get_deps = $(HOSTTOOL_GENEXT2FS_SOURCE)
+
+$(STATEDIR)/hosttool-genext2fs.get: $(hosttool-genext2fs_get_deps)
+ @$(call targetinfo, $@)
+ @$(call get_patches, $(HOSTTOOL_GENEXT2FS))
+ touch $@
+
+$(HOSTTOOL_GENEXT2FS_SOURCE):
+ @$(call targetinfo, $@)
+ @$(call get, $(HOSTTOOL_GENEXT2FS_URL))
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+hosttool-genext2fs_extract: $(STATEDIR)/hosttool-genext2fs.extract
+
+$(STATEDIR)/hosttool-genext2fs.extract: $(STATEDIR)/hosttool-genext2fs.get
+ @$(call targetinfo, $@)
+ @$(call clean, $(HOSTTOOL_GENEXT2FS_DIR))
+ @$(call extract, $(HOSTTOOL_GENEXT2FS_SOURCE),$(HOST_BUILDDIR))
+ @$(call patchin, $(HOSTTOOL_GENEXT2FS),$(HOSTTOOL_GENEXT2FS_DIR))
+ touch $@
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+hosttool-genext2fs_prepare: $(STATEDIR)/hosttool-genext2fs.prepare
+
+HOSTTOOL_GENEXT2FS_ENV = $(HOSTCC_ENV)
+
+hosttool-genext2fs_prepare_deps = \
+ $(STATEDIR)/hosttool-genext2fs.extract
+
+$(STATEDIR)/hosttool-genext2fs.prepare: $(hosttool-genext2fs_prepare_deps)
+ @$(call targetinfo, $@)
+ touch $@
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+hosttool-genext2fs_compile: $(STATEDIR)/hosttool-genext2fs.compile
+
+hosttool-genext2fs_compile_deps = $(STATEDIR)/hosttool-genext2fs.prepare
+
+$(STATEDIR)/hosttool-genext2fs.compile: $(hosttool-genext2fs_compile_deps)
+ @$(call targetinfo, $@)
+ cd $(HOSTTOOL_GENEXT2FS_DIR) && make $(HOSTTOOL_GENEXT2FS_ENV)
+ touch $@
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+hosttool-genext2fs_install: $(STATEDIR)/hosttool-genext2fs.install
+
+hosttool-genext2fs_install_deps = $(STATEDIR)/hosttool-genext2fs.compile
+
+$(STATEDIR)/hosttool-genext2fs.install: $(hosttool-genext2fs_install_deps)
+ @$(call targetinfo, $@)
+ install -d $(PTXCONF_HOST_PREFIX)/bin/
+ install -d $(PTXCONF_HOST_PREFIX)/man/man8/
+
+ install -m 755 $(HOSTTOOL_GENEXT2FS_DIR)/genext2fs $(PTXCONF_HOST_PREFIX)/bin/
+ install -m 644 $(HOSTTOOL_GENEXT2FS_DIR)/genext2fs.8 $(PTXCONF_HOST_PREFIX)/man/man8/
+ touch $@
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+hosttool-genext2fs_targetinstall: $(STATEDIR)/hosttool-genext2fs.targetinstall
+
+$(STATEDIR)/hosttool-genext2fs.targetinstall: $(STATEDIR)/hosttool-genext2fs.install
+ @$(call targetinfo, $@)
+ touch $@
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+hosttool-genext2fs_clean:
+ rm -rf $(STATEDIR)/hosttool-genext2fs.* $(HOSTTOOL_GENEXT2FS_DIR)
+
+# vim: syntax=make