summaryrefslogtreecommitdiffstats
path: root/rules/ltp-base.make
blob: 273f47f5c3fd8aca9787faee1b42f35abec35ed6 (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# -*-makefile-*-
#
# Copyright (C) 2009 by Juergen Beisert
#
# 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_LTP_BASE) += ltp_base

#
# Paths and names
#
LTP_BASE_VERSION	:= 20090131
LTP_BASE_MD5		:=
LTP_BASE		:= ltp-full-$(LTP_BASE_VERSION)
LTP_BASE_SUFFIX		:= tgz
LTP_BASE_URL		:= $(call ptx/mirror, SF, ltp/$(LTP_BASE).$(LTP_BASE_SUFFIX))
LTP_BASE_SOURCE		:= $(SRCDIR)/$(LTP_BASE).$(LTP_BASE_SUFFIX)
LTP_BASE_DIR		:= $(BUILDDIR)/$(LTP_BASE)
LTP_BASE_BIN_DIR	:= /usr/bin/ltp

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

LTP_BASE_PATH	:= PATH=$(CROSS_PATH)
LTP_BASE_ENV 	:= $(CROSS_ENV)

#
# autoconf
#
LTP_BASE_AUTOCONF := $(CROSS_AUTOCONF_USR)

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

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

	@$(call install_init, ltp_base)
	@$(call install_fixup, ltp_base,PRIORITY,optional)
	@$(call install_fixup, ltp_base,SECTION,base)
	@$(call install_fixup, ltp_base,AUTHOR,"Juergen Beisert@pengutronix.de")
	@$(call install_fixup, ltp_base,DESCRIPTION,missing)

# just a test
	@$(call install_copy, ltp_base, 0, 0, 0755, /home)
	@$(call install_copy, ltp_base, 0, 0, 0755, /home/testcases)
	@$(call install_copy, ltp_base, 0, 0, 0755, /home/testcases/bin)

# some tools are mandatory

# a useful tool to control processes that run amok (not really yet)
	$(call install_copy, ltp_base, 0, 0, 0755, \
		$(LTP_BASE_DIR)/pan/pan, \
		/usr/sbin/pan)

	@cd $(LTP_BASE_DIR)/testcases; \
	for file in `find bin -type f`; do \
		PER=`stat -c "%a" $$file` \
		$(call install_copy, ltp_base, 0, 0, $$PER, \
			$$file, \
			/home/testcases/$$file) \
	done

	@$(call install_copy, ltp_base, 0, 0, 0755, /home/testcases/bin/dumpdir)
	@cd $(LTP_BASE_DIR)/testcases; \
	for file in `find bin/dumpdir -type f`; do \
		PER=`stat -c "%a" $$file` \
		$(call install_copy, ltp_base, 0, 0, $$PER, \
			$$file, \
			/home/testcases/$$file) \
	done

	@$(call install_finish, ltp_base)

	@$(call touch)

# vim: syntax=make