summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2006-11-14 14:50:53 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2006-11-14 14:50:53 +0000
commit9afa9df2d7015fdd8c9f20197826b82c24289181 (patch)
tree2ea85acc21ec9a0ab69c6ac8fbfa134d10238ec8 /rules
parent5ef3de1c8be2764e86d800eee7deeb40e86a5c7b (diff)
downloadptxdist-9afa9df2d7015fdd8c9f20197826b82c24289181.tar.gz
ptxdist-9afa9df2d7015fdd8c9f20197826b82c24289181.tar.xz
add ldd script
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6321 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules')
-rw-r--r--rules/debug.in1
-rw-r--r--rules/ldd.in5
-rw-r--r--rules/ldd.make101
3 files changed, 107 insertions, 0 deletions
diff --git a/rules/debug.in b/rules/debug.in
index 1a647b26b..0f19433c1 100644
--- a/rules/debug.in
+++ b/rules/debug.in
@@ -9,6 +9,7 @@ source "rules/binutils.in"
source "rules/memtest.in"
source "rules/memtester.in"
source "rules/oprofile.in"
+source "rules/ldd.in"
source "rules/ltrace.in"
source "rules/strace.in"
source "rules/valgrind.in"
diff --git a/rules/ldd.in b/rules/ldd.in
new file mode 100644
index 000000000..cb7dc6867
--- /dev/null
+++ b/rules/ldd.in
@@ -0,0 +1,5 @@
+config LDD
+ bool
+ prompt "ldd"
+ help
+ ldd prints shared library dependencies of object files \ No newline at end of file
diff --git a/rules/ldd.make b/rules/ldd.make
new file mode 100644
index 000000000..d8c09e310
--- /dev/null
+++ b/rules/ldd.make
@@ -0,0 +1,101 @@
+# -*-makefile-*-
+# $Id: template 6001 2006-08-12 10:15:00Z mkl $
+#
+# Copyright (C) 2006 by Sascha Hauer
+#
+# 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_LDD) += ldd
+
+# This is the version from the glibc we have stolen from
+LDD_VERSION := 2.3.6
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+ldd_get: $(STATEDIR)/ldd.get
+
+$(STATEDIR)/ldd.get: $(ldd_get_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+ldd_extract: $(STATEDIR)/ldd.extract
+
+$(STATEDIR)/ldd.extract: $(ldd_extract_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/ldd.prepare: $(ldd_prepare_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+ldd_compile: $(STATEDIR)/ldd.compile
+
+$(STATEDIR)/ldd.compile: $(ldd_compile_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+ldd_install: $(STATEDIR)/ldd.install
+
+$(STATEDIR)/ldd.install: $(ldd_install_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+ldd_targetinstall: $(STATEDIR)/ldd.targetinstall
+
+$(STATEDIR)/ldd.targetinstall: $(ldd_targetinstall_deps_default)
+ @$(call targetinfo, $@)
+
+ @$(call install_init, ldd)
+ @$(call install_fixup,ldd,PACKAGE,ldd)
+ @$(call install_fixup,ldd,PRIORITY,optional)
+ @$(call install_fixup,ldd,VERSION,$(LDD_VERSION))
+ @$(call install_fixup,ldd,SECTION,base)
+ @$(call install_fixup,ldd,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
+ @$(call install_fixup,ldd,DEPENDS,)
+ @$(call install_fixup,ldd,DESCRIPTION,missing)
+
+ @$(call install_copy, ldd, 0, 0, 0755, $(PTXDIST_TOPDIR)/generic/bin/ldd, /usr/bin/ldd)
+
+ @$(call install_finish,ldd)
+
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+ldd_clean:
+ rm -rf $(STATEDIR)/ldd.*
+ rm -rf $(IMAGEDIR)/ldd_*
+ rm -rf $(LDD_DIR)
+
+# vim: syntax=make