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
|
# -*-makefile-*-
# $Id:$
#
# Copyright (C) 2002, 2003 by Pengutronix e.K., Hildesheim, Germany
# 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_KSYMOOPS) += host-ksymoops
#
# Paths and names
#
HOST_KSYMOOPS = ksymoops-2.4.9
HOST_KSYMOOPS_URL = http://www.kernel.org/pub/linux/utils/kernel/ksymoops/v2.4/$(HOST_KSYMOOPS).tar.bz2
HOST_KSYMOOPS_SOURCE = $(SRCDIR)/$(HOST_KSYMOOPS).tar.bz2
HOST_KSYMOOPS_DIR = $(HOST_BUILDDIR)/$(HOST_KSYMOOPS)
-include $(call package_depfile)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
host-ksymoops_get: $(STATEDIR)/host-ksymoops.get
$(STATEDIR)/host-ksymoops.get: $(host-ksymoops_get_deps_default)
@$(call targetinfo, $@)
@$(call touch, $@)
$(HOST_KSYMOOPS_SOURCE):
@$(call targetinfo, $@)
@$(call get, $(HOST_KSYMOOPS_URL))
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
host-ksymoops_extract: $(STATEDIR)/host-ksymoops.extract
$(STATEDIR)/host-ksymoops.extract: $(host-ksymoops_extract_deps_default)
@$(call targetinfo, $@)
@$(call clean, $(HOST_KSYMOOPS_DIR))
@$(call extract, $(HOST_KSYMOOPS_SOURCE),$(HOST_BUILDDIR))
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
host-ksymoops_prepare: $(STATEDIR)/host-ksymoops.prepare
HOST_KSYMOOPS_MAKEVARS = \
CROSS=$(PTXCONF_GNU_TARGET)- \
INSTALL_PREFIX=$(PTXCONF_PREFIX) \
BFD_PREFIX=$(PTXCONF_PREFIX) \
DEF_TARGET='\"elf32-$(call remove_quotes,$(PTXCONF_ARCH))\"'
$(STATEDIR)/host-ksymoops.prepare: $(host-ksymoops_prepare_deps_default)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
host-ksymoops_compile: $(STATEDIR)/host-ksymoops.compile
$(STATEDIR)/host-ksymoops.compile: $(host-ksymoops_compile_deps_default)
@$(call targetinfo, $@)
make -C $(HOST_KSYMOOPS_DIR) $(HOST_KSYMOOPS_MAKEVARS)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
host-ksymoops_install: $(STATEDIR)/host-ksymoops.install
$(STATEDIR)/host-ksymoops.install: $(host-ksymoops_install_deps_default)
@$(call targetinfo, $@)
make -C $(HOST_KSYMOOPS_DIR) $(HOST_KSYMOOPS_MAKEVARS) install
#
# make short-name links to long-name programms
# e.g.: arm-linux-gcc -> arm-unknown-linux-gnu-gcc
#
cd $(PTXCONF_PREFIX)/bin && \
for FILE in host-ksymoops; do \
ln -sf $(PTXCONF_GNU_TARGET)-$$FILE $(SHORT_TARGET)-linux-$$FILE; \
done
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
host-ksymoops_targetinstall: $(STATEDIR)/host-ksymoops.targetinstall
$(STATEDIR)/host-ksymoops.targetinstall: $(host-ksymoops_targetinstall_deps_default)
@$(call targetinfo, $@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
host-ksymoops_clean:
rm -rf $(STATEDIR)/host-ksymoops.* $(HOST_KSYMOOPS_DIR)
# vim: syntax=make
|