Skip to contentSkip to conversation

kernel.bbclass: explicitly set workdir in do_bundle_initramfs

PATCH New [email protected] 1 participant 1 message Jul 21, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel.bbclass: explicitly set workdir in do_bundle_initramfs

From: André Draszik <[email protected]>

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.

---
 meta/classes/kernel.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/kernel.bbclass +1 -0
index a56b66b..fa76a14 100644
@@ -246,6 +246,7 @@ do_bundle_initramfs () {
 		done
 	fi
 }
+do_bundle_initramfs[dirs] = "${B}"
 
 python do_devshell_prepend () {
     os.environ["LDFLAGS"] = ''
Signature · 1 line
2.8.1