summaryrefslogtreecommitdiffstats
path: root/meta/classes/populate_sdk_ext.bbclass
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-04-19 20:57:28 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-19 10:38:37 +0100
commit9e267ad1739d460127e4c7ab71e886e0b1f153a1 (patch)
tree84170a37821949a5f94b3a10c165a8859df7a172 /meta/classes/populate_sdk_ext.bbclass
parent6ffec971e8e01964c4393c54872400d489a5c0d6 (diff)
downloadpoky-9e267ad1739d460127e4c7ab71e886e0b1f153a1.tar.gz
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]. (From OE-Core rev: 1ef833b6393366a10f4bb65df89725ad65761386) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/populate_sdk_ext.bbclass')
-rw-r--r--meta/classes/populate_sdk_ext.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index 3e1858c031..4dfb94caf1 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -577,6 +577,8 @@ sdk_ext_postinst() {
577 577
578 # Allow bitbake environment setup to be ran as part of this sdk. 578 # Allow bitbake environment setup to be ran as part of this sdk.
579 echo "export OE_SKIP_SDK_CHECK=1" >> $env_setup_script 579 echo "export OE_SKIP_SDK_CHECK=1" >> $env_setup_script
580 # Work around runqemu not knowing how to get this information within the eSDK
581 echo "export DEPLOY_DIR_IMAGE=$target_sdk_dir/tmp/${@os.path.relpath(d.getVar('DEPLOY_DIR_IMAGE'), d.getVar('TMPDIR'))}" >> $env_setup_script
580 582
581 # A bit of another hack, but we need this in the path only for devtool 583 # A bit of another hack, but we need this in the path only for devtool
582 # so put it at the end of $PATH. 584 # so put it at the end of $PATH.