aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Julien Boibessot <julien.boibessot@armadeus.com>2020-04-22 17:34:42 +0200
committerGravatar Yann E. MORIN <yann.morin.1998@free.fr>2020-04-27 22:55:19 +0200
commit28f39c68e92c5b22d713fc0279bd9ca64048ee94 (patch)
treec92e2153c8b9b67cabea33b46be8aeaade3200d3
parent4f064ef8efc66f4efbd0a96fb1be5bedfd28ed76 (diff)
downloadbuildroot-28f39c68e92c5b22d713fc0279bd9ca64048ee94.tar.gz
buildroot-28f39c68e92c5b22d713fc0279bd9ca64048ee94.tar.bz2
toolchain/toolchain-external: install ldd on the target
From: Julien Boibessot <julien.boibessot@armadeus.com> It could be usefull to have ldd on the target so install it. Signed-off-by: Julien Boibessot <julien.boibessot@armadeus.com> [S├ębastien: add commit message] Signed-off-by: S├ębastien Szymanski <sebastien.szymanski@armadeus.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
-rw-r--r--toolchain/toolchain-external/pkg-toolchain-external.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/toolchain/toolchain-external/pkg-toolchain-external.mk b/toolchain/toolchain-external/pkg-toolchain-external.mk
index 8667d7ddf6..6d91cb5d1e 100644
--- a/toolchain/toolchain-external/pkg-toolchain-external.mk
+++ b/toolchain/toolchain-external/pkg-toolchain-external.mk
@@ -499,6 +499,12 @@ define TOOLCHAIN_EXTERNAL_FIXUP_UCLIBCNG_LDSO
fi
endef
+define TOOLCHAIN_EXTERNAL_INSTALL_TARGET_LDD
+ $(Q)if test -f $(STAGING_DIR)/usr/bin/ldd ; then \
+ $(INSTALL) -D $(STAGING_DIR)/usr/bin/ldd $(TARGET_DIR)/usr/bin/ldd ; \
+ $(SED) 's:.*/bin/bash:#!/bin/sh:' $(TARGET_DIR)/usr/bin/ldd ; \
+ fi
+endef
################################################################################
# inner-toolchain-external-package -- defines the generic installation rules
@@ -593,6 +599,7 @@ define $(2)_INSTALL_TARGET_CMDS
$$(TOOLCHAIN_EXTERNAL_INSTALL_TARGET_LIBS)
$$(TOOLCHAIN_EXTERNAL_INSTALL_TARGET_GDBSERVER)
$$(TOOLCHAIN_EXTERNAL_FIXUP_UCLIBCNG_LDSO)
+ $$(TOOLCHAIN_EXTERNAL_INSTALL_TARGET_LDD)
endef
# Call the generic package infrastructure to generate the necessary