[oe-commits] [openembedded-core] 47/72: kernel.bbclass: explicitly set workdir in do_bundle_initramfs

git at git.openembedded.org git at git.openembedded.org
Mon Jul 25 22:53:15 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 4455da22a151c2ac006af63cbd39779b21b12580
Author: André Draszik <git at andred.net>
AuthorDate: Thu Jul 21 12:09:23 2016 +0100

    kernel.bbclass: explicitly set workdir in do_bundle_initramfs
    
    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 at andred.net>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/kernel.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index a56b66b..fa76a14 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -246,6 +246,7 @@ do_bundle_initramfs () {
 		done
 	fi
 }
+do_bundle_initramfs[dirs] = "${B}"
 
 python do_devshell_prepend () {
     os.environ["LDFLAGS"] = ''

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list