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/classes/sanity.bbclass | |
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/classes/sanity.bbclass')
-rw-r--r-- | meta/classes/sanity.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 94e96f8524..31b8dd2b07 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -194,11 +194,11 @@ def check_sanity(e): | |||
194 | f.write(current_abi) | 194 | f.write(current_abi) |
195 | f.close() | 195 | f.close() |
196 | 196 | ||
197 | oeroot = data.getVar('OEROOT', e.data) | 197 | oeroot = data.getVar('POKYBASE', e.data) |
198 | if oeroot.find ('+') != -1: | 198 | if oeroot.find ('+') != -1: |
199 | messages = messages + "Error, you have an invalid character (+) in your OEROOT directory path. Please more Poky to a directory which doesn't include a +." | 199 | messages = messages + "Error, you have an invalid character (+) in your POKYBASE directory path. Please more Poky to a directory which doesn't include a +." |
200 | elif oeroot.find (' ') != -1: | 200 | elif oeroot.find (' ') != -1: |
201 | messages = messages + "Error, you have a space in your OEROOT directory path. Please move Poky to a directory which doesn't include a space." | 201 | messages = messages + "Error, you have a space in your POKYBASE directory path. Please move Poky to a directory which doesn't include a space." |
202 | 202 | ||
203 | if messages != "": | 203 | if messages != "": |
204 | raise_sanity_error(messages) | 204 | raise_sanity_error(messages) |