]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: explicitly set workdir in do_bundle_initramfs
authorAndré Draszik <git@andred.net>
Thu, 21 Jul 2016 11:09:23 +0000 (12:09 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Jul 2016 22:47:01 +0000 (23:47 +0100)
bitbake rev 67a7b8b02 "build: don't use $B as the default cwd for
functions" (included in current bitbake master) breaks the assumption
that do_bundle_initramfs runs inside the build directory.

This causes kernel_do_compile() as called from within
do_bundle_initramfs() to fail, as the former is not being executed
from the correct directory anymore. (Note that kernel_do_compile()
as called from bitbake directly doesn't suffer from that problem,
as it inherits the workdir from base_do_compile() in that case.)

Set workdir explicitly.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/kernel.bbclass

index a56b66b291a8aeb1740a959613f91a52af61a97c..fa76a14863a5551a010f02b286df4d53c372bffc 100644 (file)
@@ -246,6 +246,7 @@ do_bundle_initramfs () {
                done
        fi
 }
+do_bundle_initramfs[dirs] = "${B}"
 
 python do_devshell_prepend () {
     os.environ["LDFLAGS"] = ''