summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_prepare.sh
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2010-08-01 20:56:20 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-10-27 18:22:27 +0200
commite310e3c9cf1be1d89c5732c80d1bd0f45fc2f413 (patch)
tree1eec95a8493e58408d84b90f451da95856d15cd4 /scripts/lib/ptxd_make_world_prepare.sh
parente268c9265b6a99f82f9a05709e63b660aa57a479 (diff)
downloadptxdist-e310e3c9cf1be1d89c5732c80d1bd0f45fc2f413.tar.gz
ptxdist-e310e3c9cf1be1d89c5732c80d1bd0f45fc2f413.tar.xz
[prepare] do nothing in prepare if the conf directory is undefined.
This makes it possible to use the default prepare stage for packages that have no sources. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_prepare.sh')
-rw-r--r--scripts/lib/ptxd_make_world_prepare.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_prepare.sh b/scripts/lib/ptxd_make_world_prepare.sh
index b7458695c..2dfc13d13 100644
--- a/scripts/lib/ptxd_make_world_prepare.sh
+++ b/scripts/lib/ptxd_make_world_prepare.sh
@@ -99,6 +99,11 @@ ptxd_make_world_prepare() {
ptxd_make_world_init &&
ptxd_make_world_prepare_sanity_check || return
+ if [ -z "${pkg_conf_dir_abs}" ]; then
+ # no conf dir -> assume the package has nothing to configure.
+ return
+ fi
+
# delete existing build_dir
if [ -n "${pkg_build_oot}" ]; then
rm -rf -- "${pkg_build_dir}" &&