summaryrefslogtreecommitdiffstats
path: root/rules/cross-toolchain.make
diff options
context:
space:
mode:
Diffstat (limited to 'rules/cross-toolchain.make')
-rw-r--r--rules/cross-toolchain.make85
1 files changed, 85 insertions, 0 deletions
diff --git a/rules/cross-toolchain.make b/rules/cross-toolchain.make
new file mode 100644
index 0000000..a0718cc
--- /dev/null
+++ b/rules/cross-toolchain.make
@@ -0,0 +1,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