summaryrefslogtreecommitdiffstats
path: root/rules/cross-toolchain.make
blob: c95f895c55d0b880d78381b5c735d0048560adf3 (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
# -*-makefile-*-
#
# 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

CROSS_TOOLCHAIN_LICENSE := ignore

# ----------------------------------------------------------------------------
# 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)

# vim: syntax=make