summaryrefslogtreecommitdiffstats
path: root/rules/host-squashfs-tools.make
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-03-09 00:49:01 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-03-09 00:49:01 +0000
commit2850f1788fbc812fff0d9400c32610e4cfa4dd56 (patch)
tree1271098d723feb26e4373d1655c14c051bf7657c /rules/host-squashfs-tools.make
parentf4dee58002ba5b8a881c38f694439dcfa7fbb9ed (diff)
downloadptxdist-2850f1788fbc812fff0d9400c32610e4cfa4dd56.tar.gz
ptxdist-2850f1788fbc812fff0d9400c32610e4cfa4dd56.tar.xz
Add support for creating a squashfs image
Signed-off-by: Jon Ringle <jon@ringle.org> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10025 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/host-squashfs-tools.make')
-rw-r--r--rules/host-squashfs-tools.make60
1 files changed, 60 insertions, 0 deletions
diff --git a/rules/host-squashfs-tools.make b/rules/host-squashfs-tools.make
new file mode 100644
index 000000000..e0fac94bb
--- /dev/null
+++ b/rules/host-squashfs-tools.make
@@ -0,0 +1,60 @@
+# -*-makefile-*-
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_SQUASHFS_TOOLS) += host-squashfs-tools
+
+#
+# Paths and names
+#
+HOST_SQUASHFS_TOOLS_VERSION := 3.4
+HOST_SQUASHFS_TOOLS := squashfs$(HOST_SQUASHFS_TOOLS_VERSION)
+HOST_SQUASHFS_TOOLS_SUFFIX := tar.gz
+HOST_SQUASHFS_TOOLS_URL := $(PTXCONF_SETUP_SFMIRROR)/squashfs/$(HOST_SQUASHFS_TOOLS).$(HOST_SQUASHFS_TOOLS_SUFFIX)
+HOST_SQUASHFS_TOOLS_SOURCE := $(SRCDIR)/$(HOST_SQUASHFS_TOOLS).$(HOST_SQUASHFS_TOOLS_SUFFIX)
+HOST_SQUASHFS_TOOLS_DIR := $(HOST_BUILDDIR)/$(HOST_SQUASHFS_TOOLS)/squashfs-tools
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(HOST_SQUASHFS_TOOLS_SOURCE):
+ @$(call targetinfo)
+ @$(call get, HOST_SQUASHFS_TOOLS)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_SQUASHFS_TOOLS_COMPILE_ENV := \
+ $(HOST_ENV)
+
+HOST_SQUASHFS_TOOLS_MAKEVARS := \
+ INSTALL_DIR="$(PTXCONF_SYSROOT_HOST)/sbin"
+
+$(STATEDIR)/host-squashfs-tools.prepare:
+ @$(call targetinfo)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-squashfs-tools.compile:
+ @$(call targetinfo)
+ cd $(HOST_SQUASHFS_TOOLS_DIR) && \
+ $(HOST_SQUASHFS_TOOLS_PATH) \
+ $(HOST_SQUASHFS_TOOLS_COMPILE_ENV) \
+ $(MAKE) $(HOST_SQUASHFS_TOOLS_MAKEVARS) $(PARALLELMFLAGS_BROKEN)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+host-squashfs-tools_clean:
+ rm -rf $(STATEDIR)/host-squashfs-tools.*
+ rm -rf $(HOST_SQUASHFS_TOOLS_DIR)
+
+# vim: syntax=make