[oe-commits] [openembedded-core] 02/03: classes/populate_sdk_ext: work around runqemu behaviour within the eSDK

git at git.openembedded.org git at git.openembedded.org
Wed Apr 19 09:39:44 UTC 2017


This is an automated email from the git hooks/post-receive script.

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

commit 1ef833b6393366a10f4bb65df89725ad65761386
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Wed Apr 19 20:57:28 2017 +1200

    classes/populate_sdk_ext: work around runqemu behaviour within the eSDK
    
    Currently, in order to figure out variable values when run within the
    eSDK, runqemu does not use the standard SDK method nor is it able to run
    bitbake (since the eSDK environment isn't initialised like the normal
    OE build environment). runqemu really ought to be fixed, but the quick
    workaround is to set DEPLOY_DIR_IMAGE in the environment so that runqemu
    can find image files.
    
    Fixes [YOCTO #10447].
    
    Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/populate_sdk_ext.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index 3e1858c..4dfb94c 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -577,6 +577,8 @@ sdk_ext_postinst() {
 
 	# Allow bitbake environment setup to be ran as part of this sdk.
 	echo "export OE_SKIP_SDK_CHECK=1" >> $env_setup_script
+	# Work around runqemu not knowing how to get this information within the eSDK
+	echo "export DEPLOY_DIR_IMAGE=$target_sdk_dir/tmp/${@os.path.relpath(d.getVar('DEPLOY_DIR_IMAGE'), d.getVar('TMPDIR'))}" >> $env_setup_script
 
 	# A bit of another hack, but we need this in the path only for devtool
 	# so put it at the end of $PATH.

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


More information about the Openembedded-commits mailing list