diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-07-03 22:28:12 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-07-03 22:28:12 +0200 |
commit | 34a07577a8ddd28d87be1ddf4b3f602e5e7fae93 (patch) | |
tree | 1ce6db4f93d75903c66cadd2789d229e3e9c9c57 | |
parent | aa773b84ed85040f13db19fe7cbfd0f8047c7547 (diff) | |
download | ptxdist-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.sh | 5 |
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}" |