bitbake: build: filter out expanded empty strings for lockfiles flag
authorStefan Stanacar <stefanx.stanacar@intel.com>
Thu, 27 Feb 2014 15:42:07 +0000 (17:42 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 28 Feb 2014 14:48:40 +0000 (14:48 +0000)
commitc0243129b2340155949fd342a25eb72a3ecfca08
tree5410c99802e2ea7d8708e9817f9bfec8d98e0298
parentb93f8a4c159c1730b4e31b8cda46e7c7abce0355
bitbake: build: filter out expanded empty strings for lockfiles flag

If we have something similar to:

    LOCKFILES = "${TMPDIR}/my.lock"
    LOCKFILES_qemuall = ""

    do_task[lockfiles] += "${LOCKFILES}"

when expanded, lockfiles will be empty for qemu, resulting in

     File "/home/stefans/yocto/poky/bitbake/lib/bb/utils.py", line 630, in mkdirhier
raise e
    OSError: [Errno 2] No such file or directory: ''

This should filter out the empty expansions.

(Bitbake rev: 7813e1bfd08cd48871f8c03cae2810265590105d)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/build.py