diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2006-12-07 21:25:52 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2006-12-07 21:25:52 +0000 |
commit | 8b6ab217da4d87018b1483fac2424fdf0e8ef3ad (patch) | |
tree | 833016651eec95e3bd78ce39ab1f4bbd7f10806e | |
parent | 5db79b77ab7444dea8dbc44e1bd9b261ac2ecdc5 (diff) | |
download | OSELAS.Toolchain-8b6ab217da4d87018b1483fac2424fdf0e8ef3ad.tar.gz OSELAS.Toolchain-8b6ab217da4d87018b1483fac2424fdf0e8ef3ad.tar.xz |
* cross-toolchain: added pseudo packet which does just install
the ptxconfig file into the toolchain bin dir.
git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@1442 f8d472c7-5700-0410-ac5a-87979cec3adf
-rw-r--r-- | Kconfig | 1 | ||||
-rw-r--r-- | rules/cross-toolchain.in | 5 | ||||
-rw-r--r-- | rules/cross-toolchain.make | 85 |
3 files changed, 91 insertions, 0 deletions
@@ -42,6 +42,7 @@ source "workspace/rules/kernel-headers.in" source "workspace/rules/cross-gcc-first.in" source "workspace/rules/cross-gcc-second.in" source "workspace/rules/cross-gdb.in" +source "workspace/rules/cross-toolchain.in" comment " " diff --git a/rules/cross-toolchain.in b/rules/cross-toolchain.in new file mode 100644 index 0000000..460a523 --- /dev/null +++ b/rules/cross-toolchain.in @@ -0,0 +1,5 @@ +# dummy packet to create the ptxconfig file + +config CROSS_TOOLCHAIN + bool + default y 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 |