diff options
Diffstat (limited to 'import-layers/yocto-poky/meta/classes/bin_package.bbclass')
-rw-r--r-- | import-layers/yocto-poky/meta/classes/bin_package.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/import-layers/yocto-poky/meta/classes/bin_package.bbclass b/import-layers/yocto-poky/meta/classes/bin_package.bbclass index a52b75be5..cbc9b1fa1 100644 --- a/import-layers/yocto-poky/meta/classes/bin_package.bbclass +++ b/import-layers/yocto-poky/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} } |