blob: 74419a20f05c0572932d32c08c5404bf13583c38 (
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
|
# -*-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
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(STATEDIR)/cross-toolchain.get:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
$(STATEDIR)/cross-toolchain.extract:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
$(STATEDIR)/cross-toolchain.prepare:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
$(STATEDIR)/cross-toolchain.compile:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/cross-toolchain.install:
@$(call targetinfo)
@if [ -e "${PTXCONF_SYSROOT_CROSS}/bin/ptxconfig" ]; then \
rm -rf "${PTXCONF_SYSROOT_CROSS}/bin/ptxconfig"; \
fi
@cp ${PTXDIST_PTXCONFIG} ${PTXCONF_SYSROOT_CROSS}/bin/ptxconfig
@if [ -e "$(STATEDIR)/toolchain-install-dir" ]; then \
rm -rf "$(STATEDIR)/toolchain-install-dir"; \
fi
@ln -s ${PTXCONF_SYSROOT_CROSS} $(STATEDIR)/toolchain-install-dir
@$(call touch)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
cross-toolchain_clean:
rm -rf $(STATEDIR)/cross-toolchain.*
# vim: syntax=make
|