summaryrefslogtreecommitdiffstats
path: root/rules/unstrung.make
blob: e497223d0825c6739317d98f82ff2baaf859ad46 (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
# -*-makefile-*-
#
# Copyright (C) 2016 by Alexander Aring <aar@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
#
PACKAGES-$(PTXCONF_UNSTRUNG) += unstrung

#
# Paths and names
#
UNSTRUNG_VERSION	:= 1.11.0
UNSTRUNG_MD5		:= b18fa7644f19688e75eb37475816d73a
UNSTRUNG		:= unstrung-$(UNSTRUNG_VERSION)
UNSTRUNG_SUFFIX		:= tar.gz
UNSTRUNG_URL		:= http://unstrung.sandelman.ca/downloads/$(UNSTRUNG).$(UNSTRUNG_SUFFIX)
UNSTRUNG_SOURCE		:= $(SRCDIR)/$(UNSTRUNG).$(UNSTRUNG_SUFFIX)
UNSTRUNG_DIR		:= $(BUILDDIR)/$(UNSTRUNG)
UNSTRUNG_LICENSE	:= GPL-2.0-or-later

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

UNSTRUNG_CONF_TOOL	:= NO
UNSTRUNG_COMPILE_ENV	:= \
	$(CROSS_ENV) \
	ARCH=$(PTXCONF_ARCH_STRING) \
	EMBEDDED=$(call ptx/ifdef,PTXCONF_UNSTRUNG_TESTING,,1)

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/unstrung.targetinstall:
	@$(call targetinfo)

	@$(call install_init, unstrung)
	@$(call install_fixup, unstrung,PRIORITY,optional)
	@$(call install_fixup, unstrung,SECTION,base)
	@$(call install_fixup, unstrung,AUTHOR,"Alexander Aring <aar@pengutronix.de>")
	@$(call install_fixup, unstrung,DESCRIPTION,missing)

	@$(call install_copy, unstrung, 0, 0, 0755, -, /sbin/sunshine)

ifdef PTXCONF_UNSTRUNG_TESTING
	@$(call install_copy, unstrung, 0, 0, 0755, -, /sbin/peck)
	@$(call install_copy, unstrung, 0, 0, 0755, -, /sbin/senddao)
	@$(call install_copy, unstrung, 0, 0, 0755, -, /sbin/senddio)
endif

	@$(call install_finish, unstrung)

	@$(call touch)

# vim: syntax=make