blob: c70e40e0238d14d8f00cfb66ee95536328a2d1c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# -*-makefile-*-
#
# Copyright (C) 2009 by Jon Ringle <jon@ringle.org>
# 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_SQUASHFS_TOOLS) += host-squashfs-tools
#
# Paths and names
#
HOST_SQUASHFS_TOOLS_VERSION := $(call ptx/ifdef, PTXCONF_HOST_SQUASHFS_TOOLS_V3X, 3.4, 4.0)
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
|