Bug 11402

Summary: Refkit: Error when sourcing refkit-init-build-env outside of intel-iot-refkit directory tree
Product: [Yocto Project Subprojects] IoT Reference OS Kit Reporter: Henry Bruce <henry.bruce>
Component: intel-iot-refkit-toolsAssignee: Mikko Ylinen <mikko.ylinen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: brian.avery
Version: 2.3   
Target Milestone: 2.4 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Henry Bruce 2017-04-21 21:32:20 UTC
'source refkit-init-build-env' fails when run outside of intel-iot-refkit directory tree

Steps to re-create
-------------------
$ cd ~
$ mkdir work
$ git clone --recursive https://github.com/intel/intel-iot-refkit.git
$ cd ~/work
$ source ~/intel-iot-refkit/refkit-init-build-env
Error: The bitbake directory (/home/hbruce/work/bitbake) does not exist!  Please ensure a copy of bitbake exists at this location or specify an alternative path on the command line

Contrast to behavior with poky
-------------------------------
$ cd ~
$ mkdir work
$ git clone https://git.yoctoproject.org/git/poky
$ cd ~/work
$ source ~/poky/oe-init-build-env
You had no conf/local.conf file. This configuration file has therefore been
created for you with some default values. 
...
You can also run generated qemu images with a command like 'runqemu qemux86'
Comment 1 Henry Bruce 2017-04-25 14:33:40 UTC
As poky allows build workspace to be in a different directory tree from the meta-data, developers will expect this behavior to be supported by RefKit even though it is not the documented procedure. People to hit this issue so far include Brian Avery (Intel) and Khem Raj (Comcast). If bug is not addressed this number will grow over time.
Comment 2 Mikko Ylinen 2017-05-08 11:06:34 UTC
A fix submitted: https://github.com/intel/intel-iot-refkit/pull/149
Comment 3 Mikko Ylinen 2017-05-09 12:16:06 UTC
(In reply to comment #2)
> A fix submitted: https://github.com/intel/intel-iot-refkit/pull/149

Henry, Brian: can you please give the review feedback.
Comment 4 Mikko Ylinen 2017-05-17 19:02:58 UTC
The fix is now merged
Comment 5 Mikko Ylinen 2017-05-17 19:03:34 UTC
The fix is now merged