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
|
# -*-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_KSYMOOPS) += host-ksymoops
#
# Paths and names
#
KSYMOOPS = ksymoops-2.4.9
KSYMOOPS_URL = http://www.kernel.org/pub/linux/utils/kernel/ksymoops/v2.4/$(KSYMOOPS).tar.bz2
KSYMOOPS_SOURCE = $(SRCDIR)/$(KSYMOOPS).tar.bz2
KSYMOOPS_DIR = $(BUILDDIR)/$(KSYMOOPS)
-include $(call package_depfile)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
host-ksymoops_get: $(STATEDIR)/host-ksymoops.get
$(STATEDIR)/host-ksymoops.get: $(KSYMOOPS_SOURCE)
@$(call targetinfo, $@)
@$(call touch, $@)
$(KSYMOOPS_SOURCE):
@$(call targetinfo, $@)
@$(call get, $(KSYMOOPS_URL))
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
host-ksymoops_extract: $(STATEDIR)/host-ksymoops.extract
$(STATEDIR)/host-ksymoops.extract: $(STATEDIR)/host-ksymoops.get
@$(call targetinfo, $@)
@$(call clean, $(KSYMOOPS_DIR))
@$(call extract, $(KSYMOOPS_SOURCE))
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
host-ksymoops_prepare: $(STATEDIR)/host-ksymoops.prepare
KSYMOOPS_MAKEVARS = \
CROSS=$(PTXCONF_GNU_TARGET)- \
INSTALL_PREFIX=$(PTXCONF_PREFIX) \
BFD_PREFIX=$(PTXCONF_PREFIX)/$(GNU_HOST)/$(PTXCONF_GNU_TARGET) \
DEF_TARGET='\"elf32-$(call remove_quotes,$(PTXCONF_ARCH))\"'
$(STATEDIR)/host-ksymoops.prepare:
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
host-ksymoops_compile: $(STATEDIR)/host-ksymoops.compile
host-ksymoops_compile_deps = \
$(STATEDIR)/host-ksymoops.extract
$(STATEDIR)/host-ksymoops.compile: $(host-ksymoops_compile_deps)
@$(call targetinfo, $@)
make -C $(KSYMOOPS_DIR) $(KSYMOOPS_MAKEVARS)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
host-ksymoops_install: $(STATEDIR)/host-ksymoops.install
$(STATEDIR)/host-ksymoops.install: $(STATEDIR)/host-ksymoops.compile
@$(call targetinfo, $@)
make -C $(KSYMOOPS_DIR) $(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: $(STATEDIR)/host-ksymoops.install
@$(call targetinfo, $@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
host-ksymoops_clean:
rm -rf $(STATEDIR)/host-ksymoops.* $(KSYMOOPS_DIR)
# vim: syntax=make
|