diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2010-06-11 13:44:10 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2011-02-22 11:26:03 +0100 |
commit | 808325c74c2d99a9589314253a6f840909d5b62d (patch) | |
tree | 3365e500bcf3b64a7e22be697a0fc36263065e2c | |
parent | ebe5e8555c497a1db67d186cb02e0646d98b21ca (diff) | |
download | OSELAS.Toolchain-808325c74c2d99a9589314253a6f840909d5b62d.tar.gz OSELAS.Toolchain-808325c74c2d99a9589314253a6f840909d5b62d.tar.xz |
[mpc] add support for libmpc
Newer gcc versions need support for libmpc which is added by this patch.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
-rw-r--r-- | Kconfig | 1 | ||||
-rw-r--r-- | rules/cross-gcc.in | 3 | ||||
-rw-r--r-- | rules/host-mpc.in | 4 | ||||
-rw-r--r-- | rules/host-mpc.make | 59 |
4 files changed, 67 insertions, 0 deletions
@@ -67,6 +67,7 @@ source "workspace/rules/cross-gcc.in" source "workspace/rules/cross-gdb.in" source "workspace/rules/cross-toolchain.in" source "workspace/rules/host-gmp.in" +source "workspace/rules/host-mpc.in" source "workspace/rules/host-mpfr.in" comment "----------------------------------" diff --git a/rules/cross-gcc.in b/rules/cross-gcc.in index 5ad7361..582f349 100644 --- a/rules/cross-gcc.in +++ b/rules/cross-gcc.in @@ -7,6 +7,7 @@ menuconfig CROSS_GCC select LIBC_FIRST select HOST_GMP if CROSS_GCC_43 select HOST_MPFR if CROSS_GCC_43 + select HOST_MPC if CROSS_GCC_43 select CROSS_ECJ if CROSS_GCC_LANG_JAVA if CROSS_GCC @@ -169,3 +170,5 @@ config CROSS_GCC_FIRST select LIBC_HEADERS select HOST_GMP if CROSS_GCC_43 select HOST_MPFR if CROSS_GCC_43 + select HOST_MPC if CROSS_GCC_43 + diff --git a/rules/host-mpc.in b/rules/host-mpc.in new file mode 100644 index 0000000..75bd349 --- /dev/null +++ b/rules/host-mpc.in @@ -0,0 +1,4 @@ +config HOST_MPC + bool + select HOST_GMP + select HOST_MPFR diff --git a/rules/host-mpc.make b/rules/host-mpc.make new file mode 100644 index 0000000..a91ed1c --- /dev/null +++ b/rules/host-mpc.make @@ -0,0 +1,59 @@ +# -*-makefile-*- +# $Id$ +# +# Copyright (C) 2007-2008 by Marc Kleine-Budde <mkl@pengutronix.de> +# +# 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 +# +HOST_PACKAGES-$(PTXCONF_HOST_MPC) += host-mpc + +# +# Paths and names +# +HOST_MPC_VERSION := 0.8.2 +HOST_MPC := mpc-$(HOST_MPC_VERSION) +HOST_MPC_SUFFIX := tar.gz +HOST_MPC_URL := http://www.multiprecision.org/mpc/download/$(HOST_MPC).$(HOST_MPC_SUFFIX) +HOST_MPC_SOURCE := $(SRCDIR)/$(HOST_MPC).$(HOST_MPC_SUFFIX) +HOST_MPC_DIR := $(HOST_BUILDDIR)/$(HOST_MPC) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(HOST_MPC_SOURCE): + @$(call targetinfo) + @$(call get, HOST_MPC) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +HOST_MPC_PATH := PATH=$(HOST_PATH) +HOST_MPC_ENV := $(PTX_HOST_ENV) +HOST_MPC_DEVPKG := NO + +# +# autoconf +# +HOST_MPC_AUTOCONF := \ + $(PTX_HOST_AUTOCONF) \ + --disable-shared \ + --enable-static + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +#host-mpc_clean: +# rm -rf $(STATEDIR)/host-mpc.* +# rm -rf $(HOST_MPC_DIR) + +# vim: syntax=make |