Bug 11402 - Refkit: Error when sourcing refkit-init-build-env outside of intel-iot-refkit directory tree
Summary: Refkit: Error when sourcing refkit-init-build-env outside of intel-iot-refkit...
Status: RESOLVED FIXED
Alias: None
Product: IoT Reference OS Kit
Classification: Yocto Project Subprojects
Component: intel-iot-refkit-tools (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.4 M1
Assignee: Mikko Ylinen
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-04-21 21:32 UTC by Henry Bruce
Modified: 2017-05-17 19:04 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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