diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2006-08-29 11:36:25 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2006-08-29 11:36:25 +0000 |
commit | a09127b31e4a718afef553b7aff77ab6a20cdfe2 (patch) | |
tree | 5fd3a1bb5643dfacfe402405331a6e31604d8d92 /rules/glibc-ports.make | |
parent | cdacb263f0026bc24caefe75a68adddbc0e613f2 (diff) | |
download | OSELAS.Toolchain-a09127b31e4a718afef553b7aff77ab6a20cdfe2.tar.gz OSELAS.Toolchain-a09127b31e4a718afef553b7aff77ab6a20cdfe2.tar.xz |
git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@768 f8d472c7-5700-0410-ac5a-87979cec3adf
Diffstat (limited to 'rules/glibc-ports.make')
-rw-r--r-- | rules/glibc-ports.make | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/rules/glibc-ports.make b/rules/glibc-ports.make new file mode 100644 index 0000000..7cfc43d --- /dev/null +++ b/rules/glibc-ports.make @@ -0,0 +1,107 @@ +# -*-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 +# +PACKAGES-$(PTXCONF_GLIBC_PORTS) += glibc-ports + +# +# Paths and names +# +GLIBC_PROTS_VERSION := $(call remove_quotes,$(PTXCONF_GLIBC_PORTS_VERSION)) +GLIBC_PORTS := glibc-ports-$(GLIBC_PROTS_VERSION) +GLIBC_PORTS_SUFFIX := tar.bz2 +GLIBC_PORTS_URL := $(PTXCONF_SETUP_GNUMIRROR)/glibc/$(GLIBC_PORTS).$(GLIBC_PORTS_SUFFIX) +GLIBC_PORTS_SOURCE := $(SRCDIR)/$(GLIBC_PORTS).$(GLIBC_PORTS_SUFFIX) +GLIBC_PORTS_DIR := $(BUILDDIR)/$(GLIBC_PORTS) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +glibc-ports_get: $(STATEDIR)/glibc-ports.get + +$(STATEDIR)/glibc-ports.get: $(glibc-ports_get_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +$(GLIBC_PORTS_SOURCE): + @$(call targetinfo, $@) + @$(call get, GLIBC_PORTS) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +ifdef PTXCONF_GLIBC_PORTS +$(STATEDIR)/glibc.extract: $(STATEDIR)/glibc-ports.extract +endif + +glibc-ports_extract: $(STATEDIR)/glibc-ports.extract + +$(STATEDIR)/glibc-ports.extract: $(glibc-ports_extract_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(GLIBC_PORTS_DIR)) + @$(call extract, GLIBC_PORTS, $(BUILDDIR)) + @$(call patchin, GLIBC_PORTS, $(GLIBC_PORTS_DIR)) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +glibc-ports_prepare: $(STATEDIR)/glibc-ports.prepare + +$(STATEDIR)/glibc-ports.prepare: $(glibc-ports_prepare_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +glibc-ports_compile: $(STATEDIR)/glibc-ports.compile + +$(STATEDIR)/glibc-ports.compile: $(glibc-ports_compile_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +glibc-ports_install: $(STATEDIR)/glibc-ports.install + +$(STATEDIR)/glibc-ports.install: $(glibc-ports_install_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +glibc-ports_targetinstall: $(STATEDIR)/glibc-ports.targetinstall + +$(STATEDIR)/glibc-ports.targetinstall: $(glibc-ports_targetinstall_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +glibc-ports_clean: + rm -rf $(STATEDIR)/glibc-ports.* + rm -rf $(IMAGEDIR)/glibc_ports_* + rm -rf $(GLIBC_PORTS_DIR) + +# vim: syntax=make |