diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-08-01 20:12:34 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-10-27 18:22:27 +0200 |
commit | 859ca3c1a7c2b63e3b96a0d3a9d7203bb42cc574 (patch) | |
tree | fd9b0db450dd3257f86b6b1ec06723900d70d82c /scripts/lib/ptxd_make_world_compile.sh | |
parent | e310e3c9cf1be1d89c5732c80d1bd0f45fc2f413 (diff) | |
download | ptxdist-859ca3c1a7c2b63e3b96a0d3a9d7203bb42cc574.tar.gz ptxdist-859ca3c1a7c2b63e3b96a0d3a9d7203bb42cc574.tar.xz |
[compile] do nothing in compile if the build directory is undefined.
This makes it possible to use the default compile stage for packages
that have no sources.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_compile.sh')
-rw-r--r-- | scripts/lib/ptxd_make_world_compile.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_compile.sh b/scripts/lib/ptxd_make_world_compile.sh index 3647e8248..b325d45b1 100644 --- a/scripts/lib/ptxd_make_world_compile.sh +++ b/scripts/lib/ptxd_make_world_compile.sh @@ -13,6 +13,11 @@ ptxd_make_world_compile() { ptxd_make_world_init && + if [ -z "${pkg_build_dir}" ]; then + # no build dir -> assume the package has nothing to build. + return + fi && + eval \ "${pkg_path}" \ "${pkg_env}" \ |