diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2006-03-27 08:55:51 +0000 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2006-03-27 08:55:51 +0000 |
commit | 2284e1efab718b46cd800eaa14c036492a0ad7dd (patch) | |
tree | e10e62493f4dceee76cc6ec5593a1051d5fd83d1 /rules/libelf.make | |
parent | 45badaca479775a0192918c15c19cfa1539b7412 (diff) | |
download | ptxdist-2284e1efab718b46cd800eaa14c036492a0ad7dd.tar.gz ptxdist-2284e1efab718b46cd800eaa14c036492a0ad7dd.tar.xz |
* rules/libelf.in, rules/debug.in, rules/libelf.make, rules/Kconfig.in, rules/ltrace.in, rules/ltrace.make:
added libelf and ltrace
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.10-trunk@5284 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/libelf.make')
-rw-r--r-- | rules/libelf.make | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/rules/libelf.make b/rules/libelf.make new file mode 100644 index 000000000..43b664107 --- /dev/null +++ b/rules/libelf.make @@ -0,0 +1,123 @@ +# -*-makefile-*- +# $Id: template 5041 2006-03-09 08:45:49Z mkl $ +# +# 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 +# +PACKAGES-$(PTXCONF_LIBELF) += libelf + +# +# Paths and names +# +LIBELF_VERSION := 0.8.5.orig +LIBELF := libelf-$(LIBELF_VERSION) +LIBELF_SUFFIX := tar.gz +LIBELF_TARBALL := libelf_$(LIBELF_VERSION).$(LIBELF_SUFFIX) +LIBELF_URL := $(PTXCONF_SETUP_DEBMIRROR)/pool/main/libe/libelf/$(LIBELF_TARBALL) +LIBELF_SOURCE := $(SRCDIR)/$(LIBELF_TARBALL) +LIBELF_DIR := $(BUILDDIR)/$(LIBELF) + +-include $(call package_depfile) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +libelf_get: $(STATEDIR)/libelf.get + +$(STATEDIR)/libelf.get: $(libelf_get_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +$(LIBELF_SOURCE): + @$(call targetinfo, $@) + @$(call get, $(LIBELF_URL)) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +libelf_extract: $(STATEDIR)/libelf.extract + +$(STATEDIR)/libelf.extract: $(libelf_extract_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(LIBELF_DIR)) + @$(call extract, $(LIBELF_SOURCE)) + @$(call patchin, $(LIBELF)) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +libelf_prepare: $(STATEDIR)/libelf.prepare + +LIBELF_PATH := PATH=$(CROSS_PATH) +LIBELF_ENV := $(CROSS_ENV) + +# +# autoconf +# +LIBELF_AUTOCONF := \ + $(CROSS_AUTOCONF_USR) \ + --target=$(PTXCONF_GNU_TARGET) \ + --disable-nls + +$(STATEDIR)/libelf.prepare: $(libelf_prepare_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(LIBELF_DIR)/config.cache) + cd $(LIBELF_DIR) && \ + $(LIBELF_PATH) $(LIBELF_ENV) \ + ./configure $(LIBELF_AUTOCONF) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +libelf_compile: $(STATEDIR)/libelf.compile + +$(STATEDIR)/libelf.compile: $(libelf_compile_deps_default) + @$(call targetinfo, $@) + cd $(LIBELF_DIR) && $(LIBELF_PATH) make + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +libelf_install: $(STATEDIR)/libelf.install + +$(STATEDIR)/libelf.install: $(libelf_install_deps_default) + @$(call targetinfo, $@) + @$(call install, LIBELF,,,instroot=$(SYSROOT)) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +libelf_targetinstall: $(STATEDIR)/libelf.targetinstall + +$(STATEDIR)/libelf.targetinstall: $(libelf_targetinstall_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +libelf_clean: + rm -rf $(STATEDIR)/libelf.* + rm -rf $(IMAGEDIR)/libelf_* + rm -rf $(LIBELF_DIR) + +# vim: syntax=make |