summaryrefslogtreecommitdiffstats
path: root/rules/cross-toolchain.make
blob: a0718cca520df046deb4e0a8773f9a1e6f118baa (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
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2006 by Robert Schwebel
#
# 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
#
CROSS_PACKAGES-$(PTXCONF_CROSS_TOOLCHAIN) += cross-toolchain

#
# Paths and names
#
CROSS_TOOLCHAIN_VERSION		:=
CROSS_TOOLCHAIN			:= toolchain-$(CROSS_TOOLCHAIN_VERSION)
CROSS_TOOLCHAIN_DIR		:= $(CROSS_BUILDDIR)/$(CROSS_TOOLCHAIN)

# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------

cross-toolchain_get: $(STATEDIR)/cross-toolchain.get

$(STATEDIR)/cross-toolchain.get: $(cross-toolchain_get_deps_default)
	@$(call targetinfo, $@)
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------

cross-toolchain_extract: $(STATEDIR)/cross-toolchain.extract

$(STATEDIR)/cross-toolchain.extract: $(cross-toolchain_extract_deps_default)
	@$(call targetinfo, $@)
	@$(call touch, $@)

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

cross-toolchain_prepare: $(STATEDIR)/cross-toolchain.prepare

$(STATEDIR)/cross-toolchain.prepare: $(cross-toolchain_prepare_deps_default)
	@$(call targetinfo, $@)
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

cross-toolchain_compile: $(STATEDIR)/cross-toolchain.compile

$(STATEDIR)/cross-toolchain.compile: $(cross-toolchain_compile_deps_default)
	@$(call targetinfo, $@)
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

cross-toolchain_install: $(STATEDIR)/cross-toolchain.install

$(STATEDIR)/cross-toolchain.install: $(cross-toolchain_install_deps_default)
	@$(call targetinfo, $@)
	rm -f ${PTXCONF_PREFIX_FIRST}/${PTXCONF_PREFIX_SECOND}/bin/ptxconfig
	cat ${PTXDIST_WORKSPACE}/ptxconfig > ${PTXCONF_PREFIX_FIRST}/${PTXCONF_PREFIX_SECOND}/bin/ptxconfig
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------

cross-toolchain_clean:
	rm -rf $(STATEDIR)/cross-toolchain.*
	rm -rf $(IMAGEDIR)/cross-toolchain_*
	rm -rf $(CROSS_TOOLCHAIN_DIR)

# vim: syntax=make