diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-07-21 14:55:39 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-21 15:39:53 +0100 |
commit | 971907567cff64e74f21d349d6751dadc8c09827 (patch) | |
tree | e0cfd7ee0ba3091272eca5c5f1b90edffc3653aa /meta/conf | |
parent | 50629b3746c149b22bdd8664842a4c69abb2b989 (diff) | |
download | poky-971907567cff64e74f21d349d6751dadc8c09827.tar.gz |
Enable build dir outside of the poky directory
You need to first set up the build directory by sourcing the poky build script,
after that builds can be run in that directory so long as bitbake is in $PATH
removing the need to source the init script for each build.
i.e:
$ . poky-init-build-env ~/my-build
$ bitbake some-image
<<later, in a different shell>>
$ cd ~/my-build
$ export PATH=/path/to/bitbake/bin:$PATH
$ bitbake an-image
This patch also removes use of OEROOT in recipes, etc.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/layer.conf | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf index d0d74884ec..30068d6aec 100644 --- a/meta/conf/layer.conf +++ b/meta/conf/layer.conf | |||
@@ -12,9 +12,12 @@ BBFILE_PRIORITY_normal = "5" | |||
12 | # Add scripts to PATH | 12 | # Add scripts to PATH |
13 | PATH := "${PATH}:${LAYERDIR}/scripts" | 13 | PATH := "${PATH}:${LAYERDIR}/scripts" |
14 | 14 | ||
15 | # Set a variable to get to the top of the metadata location | ||
16 | POKYBASE := ${@os.path.normpath("${LAYERDIR}/../")} | ||
17 | |||
15 | # Set path to qemu image tests included in this layer | 18 | # Set path to qemu image tests included in this layer |
16 | 19 | ||
17 | QEMUIMAGETESTS := "${OEROOT}/scripts/qemuimage-tests" | 20 | QEMUIMAGETESTS := "${POKYBASE}/scripts/qemuimage-tests" |
18 | 21 | ||
19 | require conf/distro/include/poky-default-revisions.inc | 22 | require conf/distro/include/poky-default-revisions.inc |
20 | 23 | ||