mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bernhard Walle <bernhard@bwalle.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] glibc: Make it possible to install ldd
Date: Wed, 14 Aug 2013 11:34:32 +0200	[thread overview]
Message-ID: <1376472872-7936-1-git-send-email-bernhard@bwalle.de> (raw)

The standalone ldd of ptxdist doesn't work with all toolchains.
For example, for my ct-ng based toolchain, /lib/ld-linux-armhf.so.3
must be in the RTLDLIST.

Instead of adding more intelligence to the script, we just install the
ldd from the toolchain which already has the right RTLDLIST.

The patch also adds some guard for the standalone ldd to avoid selecting
both variants in the configuration.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
 rules/glibc.in   | 7 +++++++
 rules/glibc.make | 5 +++++
 rules/ldd.in     | 4 ++++
 3 files changed, 16 insertions(+)

diff --git a/rules/glibc.in b/rules/glibc.in
index 2f2fb09..de214d0 100644
--- a/rules/glibc.in
+++ b/rules/glibc.in
@@ -163,6 +163,13 @@ config GLIBC_RESOLV
 	  will need both libraries if your /etc/nsswitch.conf contains a line
 	  like "hosts: file dns"
 
+config GLIBC_LDD
+	bool
+	prompt "Install ldd"
+	help
+	  Install 'ldd' from the toolchain.
+
+
 config GLIBC_NSL
 	bool
 	prompt "Install libnsl"
diff --git a/rules/glibc.make b/rules/glibc.make
index d2c5519..d1dea73 100644
--- a/rules/glibc.make
+++ b/rules/glibc.make
@@ -99,6 +99,11 @@ ifdef PTXCONF_GLIBC_RESOLV
 	@$(call install_copy_toolchain_lib, glibc, libresolv.so)
 endif
 
+ifdef PTXCONF_GLIBC_LDD
+	@echo "Installing ldd"
+	$(call install_copy_toolchain_usr, glibc, bin/ldd)
+endif
+
 ifdef PTXCONF_GLIBC_NSL
 	@$(call install_copy_toolchain_lib, glibc, libnsl.so)
 endif
diff --git a/rules/ldd.in b/rules/ldd.in
index 66422c2..33756bb 100644
--- a/rules/ldd.in
+++ b/rules/ldd.in
@@ -3,5 +3,9 @@
 config LDD
 	tristate
 	prompt "ldd"
+	depends on !GLIBC_LDD || ALLYES
 	help
 	  ldd prints shared library dependencies of object files
+
+comment "glibc 'ldd' is selected"
+	depends on GLIBC_LDD
-- 
1.8.3.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2013-08-14  9:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-14  9:34 Bernhard Walle [this message]
2013-08-14  9:48 ` Marc Kleine-Budde
2013-08-14  9:59   ` Bernhard Walle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1376472872-7936-1-git-send-email-bernhard@bwalle.de \
    --to=bernhard@bwalle.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox