summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2017-05-13 10:55:58 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-05-15 16:07:51 +0200
commit6a1c031bc9f35c282e56dcd34dc6a9f87c6836cf (patch)
treeae8c47276021715df6da841d9b185df9d527b338 /scripts
parent25560e4d8bf1fe771cdc10ceeaf9cd0b559ed5e9 (diff)
downloadptxdist-6a1c031bc9f35c282e56dcd34dc6a9f87c6836cf.tar.gz
ptxdist-6a1c031bc9f35c282e56dcd34dc6a9f87c6836cf.tar.xz
scipts: make ptxd_get_dl globaly available
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install_copy_toolchain.sh13
-rw-r--r--scripts/lib/ptxd_make_00-init.sh13
2 files changed, 13 insertions, 13 deletions
diff --git a/scripts/install_copy_toolchain.sh b/scripts/install_copy_toolchain.sh
index f38e8959c..7c346ff9d 100755
--- a/scripts/install_copy_toolchain.sh
+++ b/scripts/install_copy_toolchain.sh
@@ -31,19 +31,6 @@ ptxd_get_lib_path() {
#
-# out: dynamic linker name
-#
-ptxd_get_dl() {
- local dl
-
- dl="$(ptxd_cross_cc_v | \
- sed -n -e 's/.* -dynamic-linker \([^ ]*\).*/\1/p')"
-
- echo "${dl##*/}"
-}
-
-
-#
# $1: lib_path # cannolocilized path to lib or link
# $2: var # sysroot and prefix will be "prefixed" with this var if existing
#
diff --git a/scripts/lib/ptxd_make_00-init.sh b/scripts/lib/ptxd_make_00-init.sh
index 466aa7425..a55846042 100644
--- a/scripts/lib/ptxd_make_00-init.sh
+++ b/scripts/lib/ptxd_make_00-init.sh
@@ -82,6 +82,19 @@ ptxd_cross_cc_v() {
export -f ptxd_cross_cc_v
#
+# out: dynamic linker name
+#
+ptxd_get_dl() {
+ local dl
+
+ dl="$(ptxd_cross_cc_v | \
+ sed -n -e 's/.* -dynamic-linker \([^ ]*\).*/\1/p')"
+
+ echo "${dl##*/}"
+}
+export -f ptxd_get_dl
+
+#
# figure out the toolchain's sysroot
#
# out: PTXDIST_SYSROOT_TOOLCHAIN