Bug 9014 - Can run "bitbake recipe" directly withtout initial
Summary: Can run "bitbake recipe" directly withtout initial
Status: RESOLVED INVALID
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Undecided enhancement
Target Milestone: 2.1 M3
Assignee: Robert Yang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-01-29 07:07 UTC by Robert Yang
Modified: 2016-01-29 07:46 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Yang 2016-01-29 07:07:25 UTC
Now, when we want to run the build, we have to:

. /path/to/poky/oe-init-build-env builddir

We need do this again when we want to build it in a new terminal. It would be better if we can run:

* "bitbake recipe" in a new terminal directly if the project had been initialized. (assume bitbake/bin is in PATH, or use /path/to/bin/bitbake recipe if not).

* "bitbake recipe" directly if no conf/local.conf was found in current dir or parent dirs. It can assume CWD is the builddir, and use default local.conf.sample  as local.conf, and we also can use something like MACHINE=foo bitbake recipe.
Comment 1 Robert Yang 2016-01-29 07:10:52 UTC
This is something similar to make, if there is a Makefile in CWD, then we can run make directly.
Comment 2 Robert Yang 2016-01-29 07:46:21 UTC
After talked with RP, bitbake does support run "bitbake recipe" without initial the build dir again if /path/to/bitbake/bin is in PATH.