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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
# -*-makefile-*-
# $Id: kernel.make 2486 2005-04-19 12:18:08Z mkl $
#
# Copyright (C) 2005 Ladislav Michl <ladis@linux-mips.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_MODULE_INIT_TOOLS) += host-module-init-tools
#
# Paths and names
#
HOST_MODULE_INIT_TOOLS_DIR = $(HOST_BUILDDIR)/$(MODULE_INIT_TOOLS)
-include $(call package_depfile)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
host-module-init-tools_get: $(STATEDIR)/host-module-init-tools.get
host-module-init-tools_get_deps = $(STATEDIR)/module-init-tools.get
$(STATEDIR)/host-module-init-tools.get: $(host-module-init-tools_get_deps)
@$(call targetinfo, $@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
host-module-init-tools_extract: $(STATEDIR)/host-module-init-tools.extract
host-module-init-tools_extract_deps = $(STATEDIR)/host-module-init-tools.get
$(STATEDIR)/host-module-init-tools.extract: $(host-module-init-tools_extract_deps)
@$(call targetinfo, $@)
@$(call clean, $(HOST_MODULE_INIT_TOOLS_DIR))
@$(call extract, $(MODULE_INIT_TOOLS_SOURCE), $(HOST_BUILDDIR))
@$(call patchin, $(MODULE_INIT_TOOLS), $(HOST_MODULE_INIT_TOOLS_DIR))
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
host-module-init-tools_prepare: $(STATEDIR)/host-module-init-tools.prepare
#
# dependencies
#
host-module-init-tools_prepare_deps = $(STATEDIR)/host-module-init-tools.extract
HOST_MODULE_INIT_TOOLS_PATH = PATH=$(CROSS_PATH)
HOST_MODULE_INIT_TOOLS_ENV = $(HOSTCC_ENV)
HOST_MODULE_INIT_TOOLS_MAKEVARS = MAN5=''
HOST_MODULE_INIT_TOOLS_AUTOCONF = $(HOST_AUTOCONF)
$(STATEDIR)/host-module-init-tools.prepare: $(host-module-init-tools_prepare_deps)
@$(call targetinfo, $@)
cd $(HOST_MODULE_INIT_TOOLS_DIR) && \
$(HOST_MODULE_INIT_TOOLS_PATH) $(HOST_MODULE_INIT_TOOLS_ENV) \
./configure $(HOST_MODULE_INIT_TOOLS_AUTOCONF)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
host-module-init-tools_compile: $(STATEDIR)/host-module-init-tools.compile
host-module-init-tools_compile_deps = $(STATEDIR)/host-module-init-tools.prepare
$(STATEDIR)/host-module-init-tools.compile: $(host-module-init-tools_compile_deps)
@$(call targetinfo, $@)
cd $(HOST_MODULE_INIT_TOOLS_DIR) && \
$(HOST_MODULE_INIT_TOOLS_PATH) make \
$(HOST_MODULE_INIT_TOOLS_MAKEVARS)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
host-module-init-tools_install: $(STATEDIR)/host-module-init-tools.install
host-module-init-tools_install_deps = $(STATEDIR)/host-module-init-tools.compile
ifdef PTXCONF_KERNEL_2_4
host-module-init-tools_install_deps += $(STATEDIR)/host-modutils.install
endif
$(STATEDIR)/host-module-init-tools.install: $(host-module-init-tools_install_deps)
@$(call targetinfo, $@)
@$(call install, HOST_MODULE_INIT_TOOLS,,h)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
host-module-init-tools_targetinstall: $(STATEDIR)/host-module-init-tools.targetinstall
host-module-init-tools_targetinstall_deps = $(STATEDIR)/host-module-init-tools.install
$(STATEDIR)/host-module-init-tools.targetinstall: $(host-module-init-tools_targetinstall_deps)
@$(call targetinfo, $@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
host-module-init-tools_clean:
rm -rf $(STATEDIR)/host-module-init-tools.*
rm -rf $(HOST_MODULE_INIT_TOOLS_DIR)
# vim: syntax=make
|