summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemy Bohmer <linux@bohmer.net>2010-10-30 18:34:24 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-11-03 10:12:29 +0100
commit29e4c19f755534e39408e66033003b8ec539f4d1 (patch)
tree2580be63dbfe9e517477772fd196b5da251e37f7
parentfea623001730adac6cb94962af79b6831b90a6ba (diff)
downloadptxdist-29e4c19f755534e39408e66033003b8ec539f4d1.tar.gz
ptxdist-29e4c19f755534e39408e66033003b8ec539f4d1.tar.xz
fix failing cd in prepare stage if <PKG>_CONF_TOOL=NO and empty extractptxdist-2010.11.0
In case the extract stage is empty and <PKG>_CONF_TOOL is set to NO, then the prepare stage fails. First a cd was done to the build_dir, but that does not exist when the extract is empty. This makes the prepare stage fail while we told it with <PKG>_CONF_TOOL=NO to skip that stage Signed-off-by: Remy Bohmer <linux@bohmer.net> [mol: fix indent] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--scripts/lib/ptxd_make_world_prepare.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_make_world_prepare.sh b/scripts/lib/ptxd_make_world_prepare.sh
index 2dfc13d13..d484a7afa 100644
--- a/scripts/lib/ptxd_make_world_prepare.sh
+++ b/scripts/lib/ptxd_make_world_prepare.sh
@@ -110,9 +110,9 @@ ptxd_make_world_prepare() {
mkdir -p -- "${pkg_build_dir}" || return
fi
- cd -- "${pkg_build_dir}" &&
case "${pkg_conf_tool}" in
autoconf|cmake|qmake)
+ cd -- "${pkg_build_dir}" &&
ptxd_make_world_prepare_"${pkg_conf_tool}" ;;
"NO") echo "prepare stage disabled." ;;
"") echo "No prepare tool found. Do nothing." ;;