From 8b6ab217da4d87018b1483fac2424fdf0e8ef3ad Mon Sep 17 00:00:00 2001 From: Robert Schwebel Date: Thu, 7 Dec 2006 21:25:52 +0000 Subject: * 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 --- Kconfig | 1 + rules/cross-toolchain.in | 5 +++ rules/cross-toolchain.make | 85 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+) create mode 100644 rules/cross-toolchain.in create mode 100644 rules/cross-toolchain.make diff --git a/Kconfig b/Kconfig index 159bd00..d945270 100644 --- a/Kconfig +++ b/Kconfig @@ -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 -- cgit v1.2.3