diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2006-09-12 15:01:10 +0000 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2006-09-12 15:01:10 +0000 |
commit | 5189a62f0ee29dbfba3e8cd191a9f9d3ad6c1df2 (patch) | |
tree | a48fdc550bbea16be0415aebcb3af0a084a78828 /rules/cross-gdb.make | |
parent | 5394a9ba1a87d4ded51e99e18378ce4a3a325392 (diff) | |
download | OSELAS.Toolchain-5189a62f0ee29dbfba3e8cd191a9f9d3ad6c1df2.tar.gz OSELAS.Toolchain-5189a62f0ee29dbfba3e8cd191a9f9d3ad6c1df2.tar.xz |
reunion step 4
git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@871 f8d472c7-5700-0410-ac5a-87979cec3adf
Diffstat (limited to 'rules/cross-gdb.make')
-rw-r--r-- | rules/cross-gdb.make | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/rules/cross-gdb.make b/rules/cross-gdb.make new file mode 100644 index 0000000..3cc8c21 --- /dev/null +++ b/rules/cross-gdb.make @@ -0,0 +1,113 @@ +# -*-makefile-*- +# $Id$ +# +# Copyright (C) 2006 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 +# +CROSS_PACKAGES-$(PTXCONF_CROSS_GDB) += cross-gdb + +# +# Paths and names +# +CROSS_GDB_VERSION := 6.5 +CROSS_GDB := gdb-$(CROSS_GDB_VERSION) +CROSS_GDB_SUFFIX := tar.bz2 +CROSS_GDB_URL := $(PTXCONF_SETUP_GNUMIRROR)/gdb/$(CROSS_GDB).$(CROSS_GDB_SUFFIX) +CROSS_GDB_SOURCE := $(SRCDIR)/$(CROSS_GDB).$(CROSS_GDB_SUFFIX) +CROSS_GDB_DIR := $(CROSS_BUILDDIR)/$(CROSS_GDB) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +cross-gdb_get: $(STATEDIR)/cross-gdb.get + +$(STATEDIR)/cross-gdb.get: $(cross-gdb_get_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +$(CROSS_GDB_SOURCE): + @$(call targetinfo, $@) + @$(call get, CROSS_GDB) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +cross-gdb_extract: $(STATEDIR)/cross-gdb.extract + +$(STATEDIR)/cross-gdb.extract: $(cross-gdb_extract_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(CROSS_GDB_DIR)) + @$(call extract, CROSS_GDB, $(CROSS_BUILDDIR)) + @$(call patchin, CROSS_GDB, $(CROSS_GDB_DIR)) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +cross-gdb_prepare: $(STATEDIR)/cross-gdb.prepare + +CROSS_GDB_PATH := PATH=$(CROSS_PATH) +CROSS_GDB_ENV := $(HOST_ENV) + +# +# autoconf +# +CROSS_GDB_AUTOCONF := \ + --prefix=$(PTXCONF_PREFIX) \ + --build=$(GNU_HOST) \ + --host=$(GNU_HOST) \ + --target=$(PTXCONF_GNU_TARGET) \ + --with-sysroot=$(SYSROOT) \ + --enable-tui +# --enable-gdbtk + +$(STATEDIR)/cross-gdb.prepare: $(cross-gdb_prepare_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(CROSS_GDB_DIR)/config.cache) + cd $(CROSS_GDB_DIR) && \ + $(CROSS_GDB_PATH) $(CROSS_GDB_ENV) \ + ./configure $(CROSS_GDB_AUTOCONF) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +cross-gdb_compile: $(STATEDIR)/cross-gdb.compile + +$(STATEDIR)/cross-gdb.compile: $(cross-gdb_compile_deps_default) + @$(call targetinfo, $@) + cd $(CROSS_GDB_DIR) && $(CROSS_GDB_PATH) $(MAKE) $(PARALLELMFLAGS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +cross-gdb_install: $(STATEDIR)/cross-gdb.install + +$(STATEDIR)/cross-gdb.install: $(cross-gdb_install_deps_default) + @$(call targetinfo, $@) + @$(call install, CROSS_GDB,,h) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +cross-gdb_clean: + rm -rf $(STATEDIR)/cross-gdb.* + rm -rf $(CROSS_GDB_DIR) + +# vim: syntax=make |