summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-07-03 22:28:12 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-07-03 22:28:12 +0200
commit34a07577a8ddd28d87be1ddf4b3f602e5e7fae93 (patch)
tree1ce6db4f93d75903c66cadd2789d229e3e9c9c57
parentaa773b84ed85040f13db19fe7cbfd0f8047c7547 (diff)
downloadptxdist-34a07577a8ddd28d87be1ddf4b3f602e5e7fae93.tar.gz
ptxdist-34a07577a8ddd28d87be1ddf4b3f602e5e7fae93.tar.xz
ptxd_lib_local_src: handle relative paths correctly
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--scripts/lib/ptxd_lib_local_src.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_lib_local_src.sh b/scripts/lib/ptxd_lib_local_src.sh
index c844e13ca..738d8dc91 100644
--- a/scripts/lib/ptxd_lib_local_src.sh
+++ b/scripts/lib/ptxd_lib_local_src.sh
@@ -38,6 +38,11 @@ ptxd_lib_local_src() {
exit 1
fi
+ case "${target}" in
+ /*) ;;
+ *) target="$(ptxd_abspath "${target}")" ;;
+ esac
+
echo "Creating local_src link for '${pkgname}'. Package '${pkgname}' will be built from '${target}'"
ln -s "${target}" "${link}"