summaryrefslogtreecommitdiffstats
path: root/meta/classes/bin_package.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/bin_package.bbclass')
-rw-r--r--meta/classes/bin_package.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/bin_package.bbclass b/meta/classes/bin_package.bbclass
index a52b75be5c..cbc9b1fa13 100644
--- a/meta/classes/bin_package.bbclass
+++ b/meta/classes/bin_package.bbclass
@@ -26,7 +26,10 @@ do_compile[noexec] = "1"
bin_package_do_install () {
# Do it carefully
[ -d "${S}" ] || exit 1
- cd ${S} || exit 1
+ if [ -z "$(ls -A ${S})" ]; then
+ bbfatal bin_package has nothing to install. Be sure the SRC_URI unpacks into S.
+ fi
+ cd ${S}
tar --no-same-owner --exclude='./patches' --exclude='./.pc' -cpf - . \
| tar --no-same-owner -xpf - -C ${D}
}